Shell Basics 2

Source: Internet
Author: User
Pipe symbol

Take the previous result as input to the following command

Job Control
Ctrl +z pause the current task into the background

Restart incoming

Jobs view the commands in the background

BG is in the background and running

Sleep 1000 Pause
FG does not add parameters but only transfers the most recent command

Tune in to the background and run

Variable

viewing system Variables

Custom variables

The first variable naming rule cannot be a number

Special characters need to use single quotation marks

The summation of variables

Current Terminal

Pstree

Global environment variable Export custom variable

Child shells can also query variables
Cancel variable unset

environment variable configuration file

Load configuration file

The system level is under/etc/.
User-level./.BASHRC
PS1/ETC/BASHRC inside definition

Modify PS1

Do not add square brackets

Add color display

PS2

Shell Basics 2

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.