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