Listing 14. Typical ls -l output.
清单14.ls - l的典型输出。
For example, use ls -lrt to produce a long listing sorted from oldest to newest.
例如,使用ls -lrt生成一个按从最旧到最新排序的长列表。
The command ls -l ../lpi103-2 would give us a listing like the previous example.
命令ls -l../lpi103-2将提供类似前例的列表。
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 命令的长清单所提供的信息。
Using the ls -i command, you can view the inumber next to the file name, as shown in Listing 4.
使用ls -i命令,您可以看到文件名称旁边的索引编号,如 清单 4 中所示。
Have a look at the various object classes in use on your system by using: $ ls -l /usr/lib/objrepos.
使用以下命令来查看一下您系统上正在使用的各种对象类:$ls -l /usr/lib/objrepos。
You can certainly do this visually by repeatedly running a command such as ls -l and comparing file sizes.
通过反复执行ls -l等命令并对比文件大小,肯定可以实现这个目标。
The example shown for step 3 (see Listing 3) makes the first-time remote SSH call (ls -d /tmp) to the destination server, thereby caching the key within your server's .ssh/known_hosts file.
步骤3中所示的示例(参见清单 3)发出第一次远程SSH调用(ls -d /tmp)到目标服务器,从而缓存您的服务器的 .ssh/known_hosts文件内的密钥。
The ls command: Learn more about the ls command from the Combined IBM Systems Information Center.
ls命令:从CombinedIBMSystems信息中心了解有关ls命令的更多信息。
By default, ls lists files alphabetically.
默认情况下,ls将按字母顺序列出文件。
Use ls to list the contents of the directory.
用命令ls显示每个目录的内容。
User commands (env, ls, echo, mkdir, tty).
用户命令env、ls、echo、mkdir、tty。
To list the files in the working directory, use the ls command.
要显示出工作目录下的文件,用ls命令。
To check file placement, run an ls command in the TestActivity.activity subdirectory.
要查看文件放置,可在 TestActivity.activity 子目录运行ls命令。
An executable, such as cat or ls, is a verb — an action.
可执行命令,如cat或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命令是一个别名。
By default, if you don't specify something to list, ls lists its current directory.
默认情况下,如果不指定要列出的内容,ls就列出当前目录。
For example: ls | sort does the same thing as the previous two examples without requiring a temporary file; the output from ls goes straight through the sort command.
例如:ls |sort和前面的两个示例完成相同的任务,并且无需临时文件,ls的输出直接进入sort命令。
As we have seen, many commands such as ls print their output on the display.
正如我们之前学习到的,很多命令,比如ls,将它们的结果显示到屏幕上。
Since the output of ls was redirected to the file, no results appear on the display.
因为,ls的输出被重定向到文件中,所以,在屏幕上也就没有信息显示了。
Commands like BZR commit, BZR add, and BZR ls restrict operation to the current view.
bzrcommit、bzradd和bzrls等命令把操作范围限制在当前视图。
For a long listing, use the same options as you would with ls (see listing 10).
要获得长列表,请使用与ls相同的选项(请参见清单10)。
You will notice aliases in .cshrc for some of the ls commands (they are very convenient).
你将会在.cshrc文件中注意到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(列出目录的内容)的输出定制颜色。
Comparing the file sizes with the ls command, you see that the backup was used to replace the current database.
通过ls命令比较文件的大小,您可以看到备份被用于替换当前的数据库。
Before the installation, I used the Unix ls command to generate a list of every file on the startup drive.
开始安装之前,我用ls这个Unix命令生成了启动驱动器上所有文件的列表。
The type command reports that the ls command is an alias, but it identifies the set command as a shell builtin.
type命令报告指出,ls 命令是一个别名,但是它将set 命令标识为一个 shell 内置命令。
Others, such as du, df, ls, and most of the standard userland come from FreeBSD, but have been slightly modified by Apple.
还有一些,比如du,df,ls,以及大部分的标准的用户态,来自于FreeBSD,但是被苹果公司略微的修改过。
应用推荐