1. Control of standard input
Syntax: Command The file sends the execution result of the command to the specified file.
Example:
ls -l > list Writes the result of executing the "ls -l" command to the file list.
Syntax: Command>! The file sends the execution result of the command to the specified file, and overwrites if the file already exists.
Example:
ls -lg >! list Overwrites the result of executing the "ls - lg" command into the file list.
Syntax: Command>& File Writes any information generated on the screen when the command is executed to the specified file.
Example:
cc file1.c >& error Write any information generated when compiling the file1.c file to the file error.
Syntax: Command>> The file appends the results of the command execution to the specified file.
Example:
ls - lag >> list Appends the result of executing the "ls - lag" command to the file list.
Syntax: Commands>>& Files Append any information generated on the screen when the command is executed to the specified file.
Example:
cc file2.c >>& error Append any information generated by the screen when compiling the file2.c file to the file error.
3. Command syntax
command > filename Redirect standard output to a new file
command >> filename Redirect standard output to a file Medium (append)
command 1 > fielname redirects standard output to a file
command > filename 2>&1 redirects standard output along with standard error to a
command 2 > filename redirects standard error to a file
command 2 >> filename redirects standard output to a file (append)
command >> filename 2>&1 redirect standard output along with standard error to a file (append)
command filename2 Put the command command with the filename file as the standard input to filename2 File as standard output
command &m redirects standard output to file descriptor m
command
We all know how to query the installation time of win7 system? In fact, it is very simple, you can f
1.LinuxOSVersion:RedHat AS 52. Network Environment Settings: Host (Linux): IP: 192.168.1.1 NetMark:
2011 is the 20th anniversary of Linux and the 18th anniversary of the Debian release. Linux has expe
After VPN connection is established, need to make the following settings: 1, click & ldquo; att
How to clear SVN information in the directory
Common FTP commands under Linux Upload and download files
Learning tips about interprocess communication
Explanation: When a segmentation error occurs, how does the Linux system generate the core file
The difference between LINUX and WINDOWS kernels
Redhat-5.4 U disk installation grub configuration diagram tutorial
Linux rz transfer large files why it crashes
Haproxy Installation Configuration Tuning Basics Tutorial
Linux kernel compiler often solves the problem
Install the unmount file system
Look at a Linux operating system command to understand a human civilization
Win7 system comes with a color calibration program how to use
Win7 uses Group Policy to prohibit the system from restoring graphics tutorials
How to get back the "sticky" tool that disappeared in Win8
View file encoding, file encoding format conversion and file name encoding conversion under Linux
Teach you to change the input method icon of the windows 7 taskbar
When Win10 is enabled, the aero option is grayed out and cannot be selected.
How to add a network shared printer to WIN7?
Surface RT jailbreak tool released
What should I do if the win7 system installer prompts "Installation error 0x800706d9"?