Print the LS command man help file: man ls | LPR
LPR solution lift (SELF: http://linux.chinaitlab.com/command/11571.html)
Name: LPR
Permission: All Users
Usage: LPR [-P printer]
The printer manager LPD sends an archive or device to the printer storage column for processing later. LPR can be used to send materials to local or remote hosts for processing.
Parameters:
-P printer: send data to the specified printer. The default value is LP.
Example:
Send www. C and KKK. C to the printer LP.
LPR-PLP www. c KKK. c
Bytes -------------------------------------------------------------------------------------
Search man for the Keyword: same as in Vim, exact search/\ <文\ \>
Man CP | grep '\-'
Bytes -------------------------------------------------------------------------------------
Ls only displays the specific object (xpdf): ls-LD xpdf
Ls only displays cron and con headers: ls-LD {Cron, con }*
Bytes -------------------------------------------------------------------------------------
CP command from: http://www.diybl.com/course/6_system/linux/Linuxjs/200868/123747.html
CP command
This command is used to copy the given file or directory to another file or directory. It is very powerful like the Copy command in msdos.
Syntax: CP [Option] source file or directory target file or directory
Note: This Command copies the specified source file to the target file or multiple source files to the target directory.
The options of this command are as follows:
-A this option is usually used when copying directories. It retains links and file attributes, and Recursively copies directories. Its role is equal to the combination of DPR options.
-D: the link is retained during copy.
-F delete an existing target file without prompting.
-I and F options are opposite. A prompt is displayed asking the user to confirm before overwriting the target file. When the answer is Y, the target file will be overwritten, which is an interactive copy.
-P in addition to copying the source file content, CP also copies the modification time and access permissions to the new file.
-If the source file provided by R is a directory file, CP will recursively copy all subdirectories and files in the directory. The target file must be a directory name.
-L do not copy, but only link files.
It should be noted that, in order to prevent the user from using the CP Command inadvertently to destroy another file, such as the target file name specified by the user already exists, use the CP command to copy the file, this file will be overwritten by the new source file. Therefore, we recommend that you use the I option when using the CP command to copy the file.