1.1 Shell Features

Source: Internet
Author: User


| Pipeline

> Redirection

>> Chasing heavier orientation

< reverse redirection

2> Error Redirection

2>> Append Error redirection


CTRL + Z to temporarily stop the job

Jobs View Job

FG recalled to front desk

+ Higher Priority

FG 2 designated number recall

BG tuned to Backstage

Sleep & also executes the command and adds & recalls the background.


1. What are the functions of the following special symbols?

!! You can execute the previous command

!ca can execute the last command in the command history that starts with a CA

!100 can execute 100th command in command history

!$ means the last parameter of the previous command

2. The argument about redirection is correct.

> redirect for correct output if there is content in the target file it overwrites the old content

2> is the wrong redirect, only the wrong information is logged

2>>1.txt error message appended to 1.txt

3. What do I do if I want to put the command "sh 1.sh" into the background?

SH 1.sh, then CTRL + Z, then BG ID

SH 1.sh &


Main: Job Control

1.1 Shell 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.