Skip to content

Instantly share code, notes, and snippets.

@talayhan
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save talayhan/05eebb43790945ab6fb8 to your computer and use it in GitHub Desktop.

Select an option

Save talayhan/05eebb43790945ab6fb8 to your computer and use it in GitHub Desktop.
How to use and when alias command in Linux.
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