Originally posted by kubicle
View Post
Announcement
Collapse
No announcement yet.
How do I create aliases?
Collapse
This topic is closed.
X
X
-
Originally posted by michel View PostThanks for the clarifications I get most of it except the saving as .bash_aliases if you could give a concrete example I would appreciate it.
Code:echo "alias su='sudo -i'" >> ~/.bash_aliases
You can then edit the file with a text editor or use another echo command to add additional aliases. Remember to 'source ~/.bash_aliases' or restart your shell for your new aliases to take effect.
- Top
- Bottom
Comment
-
Originally posted by james147 View PostAnother difference is -i starts a full login shell, -s only starts an interactive shell... This makes most difference when you have customised the shell login some how over just the interactive starting.
- Top
- Bottom
Comment
-
Originally posted by kubicle View PostI take it the difference is reading the various profile files or not.
- Top
- Bottom
Comment
Comment