Last active
August 29, 2015 14:18
-
-
Save talayhan/05eebb43790945ab6fb8 to your computer and use it in GitHub Desktop.
How to use and when alias command in Linux.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The alias command allows you to create command shortcuts within your shell. Below shows you how, | |
| move to your home directory, | |
| [root@localhost ~]# cd ~ | |
| add the alias | |
| [root@localhost ~]# cat >> .bash_profile | |
| [root@localhost ~]# alias fucking='su -' | |
| Reload you environment variables for your new alias to take effect | |
| [root@localhost ~]# . .bash_profile | |
| Test your new alias | |
| [root@localhost ~]# fucking | |
| Enter password: | |
| Where are the mistakes on this commands ?_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment