We saw that the ls command, used for listing directory contents, is an alias.
我们看到,用于列出目录内容的ls命令是一个别名。
To copy the contents of one directory into an existing directory, select the files in the source directory, as shown in Listing 3.
要将一个目录中的内容复制到一个已有的目录中,可以选择源目录中的文件,如 清单 3 所示。
Let's improve the code in Listing 2 to show the contents of a directory before descending further into any subdirectories.
让我们对清单2的代码稍加改进,在将目录转变为任何子目录之前展示它的内容。
Finally, because the source directory may have files that have been deleted from the original, any deleted files are also removed from the encrypted directory contents (see Listing 8).
最后,因为源目录中可能有已经删除的文件,还要把删除的文件从加密目录内容中删除(见清单8)。
Finally, it's sometimes helpful when listing the contents of a directory to view the files sorted by their time of last modification.
最后,在列出目录内容时,可以按照文件的最后修改时间进行排序,这样做有时很有帮助。
If you name a module but do not name a specific file or directory within the module, the daemon provides a catalog of the module's contents, as shown in Listing 6.
如果指定了模块,但是没有指定模块中的文件或目录,守护进程会提供模块内容的编目,见清单6。
Listing 4. Contents of the djproject directory.
清单4. djproject目录的内容。
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将展示如何添加- d选项以列出有关目录条目的信息,而不是目录的内容,以及如何列出多个文件或目录的条目。
In this directory, create a new file named Now.php and add the contents of Listing 2 to it.
在此目录下,创建一个新文件,命名为Now . php,然后将清单2的内容添加到其中。
Copy the contents of Listing 1 into a file called test.php and save it to the PHP home directory.
将清单1的内容复制到一个名为test .php的文件中,并将之保存在php主目录中。
Listing 1 shows the contents of the initial Capfile, which will be placed in the payroll user's home directory.
清单1显示了Capfile的初始内容,这个文件位于购买产品用户的home目录下。
Copy the contents of Listing 1 into a file called hello-world.pl and save it to any directory.
将清单1中的内容复制到名为hello - world . pl的文件中,然后将其保存到任何目录中。
Add a new file to the WEB-INF directory named geronimo-web.xml, then place the contents shown in Listing 3 in this file and save it.
在web - INF目录中添加一个名为geronimo - web . xml的新文件,然后在这个文件中放入并保存如清单3所示的内容。
Next, change the directory to sqlite-3.3.17, and use ls to list the contents. You should see a manifest like Listing 1.
接下来,将目录更改为sqlite - 3.3.17,并使用ls,以列出其中的内容。
With the job complete, inspect the output directory (to identify the results file), and then perform a file system cat operation to view its contents (see Listing 10).
作业完成之后,检查out put目录,找到结果文件,然后通过执行文件系统cat操作查看其内容(见清单10)。
Finally, add a mouse movement processing PHP script in the public directory and call it MouseResponse.php as in the code in Listing 9. Paste the contents of Listing 10 into the PHP file.
最后,在public目录中添加一个鼠标移动处理php脚本,并像清单11中的代码一样将它命名为MouseResponse. php。
Once done, navigate to your new directory and check out its contents; they should look like the listing shown below.
完成之后打开新建目录看看其中的内容,应该如下所示。
Once done, navigate to your new directory and check out its contents; they should look like the listing shown below.
完成之后打开新建目录看看其中的内容,应该如下所示。
应用推荐