alias is one of the commands of the Linux system. It can be used to customize the alias of other commands. It is very useful when the command is long. The following is a small series to introduce the usage of the Linux alias command. Interested friends can Come to understand.
Function Description: Sets the alias command.
Syntax: alias[alias]=[instruction name]
Parameter: If no parameters are added, all current alias settings are listed.
Example:
root@czu:~/projects/myshell/srce# alias
alias begin=‘mount -t vmhgfs .host://mnt/hgfs /’
alias egrep=‘egrep --color=auto’
alias fgrep=‘fgrep --color=auto’
alias gopj=‘ Cd /root/projects’
alias grep=‘grep --color=auto’
alias l=‘ls -CF’
alias la=‘ Ls -A’
alias ll=‘ls -alF’
alias ls=‘ls --color=auto’
alias work=‘cd /Mnt/hgfs/VMwareFolder’
Description: Users can use alias to customize the alias of the instruction. If you only enter alias, you can list all the current alias settings. The role of .alias is limited to the login operation. To automatically set an alias every time you log in, you can set the alias of the command in /etc/profile or your own ~/.bashrc.
Also, if you want to give an alias to every user, add the alias to the end of /etc/bashrc, which is the configuration file for the environment variable. The difference between /etc/bashrc and ~/.bashrc is that one is set to the whole system and the one is set to use for single users.
If you want to be permanent, write this to /etc/bashrc.
The above is the introduction of Linux using the alias command. If you feel that the command is too long when you use the command line, and you often use it, you can use the alias command to set an alias for the command. Save a lot of time.
Linux is very troublesome to build SVN repository every time. If you implement these through shell s
Since USB3.0 transfers files faster than USB2.0, many computers are now equipped wi
As a Linux system administrator, in order to better manage the process, it is neces
I believe many people know what system files are, but few people know what the text stream is. In fa
CentOS 6.6 system installation steps
How Linux expands the number of file openers
Ubuntu system to install PPA on the terminal Step
How to use the expr command in Linux system
Linux how to use the cal command to view the calendar
How to solve the garbled problem when opening Emacs under Linux?
Linux backup method through shell script
Linux method to modify the PATH path summary
Modify Linux password prompt it is based on a dictionary word What to do?
Summary of usage of the hexdump command in Linux systems
Linux function library creation method
How to use uniq command to delete text duplicate lines in Linux system
WinXP's little-known six cheats
Dual system issues with Windows 7 and other Windows
Windows 8 Pre RTM Metro UI leaks
Win7 system comdlg32.ocx registration failure solution
What does DNF Callett's report paperwork do?
Win10 official version prompts "Error 0x80200056" solution
System icon replacement tutorial
The icon in the lower right corner of windows8 system blurs the recovery graphic tutorial
How does AutoCAD terminate, undo, and redo commands for some commands?