[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
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库Linux文件和目录管理(陶晓宇)(6)在线全文阅读。
相关推荐: