我看到人们在Linux终端中使用ls -alh。但是,当我看到手册时,我没有看到-alh (即当我输入man ls时)。
为什么我在手册里没有呢?有人能解释一下它的作用吗?
发布于 2016-07-08 11:11:20
ls -alh和ls -a -l -h是一样的。
可以像这样组合多个短期选项。
以下是来自man ls的这些选项的含义:
-a, --all
do not ignore entries starting with .
-l
use a long listing format
-h, --human-readable
with -l, print sizes in human readable format (e.g., 1K 234M 2G) 发布于 2016-07-08 11:09:32
-h代表人类的可读性。
正如注释中提到的,您可以组合参数,比如:-alh。命令是无关紧要的。
来自man ls:
-h, --human-readable
with -l and/or -s, print human readable sizes (e.g., 1K 234M 2G)https://unix.stackexchange.com/questions/294627
复制相似问题