Introduction to shell-bash programming parameters

Source: Internet
Author: User
Article title: shell introduction-bash programming parameter description. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
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.
  
---- Partially taken from < >
  
  
  
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.