Alias for Linux under Alias Settings command

Source: Internet
Author: User




First step: Edit the ~/.BASHRC file with VI or Gedit editor
sudo gedit ~/.BASHRC




Step two: Find alias in the ~/.BASHRC file and add the shortcut phrases you want to implement


# some more ls aliasesalias ll= ' ls-alf ' Alias la= ' ls-a ' Alias l= ' ls-cf ' Alias cdjd3= ' cd/var/www/zndz/jd/360 ' Alias Cdqijiy un= ' Cd/var/www/qijiyun ' Alias cddev= ' Cd/var/www/qijiyun/dev ' Alias gitpull= ' Git pull Origin master ' alias gitpush= ' git Push Origin master ' alias gitcommit= ' git commit-a-M ' Update ' Alias gitadd= ' git add-a ' alias gs= ' git status '



Step three: On the command line, enter:
SOURCE ~/.BASHRC


Making just file Resource




Completed the implementation of the shortcut link phrase under Linux


You can implement the command you want by simply typing in your own defined phrase.

Alias for Linux under Alias Settings command

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.