文件权限:u+g+o
权限:r-读-4
w:写-2
x:执行-2
ls -l:查看文件具体信息
d:目录文件
f:普通文件
b:块文件
s:符号链接文件
目录文件权限实例: d rwx rwx rwx
d 7 7 7
更改文件权限:chmod
chmod 755 myfile
ls -l myfile:drwx r-x r-x
chmod u-x myfile
ls -l myfile:drw- r-x r-x
chmod g-r myfile
ls -l myfile:drw- r-- r-x
chmod o+w myfile
ls -l myfile:drw- r-x rwx
查找文件命令:find
find /home/fabregas -name "*.c" -print 查找该目录下所有txt文件并打印
find . -name "*.sh" -exec rm {} /;对当前目录下的所有.sh文件执行删除操作
find -perm 按权限值查找
ln -s suorcefile targetfile:将targetfile链接到suorcefile上,targetfile可以不存在,suorcefile改变,targetfile内容也改变