Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux IO redirection     - Experience RHEL7 new features (Linux)

- Ubuntu install video playback software SMPlayer (Linux)

- XtraBackup achieve non-stop use of master-slave synchronization service (Database)

- Let CentOS6 yum upgrade to support more source rpm package (Linux)

- Ubuntu 15.04 Linux install anti-virus software Antiviral 0.2 (Linux)

- Linux boot the system does not display a progress bar setting method (Linux)

- Create a project using Android Studio LinearLayout (Programming)

- To install Docker under CentOS7 (Linux)

- Qt shared memory interprocess communication (Programming)

- VirtualBox virtual machine to install Linux (Linux)

- Linux / Centos anti CC attack script (Linux)

- How to remove the Linux memory Cache, Buffer and swap space (Linux)

- Install Gnome Flashback Classic Desktop on Ubuntu 14.10 / Mint 7 (Linux)

- I like Linux Security (Linux)

- CentOS6.3 build a Python 3.3 environment to access Oracle 11gR2 (Database)

- Oracle 11g RAC installation considerations Miscellany (Database)

- Reported too many open files Linux solutions (Server)

- Nine tips to protect the security of Linux desktop (Linux)

- error no.2013 lost connection Tom with SQLServer during query (Database)

- Revive Adserver ad server installation on Ubuntu 15.04 / CentOS7 (Server)

  Linux IO redirection
  Add Date : 2017-01-08      
  Linux default command takes input from the standard input device (stdin), and outputs the result to the standard output device (stdout) display. Under normal circumstances, the standard input device is a keyboard. Standard output is a terminal device (monitor).
Under normal circumstances, each command runtime opens three files:
Standard input file (stdin): stdin file descriptor to 0. linux default program reads data from stdin
Standard output file (stdout): stdout file descriptor 1. linux program more with stdout output data.
Standard error (stderr): stderr file descriptor 2. linux program will write an error message to stderr stream.
Output Output redirection
Redirect formats available
/ Dev / null file
/ Dev / null is a special file that is written to its internal content will be discarded.
$ Date> date.txt # results date command is redirected to file date.txt
$ Ll >> date.txt # results ll command appended to the file date.txt
$ Cat $ Cat date2.txt # contents of the file date.txt redirected to the file date2.txt
String $ cat << EOF # print from the keyboard input to the display, up until the input EOF
$ ./test 2> result.txt # test script will execute an error message is redirected to a file result
$ ./test >> Result.txt 2> & 1 # and output an error message will be performed to test the script appending redirected to a file result.txt
- Copy files between two Linux hosts (Linux)
- MySQL High Availability plan several options (Database)
- Linux virtual machine settings network, hostname ssh access (Linux)
- Oracle View index and use indexes Precautions (Database)
- Ten minutes to find out the character set and character encoding (Linux)
- MySQL DATE_FORMAT () function (Database)
- Linux reserves the rest of the file to delete several (Linux)
- Java implementation heap sort (large root heap) (Programming)
- Linux set to select the appropriate level of security of the network according to deployment (Linux)
- Lsblk command lists using Linux block device information (Linux)
- Find details block device with Linux blkid command (Linux)
- Mahout source code analysis: FP-Growth algorithm parallelization (Programming)
- Linux FAQ - How to fix tar:Exitingwith failure status due to previous errors (Linux)
- iOS Sensor Development - add to APP phone password, fingerprint security authentication (Programming)
- Cryptography development environment to build under Ubuntu (Linux)
- Define and modify strings principle in Python (Programming)
- Node.JS different ways to install under Ubuntu 15.04 (Linux)
- Linux Getting Started tutorial: GNU C and Vim will fight the C / C ++ IDE semi-automatic (Linux)
- The minimum initial use of the Linux operating system RancherOS feelings (Linux)
- Debian 7.8 system installation and configuration process (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.