Chapter five hundred sixty-seven |
|
|
alias |
View system alias |
67 |
chmod |
Setting permissions for files or directories -R represents permissions recursively set all the subdirectories and files in the directory and directory Others: u: owner g: is a group o a: Everyone +: Add: - delete =: Reset |
68 |
chown |
Owner, file chown: owner of a file chown owner: is a group file |
69 |
umask |
The new access control file or directory View umask value: umask Set umask value: umask nnn |
70 |
fdisk -l |
Detect and confirm the new hard drive Device: device file name of the partition boot: whether the boot partition. stat / end: the partition start / end position blocks: block default size is 1024 words id: id number corresponding partition system System: partition type |
71 |
fdisk |
Manage disk partitions in an interactive operating environment m: View help information operation instruction p: List View partition information n: New Partition d: delete partition t: Change Partition Type w: Save the partition settings and exit q: give up the partition settings and exit ctrl + backspace key to delete the wrong character input |
72 |
mkfs |
Create a file system (format) -t: Specifies the type of file format -b: Specifies block size in bytes -I: inode size -U: set uuid No. -q: does not display any information when performing |
73 |
mkswap |
Create a swap file system |
74 |
mount |
View current mount Storage mount point directory |
75 |
umount |
Uninstall mounted file system |
76 |
parted |
More than 2G size of the partition plan |
77 |
getfal |
Get to see |
78 |
setfacl |
ACL settings -m: acl subsequent setting parameters, can not be used in conjunction with -x -x: acl delete subsequent parameters, can not be used with -m -b: acl remove all parameters -k: acl remove the default parameters -R: recursively set acl parameter -d: set the default acl parameter is valid only for aircraft directory
|
79 |
Chapter ownership rights and management
访问权限:
(1)读权限r:允许查看文件内容
(2)写权限w:允许修改文件内容
(2)可执行x:允许运行程序
查看文件的权限和归属:
(1)第一位表示文件类型
-:表示一般文件
d:表示目录
l:表示软链接
p:表示PIPE管道文件
s:表示socket通信套接字文件
c:表示字符设备文件
b:表示块设备文件
755是目录的默认权限
644是文件的默认权限
文件和目录满权限是777
设置别名:alias myip=‘ ’
取消别名:unalias myip
反斜杠\:转意符
删除杀掉用户:fuser -k /dev
第六章磁盘管理
一个硬盘有(1-3)个盘片,盘片有两面
磁头是最重要的地方
扇区:盘片被分为多个扇形区域,每个扇形
区存放512字节的数据
硬盘存储容量=磁头数x磁道(柱面)数x
每道扇区数x每扇区字节数
硬盘转速:转速是指硬盘盘片每分钟转动的圈数。单位:rpm
磁盘分区表示
Linux中将硬盘等设备均表示为文件
磁盘分区结构:
硬盘中的主分区数目只有4个,因此主分区和扩展分区的序号也就限制在1~4。扩展分区再分为逻辑分区,逻辑分区的序号始终从5开始。
Windows:FAT16 , FAT32,NTF
Centos7:xfs
Centos6:etx4
Centos5:etx3
getfal:
第七章文件系统与lvm
mkfs -t xfs=mkfs.xfs
32位: mkfs-t vfat -F 32 /dev/sdb6