Alias improves work efficiency

Source: Internet
Author: User
Alias improves work efficiency because it is relatively difficult to operate apache restart (apache1restart) and tomcat restart on Linux servers, which may affect efficiency. Therefore, I am using aliases to improve work efficiency, write the tomcat restart script in advance and the apache restart script... alias improves work efficiency because it is relatively difficult to operate apache restart (apache1 restart) and tomcat restart on Linux servers, which may affect efficiency. Therefore, I am using aliases to improve work efficiency, write the tomcat restart script and apache restart script in advance, and then: alias 1 tomcatrestart = '/site03/shell/1tomcatrestart. sh' after executing this command, we can try to input 1 at the command prompt and then the TAB will be automatically completed. press enter and restart at 'repeat1' to complete the operation... but it only takes effect for this time .... run the following command: vi ~ /. Bashrc will alias 1 tomcatrestart = '/site03/shell/1tomcatrestart. below the original alias added by sh .... in this way, the restart takes effect .. if you write the wrong command unfortunately, you can use the following command to cancel the alias unalias 1 tomcatrestart
Related Article

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.