多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# Linux命令 本章节主要介绍Linux的相关知识。 文件相关操作 ## 查看文件大小 可以使用 `ls -lsh`,其中 `l` 表示长格式,`s` 表示显示文件大小,`h`表示以人类方便的格式阅读,即自动根据文件大小使用 B、KB、MB等表示文件大小。 ``` root@server00:~/hao# ls -lsh total 176K 4.0K -rw-r--r-- 1 root root 617 Sep 30 15:46 test.cpp 120K -rwxr-xr-x 1 root root 117K Sep 30 16:05 test 4.0K drwxr-xr-x 2 root root 4.0K Oct 6 15:25 pythons 4.0K -rw-r--r-- 1 root root 15 Sep 30 15:46 hello.txt 4.0K -rw-r--r-- 1 root root 33 Sep 22 08:17 hello 40K -rw-r--r-- 1 root root 37K Sep 23 09:26 dirstruct.txt ```