Linux Reading Notes

Source: Internet
Author: User

Type \

Echo unset set Export

Environment variable: Home shell histsize mail path Lang random PS1 $?

Language variable that affects the result: locale

Variable keyboard reading, array and Declaration: Read array declare

And file systems andProgramConstraints: ulimit

Deletion, substitution, and replacement of variable content:

Delete

$ {Variable # keyword} Only deletes the shortest prefix-> suffix

$ {Variable ## keyword} Only deletes the longest prefix-> suffix

$ {Variable % keyword} After Shortest-> before

$ {Variable % keyword} longest last-> front

Replace

Replace $ {Variable/old string/new string} with the first variable

$ {Variable/old string/new string} replace all

Variable test and content replacement

Bash logon and welcome information

/Etc/issue/etc/motd

Bash environment configuration file

/Etc/profile

~ /. Bash_profile ~ /. Bash_login ~ /. Profile

Read environment configuration file

Source.

Terminal Environment Settings

Stty set

Data Stream redirection

Stdin: 0 stdout: 1 stderr: 2

/Dev/null

2> & 1

Eg: CAT> catfile <"EOF" When EOF is input, end the input, instead of ^ d.

Command Execution judgment basis

;

& | $?

MPs queue

Select command:

Cut-d' delimiter '-F fields cut-C character range

Eg: Echo $ PATH | cut-d': '-F 1, 3; echo $ path cut-C 12 -;

Grep [-acinv] [-- color = auto] 'query string' filename

Sort command:

Sort [-fbmnrtuk]

Uniq [-ic]

WC [-LWM]

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.