1.文件权限
1.chmod更改权限
更改文件夹最大权限
chmod -R 777 /tmp/dir2011/
2.chown更改所有者
chown -R user:group /tmp/dir2011/
3.chgrp更改所属组(不常用)
2.查找命令
1.find
find /abc -name *abc.txt*
find / -name /abc -type d
2.locate 快
updatedb
locate abc.txt
3.grep
行号 查找文字
1. grep -n abc abc.txt
2. ls | grep .txt
3.压缩
1.gzip gunzip
后缀名 .gz
2. zip unzip
压缩后的文件名称 压缩文件
zip -r etc.zip /etc/
unzip -d /tmp myroot.zip
3.tar
压缩后的文件名
tar -zcvf /path abc.tar.gz abc.txt
tar -zxvf /path abc.tar.gz