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

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.

主站蜘蛛池模板: 鞍山市| 苗栗县| 岑巩县| 巴东县| 自贡市| 荣昌县| 余庆县| 库尔勒市| 贵溪市| 白河县| 关岭| 中超| 巴青县| 梁平县| 兴国县| 北安市| 板桥市| 旬邑县| 嘉祥县| 衡水市| 来安县| 东至县| 天津市| 连州市| 辽宁省| 边坝县| 霞浦县| 同仁县| 宝应县| 大理市| 奈曼旗| 五指山市| 女性| 中牟县| 旬邑县| 营山县| 顺义区| 抚松县| 台州市| 留坝县| 台北县|