官术网_书友最值得收藏!

The ls command

The ls command lists all of the files and directories that exist in the current working directory. So it's similar to the dir command in Windows machines; it just lists all of the files and directories that exist in the current directory:

ls

And, as we execute this command, the output for it lists all of the directories, such as Desktop, Documents, Downloads, and Music:

Let's run ls with some options. We going to use ls and then use -l, and that will show us more information about the files. It's basically the same command that we ran before, but, as we can see in the following screenshot, we now get more information. We can see the total entries that exist in the current working directory, and we can see the same directories that we saw before, but we can also see the dates that they were created or modified. We can see the user responsible for them, and its root use, and we can also see permissions:

We will learn more about permissions in the next chapters. Permissions specify which users can do what (read, write, execute). This is just an example of the ls command.

主站蜘蛛池模板: 横峰县| 特克斯县| 嘉鱼县| 林甸县| 溧水县| 休宁县| 克山县| 肃宁县| 多伦县| 栾城县| 息烽县| 福鼎市| 屏东县| 溧阳市| 泾阳县| 文登市| 嘉禾县| 鄄城县| 荃湾区| 汕尾市| 绥滨县| 西昌市| 磐石市| 丹寨县| 新民市| 宜丰县| 连州市| 屏山县| 富源县| 道真| 利辛县| 新津县| 灵宝市| 麟游县| 古浪县| 霍城县| 晋州市| 达日县| 简阳市| 凤凰县| 彰武县|