The Linux Command Line——4. 探究操作系统

第四章:探究操作系统

The Linux Command Line——4. 探究操作系统

输入 ls 就能看到在当前目录下所有文件和子目录的列表。

The Linux Command Line——4. 探究操作系统

 除了当前工作目录以外,也可以指定别的目录,就像这样:

The Linux Command Line——4. 探究操作系统

 甚至可以列出多个指定目录的内容。在这个例子中,将会列出用户家目录(用字符“~”代表)和/usr 目录的内容:

The Linux Command Line——4. 探究操作系统

 使用 ls 命令的“-l”选项,则结果以长模式输出。

The Linux Command Line——4. 探究操作系统

The Linux Command Line——4. 探究操作系统

The Linux Command Line——4. 探究操作系统

file 命令来确定文件的类型

The Linux Command Line——4. 探究操作系统

 当调用 file 命令后,file 命令会打印出文件内容的简单描述。例如:

The Linux Command Line——4. 探究操作系统

 less 命令是一个用来浏览文本文件的程序。

The Linux Command Line——4. 探究操作系统

 The Linux Command Line——4. 探究操作系统

 目录介绍:

The Linux Command Line——4. 探究操作系统

 

 

 The Linux Command Line——4. 探究操作系统

 

 

 The Linux Command Line——4. 探究操作系统

The Linux Command Line——4. 探究操作系统

上一篇:10款最新CSS3/jQuery菜单导航插件


下一篇:织梦网站搬家教程