Linux alias tips
For example, you execute command "vagrant halt app1" to stop server app1 or "vagrant halt db" to stop server db in Vagrant. you can use alias command the define command "stop_app1" or "stop_db"Step 1: Add command end of line in .bashrc file
[[email protected] ~]$ vim .bashrc
The terminal output as below
Step 2: Apply the change
[[email protected] ~]$ source .bashrc
The screen output terminal:
[[email protected] ~]$ cd my_ansible/example01/
[[email protected] example01]$ stop_app1
DEPRECATION: The 'sudo' option for the Ansible provisioner is deprecated.
Please use the 'become' option instead.
The 'sudo' option will be removed in a future release of Vagrant.
==> app1: Attempting graceful shutdown of VM...
[[email protected] example01]$ stop_db
DEPRECATION: The 'sudo' option for the Ansible provisioner is deprecated.
Please use the 'become' option instead.
The 'sudo' option will be removed in a future release of Vagrant.
==> db: Attempting graceful shutdown of VM...
Conclusion
Thought the article, you can use Linux alias tips as above . I hope will this your helpful.Thanks for reading Linux alias tips My blog Zimbra Mail Server,linux,bash script,centos,linux command I hope this is useful.