Shell basics-Description of parameters in bash Programming

Source: Internet
Author: User

Introduction to shell-bash programming parameters

When you log on to the system, you have started to use bash, but we can also start bash on the command line:
1. Bash parameter description
The bash command format is:
Bash [parameter] [file name]
The meanings of parameters are as follows:
-C string. If the-c parameter is used, bash reads the command from the string. If there is a variable after the string, it is set
The starting position parameter of $0.
-If-I is used, bash is interactive.
-S if the-s parameter is used, bash reads the command from the standard input (after executing the-c command .) Till Input
Exit.
-A single-symbol indicates that the parameter has been executed and the subsequent parameters are blocked. All subsequent variables are considered as files.
Name.
-If bash is interactive, do not execute the personal initialization file:-/. bashrc. If bash is run as sh, this
The parameter is disabled by default.
-Noprofile: do not execute the system-specific startup file/etc/profile or the personal Startup File.
~ /. Bash_profile ,~ /. Bash_login or ~ /. Profile. By default, bash uses these
As the Startup File.
-Rcfile: if bash is interactive, the file is used as the bash Startup File. Replace ~ /. Bashrc.
-Version: the bash version is displayed at the beginning of bash.
-Quiet does not display the version number and other information. This is the default value.
-Login activates bash, disguised as a logon shell.
-Nobraceexpansion does not execute braces extension.
-Nolineediting does not use the GNU readline library to read commands during interaction. The command line editing function is canceled.
Yes.
-Posix changes bash behavior to conform to Posix 1003.2 standards.

 

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.