Linux Learning-Shell Basics-Bash basic features

Source: Internet
Author: User
Tags aliases

  

Historical command

  History

-C Clear

-W Write ~/.bash_history

Save 1000 By default, can be modified in /etc/profile

Call

      

TAB completion

commands, directories, files

Command aliases

Alias aliases = ' Original command '

Command execution order:

Absolute path or relative path > alias > Bash's internal command > The first command found in $PATH environment variable (external command)

Configuration file:/ROOT/.BASHRC

Delete: Unalias aliases

Common shortcut keys

  

Input and output redirection

  Standard input and output

    

  Output redirection

    

Note: There are no spaces between 2 and >!

    

Command &>/dev/null the results into the trash.

  Input redirect

Example: WC [options] [filename]

-C Statistics byte number

-W statistical number of words

-L count rows

Sequential execution of MULTIPLE commands

  

DD is primarily used for disk-to-copy

    

Command && echo yes | | Echo No

Pipe symbol |

Command 1 | Command 2 The correct output of command 1 as an object of command 2

Example: Ll-a/etc/| More

Netstat-an | grep "established"

        

Wildcard characters

  

Other special symbols in bash

  

Linux Learning-Shell Basics-Bash basic features

Related Article

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.