-----------------------------------------《鸟哥的Linux私房菜》------------------------------------
1.Linux文件权限和目录
(*)(***)(***)(***)
修改权限常用指令:
(1)chown 修改拥有者(必须是系统上面的用户/etc/passwd),同时可以修改分组**:**形式
eg. chown mao:mao .bashrc ;chown mao .bashrc 用户mao
(2) chgrp修改分组(必须是系统上的分组/etc/group)
eg. chgrp mao .bashrc 分组mao
(3) chmod修改权限
a.数字,r-4,w-2,x-1 eg.chmod 777 .bashrc -rwxrwxrwx
b.字符串u(用户),g(分组),o(其他),a(所有)组合rwx eg. chmod u=rw,go=x -rw---x--x .bashrc; chmod a+rwx .bashrc -rwx-rwx-rwx ; chmode a-rw .bashrc ---x--x--x
rwx对文件和目录的含义:
文件--操作文件内容
目录--操作文件名
设备文件-底层驱动?
连接档(快捷方式)link->l
-------------------------------------------------常用指令集---------------------------------------------------------
1.wget
非交互式
2.rpm
3.yum
4.sh