本文共 1124 字,大约阅读时间需要 3 分钟。
ls命令输出格式算法
Inside a folder you can list all the files that the folder contains using the ls
command:
在文件夹内,您可以使用ls
命令列出该文件夹包含的所有文件:
ls
If you add a folder name or path, it will print that folder contents:
如果添加文件夹名称或路径,它将打印该文件夹内容:
ls /bin
ls
accepts a lot of options. One of my favorite options combinations is -al
. Try it:
ls
接受很多选择。 我最喜欢的选项组合之一是-al
。 试试吧:
ls -al /bin
compared to the plain ls
, this returns much more information.
与普通的ls
相比,它返回的信息更多。
You have, from left to right:
您具有从左到右的位置:
This set of data is generated by the l
option. The a
option instead also shows the hidden files.
这组数据由l
选项生成。 相反, a
选项还会显示隐藏的文件。
Hidden files are files that start with a dot (.
).
隐藏文件是指以点( .
)开头的文件。
This command works on Linux, macOS, WSL, and anywhere you have a UNIX environment
此命令可在Linux,macOS,WSL以及您拥有UNIX环境的任何地方使用
翻译自:
ls命令输出格式算法
转载地址:http://stmgb.baihongyu.com/