Linux Five week third session (March 7) Notes

Source: Internet
Author: User

Five Week third session (March 7)
8.1 Shell Introduction
8.2 Command History
8.3 Command Completion and aliases
8.4 Wildcard Characters
8.5 Input and output redirection

Search to see if there are none of these two shells, not installed.

8.2 Command History

Used command, in/root/.bash_history.

Check out the/root/.bash_history with the cat command

You can use command history to view previously used commands

History-c

The/etc/profile configuration file is modified and the source command is run to make it effective.

Specifies when to run.

The variable has changed.

Historical command.

To take effect, you need to edit the configuration file/etc/profile,

Input/histsi

Find the histsize=5000 and put it and the variable histsize together.

Re-open the Linux system and run the history

History command records can only be appended and cannot be deleted.

Abnormal exit, the command will not be fully logged.

Run 761 history commands.

Run a recent history command with Echo.

8.3 Command Completion and aliases

TAB key to complete the command and path.

When multiple commands start with LS, double-click the TAB key.

When multiple commands start with MK, double-click the TAB key.

When a command starts with a mkt, press the TAB key.

CentOS6 can only complete commands, and CentOS67 adds the function of complement parameters. To install a package.

Reboot to make it effective.

The following parameters can also be complete

The alias is faster than the TAB key completion.

Run the command alias, you can not put all the names out.

Part of the alias is placed in the file. BASHRC.

And a part of the alias is on/etc/profile.d/.

Open it and look.

Command Unlias to cancel the alias.

8.4 Wildcard Characters

8.5 Input and output redirection

Linux Five week third session (March 7) Notes

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.