Originally posted by kubicle
View Post
Announcement
Collapse
No announcement yet.
How do I create aliases?
Collapse
This topic is closed.
X
X
-
You can just do something like: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.
which will create your first alias and the file ~/.bash_aliases (if it doesn't exist).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
-
I take it the difference is reading the various profile files or not.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
-
Basically, possibly some pam related stuff but I am not entirely sure... the difference on a default kubuntu install is very minimal though, you only really need to worry about this (and probably already understand more about it) if you customise the login process at all.Originally posted by kubicle View PostI take it the difference is reading the various profile files or not.
- Top
- Bottom
Comment
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.




Comment