In Linux systems, most of the commands are very simple, and there are very few commands with complex functions. Each command often implements one or several functions that are very simple. We can combine multiple simple commands. Complete complex functions.
Almost all commands in linux return plain text, because commands are run under the CLI, and plain text is the input format of the command line, which makes command collaboration possible. The combination of commands is done through redirection and pipelining.
The data stream of the command line has the following definitions:
Standard input description number default
STDIN standard input 0 keyboard
STDOUT standard output 1 terminal
STDEER Standard Error 2 Terminal
Through the pipe and redirection we can control the data flow of the CLI.
Redirect
> Redirect standard output to a file. If the file does not exist, create a file that will overwrite the original content.
>> Redirect standard output to a file, if the file does not exist, create a file that will append the content to the end of the file when it exists
2> Redirect standard error
2>&1 redirects standard error and standard output to a file
< Redirects standard input
Pipeline
The standard output of the first command is the standard output of the next command.....
1.Last Command
Introduction to linux last Command
Description: Lists information about users who have logged into the system in the past.
Syntax: last [-adRx][-f
-d ] [ -k
What should I do if the Ubuntu system Grub fails? Many computer users think of reloading: Grub, howe
Greg Kroah-Hartman today announced the seventh release of Linux Kernel 3.15, which is small
Some users of Linux systems often encounter, showing that the disk space is full, you have to delete
Linux--Backup and Restore--tar Command
Linux compiles the kernel and adds system calls
Inux virtual machine network configuration method and solution to the problem
File archiving, compression, and decompression of Linux commands - tar, gzip, gunzip, bzip2, bunz
The implementation method of batch parallel telnet peer port under linux
Linux virtual machine three networking modes and remote login management
Win10 install patch failed error 0x80070002 solution
The serial number is incorrect. Cannot install Win2003 SP1. Solution
System prompts sorry, we are currently unable to connect to the Microsoft service solution
Sotec GTX780AMP is available for 3299 yuan
The master's detailed explanation of the maintenance of the liquid crystal display
Win7 system opens a simple method with the extension file name
What can I do in Win8 safe mode
Reasons for the slow local connection after the computer is turned on and the solution