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

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.

主站蜘蛛池模板: 朝阳区| 辽宁省| 万盛区| 萨迦县| 金溪县| 昌图县| 延川县| 固阳县| 浦北县| 青浦区| 疏附县| 清丰县| 沽源县| 南漳县| 申扎县| 闽清县| 茂名市| 石棉县| 财经| 萝北县| 县级市| 永德县| 三穗县| 镇巴县| 扶绥县| 光山县| 海盐县| 馆陶县| 黄陵县| 株洲县| 通许县| 敦化市| 新闻| 甘孜县| 云霄县| 怀柔区| 汨罗市| 汝城县| 襄垣县| 九寨沟县| 南宫市|