The ls command is one example.
ls命令就是一个示例。
Listing 14. Typical ls -l output.
清单14.ls- l的典型输出。
Whose bag is this?ls it yours?
这是谁的书包?是你的吗?
User commands (env, ls, echo, mkdir, tty).
用户命令env、ls、echo、mkdir、tty。
By default, ls lists files alphabetically.
默认情况下,ls将按字母顺序列出文件。
Use ls to list the contents of the directory.
用命令ls显示每个目录的内容。
An executable, such as cat or ls, is a verb — an action.
可执行命令,如cat或ls,是动词——操作。
To list the files in the working directory, use the ls command.
要显示出工作目录下的文件,用ls命令。
In Listing 19 we try using find with -exec rather than ls with xargs.
在清单19中我们尝试使用带有-exec的find,而不是带有xargs的ls。
The -i option of the ls command will display the inode Numbers for you.
ls命令的- i选项将显示inode号。
In the sequence above, the variable var is set to the two-letter string ls.
在上面的命令序列中,把变量var设置为两字母的字符串ls。
As we have seen, many commands such as ls print their output on the display.
正如我们之前学习到的,很多命令,比如ls,将它们的结果显示到屏幕上。
That's what we did with the cgroup filesystem which is why ls /cgroup failed.
在cgroup文件系统上就采用了这种做法,这正是ls /cgroup失败的原因。
We saw that the ls command, used for listing directory contents, is an alias.
我们看到,用于列出目录内容的ls命令是一个别名。
For a long listing, use the same options as you would with ls (see listing 10).
要获得长列表,请使用与ls相同的选项(请参见清单10)。
For example: ls > this-dir sends the output from ls to a file named this-dir.
例如:ls >this-dir 将 ls的输出发送到一个名为 this-dir 的文件。
The command ls -l ../lpi103-2 would give us a listing like the previous example.
命令ls-l../lpi103-2将提供类似前例的列表。
In some cases, an entry appears when you request a directory listing through ls.
在有些情况下,当您使用ls请求目录清单时,将出现相应的条目。
For example, use ls -lrt to produce a long listing sorted from oldest to newest.
例如,使用ls -lrt生成一个按从最旧到最新排序的长列表。
List mode ACTS like ls: It lists the contents of source, as shown in Listing 4.
列表模式与ls相似:它列出源的内容,见清单4。
Since the output of ls was redirected to the file, no results appear on the display.
因为,ls的输出被重定向到文件中,所以,在屏幕上也就没有信息显示了。
To check file placement, run an ls command in the TestActivity.activity subdirectory.
要查看文件放置,可在 TestActivity.activity 子目录运行ls命令。
By default, if you don't specify something to list, ls lists its current directory.
默认情况下,如果不指定要列出的内容,ls就列出当前目录。
Next, you can check for the presence of the files using the ls command (see Listing 5).
接下来,使用ls命令检查文件是否存在(见清单5)。
Commands like BZR commit, BZR add, and BZR ls restrict operation to the current view.
bzrcommit、bzradd和bzrls等命令把操作范围限制在当前视图。
You will notice aliases in .cshrc for some of the ls commands (they are very convenient).
你将会在.cshrc文件中注意到ls命令的一些别名(它们非常方便)。
In Listing 16, you'll change the ls -l output to show the filename, permissions, and size.
在清单16中,您将更改ls- l的输出以显示文件名、权限和大小。
Without color, you need more information, such as that provided by a long listing using ls -l.
没有颜色,您需要更多信息,比如使用ls -l 命令的长清单所提供的信息。
By default, the ls command does not list special files, those whose names start with a dot (.).
默认情况下,ls命令不会列出特殊文件,这些文件的文件名以点号(.)开头。
Using the ls -i command, you can view the inumber next to the file name, as shown in Listing 4.
使用ls-i命令,您可以看到文件名称旁边的索引编号,如 清单 4 中所示。
应用推荐