Linux Command alias (Linux Command alias)

Source: Internet
Author: User
1. List the detailed information, file size, and time-based sorting of directory files.

Use LS-hlt
Set alias LL = 'LS-hlt ', and then use the command ll to achieve LS-hlt;

2. We often check the usage of a port.

Use watch-N1 "netstat-an | grep 1521 ″

Set alias ora = 'Watch-N 1 "netstat-an | grep 1521". You can use ora later.

3. If you need to enter a very deep directory

For example, CD/home/Chengdong/INFO/deploy/APP/logs
Set alias logs = 'CD/home/Chengdong/INFO/deploy/APP/logs' and execute logs to directly enter the directory.

Setting method:

What is the Linux Command alias set in that file?
If you want a user to have this command, add the alias to The. bash_profile file in the user directory.
All users can use this command, so global settings are required to modify the/etc/bashrc file.

 

Http://chengdong.info/linux_command_alias.html

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.