Some tips on commands-general Linux technology-Linux technology and application information-are as follows. Author: songruolong
It can be said that linux is composed of commands. Whether a linux is good or not depends on whether the commands he has mastered are skillful. Linux Command functions are actually very powerful. Next I will introduce some tips.
Alias function of a command
Some of the commands we often use will certainly have some of the commands that we often call and are very long at the same time. Although we can say that these commands can be turned back like a stream, however, it takes some time to enter the command later. In this case, you can use the alias function of the command to simplify the input. For example, if I want to mount a cd and enter the cd, the complete command is # mount/media/cdrom & cd/media/cdrom. A total of over 30 letters are required, it is easy to use the alias function. To use the alias function, first define the alias as # alias m = 'mount/media/cdrom & cd/media/cdrom '. Note, m is the alias of the command. Next time you insert a disc, you only need to enter m and press enter to implement the above functions. To cancel the alias function, you only need to add un before # unalias m = 'mount/media/cdrom & cd/media/cdrom.
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