Linux文件和目录管理(陶晓宇)(6)
时间:2026-01-22
时间:2026-01-22
[root@rehat root]# du -ch
3. 查看文件的大小
[root@rehat root]# du -h test1.txt
4. 同时查看多个文件的大小
[root@rehat root]# du -h test1.txt test2.txt
9. 磁盘碎片整理
linux 下基本上不用碎片整理,它每隔一段时间会自动整理 10. 创建/改变文件系统 1. 创建文件系统类型
[root@rehat root]# umount /dev/sdb1 [root@rehat root]# mkfs -t ext3 /dev/db1 [root@rehat root]# mount /dev/sdb1 /practice 11. 改变文件或文件夹权限 chmod
1. 将自己的笔记设为只有自己才能看 [root@rehat root]# chmod go-rwx test.txt 或者
[root@rehat root]# chmod 700 test.txt
2. 同时修改多个文件的权限
[root@rehat root]# chmod 700 test1.txt test2.txt
上一篇:初中语法(一) 名词