8.1 Shell Introduction 8.2 command History 8.3 command completion and alias 8.4 wildcard 8.5 input/output weight

Source: Internet
Author: User
8.1 Shell Introduction: Can be divided into interactive and batch processing
Interactive: The user executes a command every input immediately
Batch: The user writes the full shell script in advance, and the shell executes many commands of the script

8.2 Command History




Permanent Save History Command: Chattr +a ~/.bash_history (+a permission, only allowed to increase not delete)
!! Represents the execution of the previous command
! N
! Word

9.8.3 command Completion and aliases
#yum install-y bash-completion installation parameters after completion of the relevant source need to restart the machine before it takes effect
tab, tap, match commands and parameters, double tap to display matching information for selection

8.4 Wildcard Characters


8.5 Input and output redirection

          输出重定向到一个文件或设备 覆盖原来的文件

! Output redirected to a file or device forcing overwriting of the original file
> Output redirected to a file or device to append the original file
< redirect input to a program
2> redirects a standard error output to a file or device overwriting the original file B-shell
2>> redirect a standard error output to a file or device appended to the original file
2>&1 redirect a standard error output to the standard output note: 1 could be the standard output.
& redirect a standard error output to a file or device to overwrite the original file C-shell
|& to send a standard error pipe to another command as input

8.1 Shell Introduction 8.2 command History 8.3 command completion and alias 8.4 wildcard 8.5 input/output weight

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.