8.1shell Introduction 8.2 Command History 8.3 command completion and alias 8.4 wildcard 8.5 input and output redirect

Source: Internet
Author: User
Tags aliases
8.1 Shell Introduction
.

Find out if there are any of these 2 installation files

8.2 Command History

Ring Qianjing 1000, so only 1000 records can be saved

Sometimes more than 1000, that is because the input command has not been written into this file, only in memory
History-c is a record that deletes memory and does not delete the configuration file of the saved command
It is only saved to the configuration file when you exit the terminal.
Vi/etc/profile Modify the histsize=5000, save the exit after the source value will be changed

Change the mode of the variable, only in the current terminal effective%y year%m month%d day%h%m minutes%s seconds

To make the other terminal effective, add it to the profile configuration file

8.3 Command Completion and aliases

aliases, you can only search out these few

The rest is here.

Alias to do aliases

Remove Alias

8.4 Wildcard 8.5 input and output redirection

Output the wrong content to 2.txt

+2> = &> indicates correct and incorrect information, Aaa.txt is not a file, so there are error messages, all written into the a.txt inside

You can also add all &>> to A.txt

It is also possible to write the correct output into a file, and the wrong output to write another file

8.1shell Introduction 8.2 Command History 8.3 command completion and alias 8.4 wildcard 8.5 input and output redirect

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.