"Linux Series" "Basic Edition" chapter III Shell Basics

Source: Internet
Author: User
Tags disk usage

The origin of 3. shell basic knowledge     3.1 shell          3.1.1 bourne agin shell        3.1.2  the other shells,   have  zsh, ksh     3.2  see if shell         3.2.1 yum list | grep zsh         3.2.2 ls /root/.bash_history        3.2.3 echo $ histsize -> vi /etc/profile  Modifying the value of Histsize  -> source /etc/profile         3.2.4 history -c //empty command history (in-memory)          3.2.5 histtimeformat= "%y/%m/%d %h:%m:%s"          3.2.6 vi /etc/profile        3.2.7  Chattr +a ~/.bash_history  //can only be appended and will not be deleted         3.2.8 !!   //last Command;  !n  //     !words //     3.3  installation Parameters complete source         3.3.1 yum install - y bash-completion //need to restart the computer (reboot) after the installation parameters are fully active         3.3.2  systemctl restart network.service //Restart Network Service          3.3.3 rpm -qa bash-completion     3.4 alias  Configuration Files          3.4.1 vi .bashre //alias configuration file (part)          3.4.2 cd /etc/profile.d/  //alias other parts of the configuration file          3.4.3 tab Key:              3.4.3.1  Click the match command and parameters             3.4.3.2  Display matching information for selection by two      3.5  wildcard characters         3.5.1 *  match all characters  ls  *.txt        3.5.2 ?   match a character  ls ?. txt        3.5.3 ls [0-9].txt         3.5.4 ls {1,2}.txt        3.5.5  redirection  cat 1.txt > 2.txt        3.5.6  Chasing heavier orientation  cat 1.txt >> 2.txt        3.5.7  Error Redirection  lsaaa 2> a.txt         3.5.8  Append Error redirection  lsaaa 2>> a.txt        3.5.9 wc -l  < 1.txt //input redirection, wc -l view text lineThe left needs to be a command         3.5.10 ls [12].txt aaa.txt & > a.txt  //&>  redirect         3.5.11 for correct error  ls [12].txt aaa.txt >1.txt 2>a.txt  //to distinguish between right and wrong      3.6  pipe breaks and job control         3.6.1 cat 1.txt |  wc -l        3.6.2 cat 1.txt | grep  ' AAA '         3.6.3 ctrl + z //Pause a task          3.6.4 df -h //View disk usage          3.6.5 fg //Front desk frontground             3.6.5.1 fg idnumber        3.6.6 jobs // View background or stopped tasks         3.6.7 bg //Backstage background             3.6.7.1 bg IDNumber         3.6.8 vmstate 1  //Dynamic Display System Status         3.6.9  sleep 100 //pause for 100 seconds             3.6.9.1  sleep 100 & //put the command in the background run              3.6.9.2 ps aux| grep sleep   //Viewing processes


"Linux Series" "Basic Edition" chapter III Shell Basics

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.