我们看到,用于列出目录内容的ls命令是一个别名。
We saw that the ls command, used for listing directory contents, is an alias.
目录的读权限允许用户使用该权限列出目录内容。
Read permission for a directory allows a user with that permission to list the contents of the directory.
最后,在列出目录内容时,可以按照文件的最后修改时间进行排序,这样做有时很有帮助。
Finally, it's sometimes helpful when listing the contents of a directory to view the files sorted by their time of last modification.
目录不是常规文件,但是在列出目录内容或将其作为当前工作目录时,对其进行了访问,所以需要在搜索中使用否定和-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.
我们已经打开了zip归档,通过保存到本地目录为使用文件做好了准备,并且列出了内容,可为修改初始的ZIP文件做好准备。
We have opened the ZIP archive and prepared the files for use by saving them to a local directory and listed the contents, perhaps in preparation to modify the original ZIP file.
例如,如果您的终端(或模拟器)允许,那么您可以使用环境变量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.
当然,列出一大串目录项对您并没有太大的好处——除了看看文件系统中的内容。
Of course, listing a bunch of directory entries doesn't do you much good -except to see what's in the filesystem.
如果将分析器输出目录中的内容(名为php . ini)列出来的话,应该能看到类似cachegrind . out . 951917687这样名称的文件。
If you list the contents of the profiler output directory (named in php.ini), you should see a file named something like cachegrind.out.951917687.
接下来,将目录更改为sqlite - 3.3.17,并使用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.
例如,可以创建一个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.
默认情况下,如果不指定要列出的内容,ls就列出当前目录。
By default, if you don't specify something to list, ls lists its current directory.
对于目录名,ls命令将列出目录的内容,而不是关于目录本身的信息。
For directory names, the ls command lists the contents of the directory rather than information about the directory itself.
输入隐藏的.ssh目录并列出其内容。
修改后的parameters . xml文件被上传到并列出在资产内容的根目录中,如下所示。
The modified parameters.xml file is uploaded and listed in the root directory of the content of the asset (as shown).
它是通过列出所有目录内容,然后分成文件和子目录开始的。
It starts by listing all the directory content and separating it into files and subdirectories.
在这种情况中,所列出的.AN NOUNCE文件没有包含任何有帮助的内容,不过easy_install还会继续查看另一个所列的URL,这会证明它是一个下载目录。
In this case, the listed.announce file does not contain anything helpful, but easy_install is happy to keep looking at the other listed URL as well, which proves to be a download directory.
用户tom的主目录有执行权限,但是没有读权限,所以用户ian不能列出内容,但是如果知道对象存在,就可以访问目录下的对象。
User tom's home has execute but not read permission, so user ian cannot list the contents, but can access objects within the directory if he knows they exist.
失去完整性可能导致您在执行ls命令时,不是列出该目录的内容,而是删除了目录中存在的所有文件。
The loss of integrity could be that you executed the ls command and instead of listing the contents of the directory, it deleted all the files present there.
可以看到,您可以将一个相对或绝对目录名作为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.
例如,在清单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.
清单3将展示如何添加- d选项以列出有关目录条目的信息,而不是目录的内容,以及如何列出多个文件或目录的条目。
Listing 3 shows how to add the -d option to list information about directory entries rather than the contents of directories and also how to list entries for multiple files or directories.
清单3提供另外几个文件系统操作示例(创建子目录test,列出它的内容,然后删除它),可以通过它们进一步了解这个接口。
Listing 3 provides some additional file system operations with which you can explore this interface a bit further (creating a new subdirectory called test, listing its contents, and then removing it).
清单3提供另外几个文件系统操作示例(创建子目录test,列出它的内容,然后删除它),可以通过它们进一步了解这个接口。
Listing 3 provides some additional file system operations with which you can explore this interface a bit further (creating a new subdirectory called test, listing its contents, and then removing it).
应用推荐