[root@localhostroot]# ----------- [user@yourpc directory]#
rpm is red_hat package manager,its basically an easy way to install packages on linux, its somewhat similarto a windows installer.
\command 换行接续
theshutdown command is not ni a normal users path so you have to call it with thefull path : /sbin/shutdown
drwxr-xr-x 3 root root 1234 Apr19 12:27 Desktop
[ 1 ] [ 2 ] [ 3 ] [ 4 ][ 5 ][ 6 ] [ 7 ]
[档案属性] [连结数] [拥有者][ 群组][文件容量][创建/修改日期] [ 文件名 ]
1----d(档案类型)rwx(档案拥有者权限)r-x(档案所属群组权限)r-x(其他人对档案的权限)
2---3 连结占用的结点(i-node)如果是目录的话,是当前目录和上一级目录所包含目录数(文件夹)的总和,如果是文档的话,表示有几个i-node指向该文件
7---Desktop 如果文件名前边有点(。),则代表隐藏文件
d 目录
- 普通文件
l 连续档(link file)
b 装置文件里面的可供储存的接口设备(块设备文件)
c 装置文件里面的串行端口设备(字符设备文件),如鼠标、键盘
ln file2 file1 将file1 link to file2 file2i-node加1 file2不能存在(why?)
chgrp 改变档案所属群组 chgrp 目标群组 目标档案
chown 改变档案所属人 chown 目标所属人 目标档案
chown 目标所属用户:目标所属组 目标档案
chmod 改变档案的属性 chmod 777 目标档案
rwx 八进制 r-4(2^2) w-2(2^1) x-1(2^0)
a---all o---others u---user g-group
-rwxrwxrwx ==》 a-w ==》-r-xr-xr-x ==》 o+w ==》 -r-xr-xrwx ==》 g+w ==》 -r-xrwxrwx
-r 级联修改
权限:
r 读取权限,ls可读
w 对目录的增删改移
x 进入目录的权限