Redirect output
$ls -l > lsoutput.txt This command saves the output of the ls command to the file lsoutput.txt.
$ps >> lsoutput.txt Use the >> operator to append the output to a file. This command appends the output of the ps command to the end of the specified file.
If you want to redirect the standard error output, you need to add the file descriptor number to be redirected before the > operator. Since the standard error output has a file descriptor number of 2, we use the 2> operator. This method is useful when you need to discard the error message and prevent it from appearing on the screen.
The following command redirects standard output and standard error output to different files: $kill -HUP 1234 >killout.txt 2>killerr.txt
If you want to Both sets of output are redirected to a file, and the >& operator can be used to combine the two outputs. As shown below: $kill -l 1234 >killouterr.txt 2>&1
Pipeline
Usually the output of one process is piped to the input of another process.
cmd1
Install TOMCAT and JDK under Linux Step 1: Create a new boss user, username: boss, password
First, the interrupt system hardware architecture: arm cortex-A9, the interrupt controller on A15 i
This article address: http://www.cnblogs.com/archimedes/p/bash-shell1.html, please indicate the sour
For the Windows operating system, if you forget the administrator password, it is still qui
Linux network based network IP notes
Command to view port occupancy in GNU/Linux
Linux task planning tool crontab
Three main package installation methods under redhat system
Linux get daemon process console data
Ubuntu disk cleanup protection
Linux iptables ip, Linux iptables Shield ip
Pea Pod Successfully Imported Outlook Contacts Steps
Win10 system to add the resource manager "library" folder method
How does Windows 8 turn off system protection to save disk space?
How to close msfeedssync.exe process in Win7 system
Cortana in Win9 takes another big step: "application" form
How to close the set of win8 computer only use the single display
How to add control panel icons to Win8 on the desktop
FTP configuration and application under Linux
Computer blue screen, how to do "Memtest86+V2.11" on the screen