网站大量收购独家精品文档,联系QQ:2885784924

[LAMP兄弟连新版原创视频教程-LINUX].docx

  1. 1、本文档共33页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
LINUX.EssayLinux 文件权限设置命令:# chmod [{ugo}{+-=}{rwx}][file|directory]{1-7}{3} [file|directory]# chown[user] [file|directory]# chgrp[usergroup] [file|directory]# umask [-S] :显示、设置文件的缺省权限 , 【-S 以rwx形式显示】[0022] : 644(file)/755(directory)文件目录权限Char权限for文件for目录RRead查看列出目录中的内容WWrite修改可以在目录中创建、删除文件XExecute执行可以进入目录# which:显示系统命令所在目录# whereis#find [destpath] –user [username]:文件所有者 -uid|gid|group :–name [filename]:可用 * ? 匹配之–type [{dlf}]:按类型 d:directory,l:softlink,f:file–size [{+-}blocksize] :1block = 512byte, +大于,-小于–[{cam}][{time|min}] [{+-}timevalue] : +超过,-之内;time:day,min:minutec:attributes changed, a:accessed, m:modiflied–a:and, -o:or:连接符,组合查找。–exec [shell command] {}\;查找到后执行[shell command]–ok [shell command] {}\;如上,并询问确认command执行范例:# find /etc -name init 在目录/etc中查找文件init# find / -size +204800 在根目录下查找大于100MB的文件# find / -user sam在根目录下查找所有者为sam的文件# local[filename]:列出跟filename有关的文件(需updatedb )# updatedb:建立整个系统目录文件的数据库# grep [string] [sourcefile] :在[sourcefile]中查找[string]# grep –v “^3” [sourcefile] :在[sourcefile]中查找除了以#开头的行、# man# info # apropos = man -k# whatis [shellcommand] //makewhatis used for generate apropos whatis’s database# [shellcommand] --help#tar–zcvf [dest.tar.gz] [source]#tar–zxvf [*.tar.gz]#tar–cvf [dest.tar] [source] #gzip [dest.tar]#gunzip [*.tar.gz] #tar–xvf [*.tar]:-c: create ,v: visual, f: file, x: extract, z: gzip |gunzip#zip–r [dest.zip] [source_directory]#zip [dest.zip] [source_file]#unzip [*.zip]:-r :used for directory#bzip2–k [source]#bunzip2–k [source] :-k: 保留源文件SHELL查看系统可用shell:cat /etc/shellsCtrl+l : 清屏 = clearCtrl+u : 删除已输入的命令#history : 查询已执行过的命令,再输入!num 则执行第num条命令#alias :查看系统定义的别名e.g :alias ll=”ls -aLF” ,alias copy=cp #unalias[custom-command]: 删除别名[custom-command]管道命令:【 | 】:将一个命令的输出作为另一个命令的输入# command1|command2|command3e.g:ls –l/etc|grep init|wc –l命令替换符:【·】{数字1左边的键}:将一个命令的输出作为另一个命令的参数# command1·command2·e.g :ls –l `which touch`命令连接符Command1 ;Command2 ;Com…按顺序执行若前的命令执行成功,则执行下一条命令||若前的命令执行失败,则执行下一条命令输入/输出重定向1, 输出重定向e.g : ls –l /t

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档