Shell Scripting Learning

Source: Internet
Author: User
To see what versions of the Shell:cat/etc/shells system are currently running, the first process that starts is init

How bash Shell debugs:
Simply add parameters after the SH command
-N: Do not execute scripts, query the grammar within the scripts, if there are errors are listed!
-V: The contents of scripts are displayed on the screen before executing the scripts;
-x: The scripts content that will be used is displayed on the screen, slightly different from-V!

Operational symbols represent meaning
= equals
! = does not equal
< less than
> Greater than
-eq equals
-ne Not equal to
-lt less than
-GT Greater than
-le less than or equal to
-ge greater than or equal to
-A both are established (and)
-O unilaterally established (or)
-Z Empty string
-N Non-empty string

Export command: Turn custom variables into environment variables
Note: Child processes do not inherit custom variables from the parent process

Shell Scripting Learning

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.