By default, if you don't specify something to list, ls lists its current directory.
默认情况下,如果不指定要列出的内容,ls就列出当前目录。
For instance, if your terminal (or emulator) is capable, you can colorize the output of ls (list directory contents) with the environment variables CLICOLOR and LSCOLORS.
例如,如果您的终端(或模拟器)允许,那么您可以使用环境变量CLICOLOR和lscolors为ls(列出目录的内容)的输出定制颜色。
Before the installation, I used the Unix ls command to generate a list of every file on the startup drive.
开始安装之前,我用ls这个Unix命令生成了启动驱动器上所有文件的列表。
As you can see, you can give a relative or absolute directory name as a parameter to the ls command, and it will list the contents of that directory.
可以看到,您可以将一个相对或绝对目录名作为ls目录的参数,它将列出该目录中的内容。
For example, it's common to set an alias (' ll '), which expands to 'ls -l', for a long listing of a directory or list of files.
例如,设置别名('ll ')是很普遍的,该别名展开为'ls- l ',用于获得目录或文件列表的长清单。
The ls portion of this command outputs a list of the files (in this case, the contents of the two directories) to be copied.
这个命令的ls部分输出将要复制的文件列表(在本示例中是两个目录中的内容)。
For example, when you use ls, which reads the contents of the specified directory, it sends the list of files to the standard input of the program that called it (the shell).
例如,当用ls时,它会读取指定目录的内容,并将文件列表发送给调用它的程序(shell)的标准输入。
By default, the ls command does not list special files, those whose names start with a dot (.).
默认情况下,ls命令不会列出特殊文件,这些文件的文件名以点号(.)开头。
Listing 1 shows the use of the PWD command, and three different ways to use the ls command to list the files in this directory.
清单1展示了pwd命令的使用,以及通过三种不同的方法使用ls命令列出此目录中的文件。
Next, performing an ls on the directory shows a list of files.
然后对这个目录执行一个ls命令,这会显示很多文件。
The ls command is used to list the contents of a directory. It is probably the most commonly used Linux command.
ls命令是用来显示一个目录的内容。
Next, change the directory to sqlite-3.3.17, and use ls to list the contents. You should see a manifest like Listing 1.
接下来,将目录更改为sqlite - 3.3.17,并使用ls,以列出其中的内容。
In this lesson, I will introduce your first three commands: PWD (print working directory), CD (change directory), and ls (list files and directories).
在这一节,我会首先向你介绍三个命令:pwd(打印当前工作目录),cd(改变目录),还有ls(显示出文件和目录)。
List mode ACTS like ls: It lists the contents of source, as shown in Listing 4.
列表模式与ls相似:它列出源的内容,见清单4。
This assumption is more or less true - most of the time system administrators trust ps to display all processes and ls to list all files.
这个假设是或多或少真实-聚苯乙烯大部分时间系统管理员的信任,以显示所有进程和ls列出的所有文件。
This assumption is more or less true - most of the time system administrators trust ps to display all processes and ls to list all files.
这个假设是或多或少真实-聚苯乙烯大部分时间系统管理员的信任,以显示所有进程和ls列出的所有文件。
应用推荐