Results 1 to 3 of 3
Hello,
I can make aliases fine by editing the .bashrc file in my home directory, but the first thing I do when I open a terminal window is sudo su ...
- 05-07-2010 #1
[SOLVED] Aliases for SU
Hello,
I can make aliases fine by editing the .bashrc file in my home directory, but the first thing I do when I open a terminal window is sudo su so I don't have to type sudo in front of every command. The problem is, I am then not able to use my aliases. How can I make aliases that work after I run the sudo su command?
Thanks,
Greg
- 05-08-2010 #2
Instead of using 'sudo su' try 'sudo <shell>' replacing the '<shell>' with what ever shell you use.
For example I use bash so i type in 'sudo bash'.
- 05-10-2010 #3
Thank you Lazydog, that works perfectly!
I am now able to use the aliases I create in .bashrc


