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生成一个按从最旧到最新排序的长列表。
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将按字母顺序列出文件。
User commands (env, ls, echo, mkdir, tty).
用户命令env、ls、echo、mkdir、tty。
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命令。
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)。
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,但是被苹果公司略微的修改过。
In this example, the two substituted ls commands generate a temporary text file that is then compared inline by the diff command.
在此示例中,两个被替换的ls命令生成一个临时文本文件,然后diff命令对该文件进行内联比较。
Using ncftpls lets you connect to the remote server and extract a command line ls listing. This utility has two advantages
可以使用 ncftpls连接远程服务器并获取命令行ls 清单。
The ls command is used to list the contents of a directory. It is probably the most commonly used Linux command.
ls命令是用来显示一个目录的内容。
For example, you can use ls in combination with du to determine the disk usage of different directories with the command shown in Listing 5.
例如,使用清单5中的命令,您可以将ls与du组合使用,以确定不同目录的磁盘使用情况。
If ls was called by another program (such as a script), its output would be sent to that program and could be processed further, if necessary.
如果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(显示出文件和目录)。
The variable "$?" provides the return code of the command recently invoked; in the example below, it provides the return code of the execution of the "ls" command.
变量 "$?"提供最近所调用命令的返回码;在下面的示例中,它提供了执行 "ls" 命令的返回码。
应用推荐