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

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.

主站蜘蛛池模板: 怀安县| 平原县| 大关县| 科技| 得荣县| 湘乡市| 高邑县| 沾益县| 姜堰市| 石屏县| 馆陶县| 湟源县| 梅河口市| 内江市| 青海省| 临沭县| 济宁市| 呈贡县| 贵南县| 呼伦贝尔市| 中西区| 原阳县| 镇康县| 比如县| 屯门区| 陆良县| 新化县| 牟定县| 扎赉特旗| 买车| 观塘区| 宜川县| 龙门县| 中山市| 东港市| 毕节市| 巴南区| 平武县| 吴川市| 辛集市| 民勤县|