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