Simplify Linux Command Input

Source: Internet
Author: User

In LINUX, there are many common commands, which can be memorized skillfully. However, for commands that are not frequently used, you may need to read the manual, however, we can simplify the input of these commands to make it easier to remember.

Here we use BSH as an example:

Edit the/etc/bashrc file (all users using this SHELL can enjoy convenience. If you do not have the ROOT permission, edit the file in your own directory. bashrc file, the difference is that only you can use the alias defined below)

Add this section at the end:

Alias l = "ls -- color-l"
Alias lm = "ls -- color-l | more"
Alias la = "ls -- color-l-"

In this way, we can use "l" to list long directories separately. The "lm" function can be used to list directories on different screens. For "la", hidden files are listed at the same time.

Simply enter C: You can access your DOS partition (ROOT permission is required,/mnt/dos needs to be created in advance ). After loading the DOS partition, you can use UC: To unmount the DOS file system, and give a prompt like when loading.

You can set the English in the middle of the two paragraphs by yourself. You can use echo \ to output blank lines and see how you design them beautifully.

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.