目录的读权限允许用户使用该权限列出目录内容。
Read permission for a directory allows a user with that permission to list the contents of the directory.
演示如何列出目录中的文件。
我们看到,用于列出目录内容的ls命令是一个别名。
We saw that the ls command, used for listing directory contents, is an alias.
该表是目录列表的可视化表示,因此需要一个函数列出目录中的所有图像。
Since the table is a visual representation of a directory listing, we need a function to list all the images in a directory.
将显示一个列出目录林中所有域的列表,每一个域都有一个关联的编号。
A list of domains in the forest is displayed, each with an associated number.
对于目录名,ls命令将列出目录的内容,而不是关于目录本身的信息。
For directory names, the ls command lists the contents of the directory rather than information about the directory itself.
视您的站点所具有的目录和产品的数量而定,列出目录的最前三个级别即可。
Depending on the number of categories and products your site has, listing the top three levels of categories is sufficient.
最后,在列出目录内容时,可以按照文件的最后修改时间进行排序,这样做有时很有帮助。
Finally, it's sometimes helpful when listing the contents of a directory to view the files sorted by their time of last modification.
该脚本传递用户希望展开的文件的索引,因此必须在此列出目录并获得适当的文件名。
The script is passed the index of the file the user wants to expand, so it has to list the directory again and get the appropriate file name.
在我们的示例中,假设当在父目录中列出目录时,我们希望获得有关lpi103 - 2目录条目本身的信息。
In our example, suppose we wanted information about the lpi103-2 directory entry itself as it is listed in the parent directory.
用户greg的主目录有development组成员的读和写权限,因此用户tom和ian能够列出目录。
User Greg's home directory has read and execute permission for members of the development group, so users Tom and Ian can list the directory.
在这个示例中,您将看到该文件的具体信息(一般是在列出目录期间),并且您可以看到文件的类型、权限以及修改时间信息。
In this case, you are looking at the examination of a file (during a directory listing, most likely), and you can see the file's type, permissions, and modification time information as well.
例如,在清单6中,我们使用Plack:App:Directory来列出目录,并将其内容用作静态文件。
In listing 6, for example, we are using Plack: : App: : directory to get a directory listing and to serve it's content as static files.
例如,如果您的终端(或模拟器)允许,那么您可以使用环境变量CLICOLOR和lscolors为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.
目录不是常规文件,但是在列出目录内容或将其作为当前工作目录时,对其进行了访问,所以需要在搜索中使用否定和-type标志排除它们。
Directories aren't regular files but are accessed every time you list them or make them the current working directory, so exclude them in the search using a negation and the -type flag.
当你输入LS时,它会把你当前目录下的文件罗列出来。
When you type LS, it just lists what's in your current folder.
检查PATH是为了确保路径中列出的所有目录都是绝对路径,而且所有者及其所在组以外的人无法执行写入操作。
The path is checked to ensure that each directory listed in the path is absolute and not writable by people other than the owner and group.
这确保可以通过此变量中列出的目录访问脚本调用的所有程序、实用程序、函数、脚本等等。
This is to ensure that all programs, utilities, functions, scripts, and more called by the script are accessible using a listed directory in the variable.
如果您以长格式列出一个目录下的文件,您看到的将如下显示。
If you look at a long directory listing of a file, you'll see something like the following.
列出当前目录的文件。
清单1展示了pwd命令的使用,以及通过三种不同的方法使用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.
默认情况下,如果不指定要列出的内容,ls就列出当前目录。
By default, if you don't specify something to list, ls lists its current directory.
用Dir类列出当前工作目录的所有文件。
The Dir class lists all of the files in the current working directory.
listFlatFile—列出某个目录中的文件。
类似地,您可以列出home目录树中、今天修改的所有文件。
Similarly, you can list all the files in your home directory tree that were modified at any time today.
在这个命令中,filename是上面列出的目录下的X . 509证书的文件名。
In the command, filename is the X.509 certificate file name under the directory as shown in the list above.
例如,可以创建一个worker来列出某个目录的内容。
For example, you can create a worker to list the contents of a directory. The -f argument names the function the worker is providing.
输入隐藏的.ssh目录并列出其内容。
该命令列出当前目录中未跟踪的所有文件和目录,表示Git了解它们的存在但是没有指示跟踪该文件。
This command lists all the files and directories in the current directory as untracked, meaning that Git knows that they are present but has not been instructed to track the files.
可以看到,您可以将一个相对或绝对目录名作为ls目录的参数,它将列出该目录中的内容。
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.
应用推荐