In the process of using Linux, we need to follow some parameters after each command. However, it is troublesome to manually add common parameters each time. Linux may use the command alias function to reduce your input. The following operations will be clear.
OS: RedHat as4.2
Ls-l list detailed document directory information
Ls-Hl lists document sizes, in K.
Ls-hlt lists documents sorted by Time
For the above three displays, we only need to configure alias LL = 'LS-LHT 'so that we can enter ll.
Under which configuration document does the alias LL = 'LS-LHT 'configuration belong? This depends on your own needs.
For example, you only want the user name Jack to have the above functions, because you only use this user frequently. Modify. barsh_profile in the user's home directory and add alias LL = 'LS-LHT.
If you want to modify the system globally, that is, if any user has the above functions, you must modify the/etc/bashrc document, add alias LL = 'LS-LHT.
If you have other commands, you can add them in sequence.
Alias LL = 'LS-LHT'
Alias df = 'df-H'