32. Linux Shell, common knowledge points

Source: Internet
Author: User

1. ChildProgramOnly the environment variables of the parent program will be inherited, And the subroutine will not inheritDefinitionVariable.

Custom variables: declare them as environment variables through export

Convert environment variables to custom Variables: Declare

Environment Variable = global variable

Custom variable = region variable

2. Read [-pt] variable

Options and parameters:

-P: Followed by a prompt character!

-T: the number of seconds that can be followed !』 This is interesting ~ Will not wait for the user all the time!

Read-P "input name:"-T 30 name

3. ulimit [2]

Ulimit-Get and set user limits

4 ,~ /. Bash_history records historical commands

[Root @ WWW ~] #! Number

[Root @ WWW ~] #! Command

[Root @ WWW ~] #!!

Options and parameters:

Number: indicates the number of commands executed;

Command: the nearest command searches for the command starting with "command" and executes the command;

!! : Execute the previous command (equivalent to pressing enter after pressing the keys)

5,Profile

①/Etc/profile: This is the overall setting of the system. You 'd better not modify this file;

②~ /. Bash_profile or ~ /. Bash_login or ~ /. Profile: the profile is set by the user. If you want to modify your own data, write it here!

Reference

[1]Http://blog.163.com/zhoumhan_0351/blog/static/39954227201061411191729/

Http://blog.163.com/zhoumhan_0351/blog/static/399542272010533254171/

Http://blog.163.com/zhoumhan_0351/blog/static/39954227201061045630711/

[2]Http://linux.vbird.org/linux_basic/0320bash.php#bash_bash

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.