Basics of learning shell scripts (i) (Learning to record posts)

Source: Internet
Author: User
  1. Record command history: The commands we've knocked on, Linux will have a record, saved in the. bash_history file in your home directory. (Note: The current command will be saved in the. bash_history file only if the user exits the current shell normally) "! "Common Applications: (1)!! Represents the execution of the previous tributary; (2)! N (n represents a number), which represents the nth command in the execution history; (3)! A string, such as!ta, represents the most recent TA-prefaced command in the command history;
  2. Tributary and filename completion: Press the TAB key to help replenish instructions, paths, or filenames, and press TAB two times to list all instructions or files;
  3. Alias: alias to long command aliases; Unalias de-alias; Syntax: alias [command alias]=[' specific Command ']
  4. Wildcard: * to match 0 or more characters,? to match a character;

Basics of learning shell scripts (i) (Learning to record posts)

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.