View Full Version : have my own aliases in terminal?
bakerbaker
05-04-2007, 02:27 PM
hi, can create my own aliases in a txt document, source it, and be able to use it?
for example
logmein = 'ssh me@mysite.com'
so i can type logmein and it will execute my command?
botsnlinux
10-29-2009, 09:13 PM
For anyone that stumbles across this like I did:
Become root
Edit /etc/profile (this will affect all users)
Add the line
alias logmein="ssh me@mysite.com"
There's probably a way to do this without being root (equivalent to .bashrc), but this was easy enough and got the job done.
Become root
Edit /etc/profile (this will affect all users)
[...]
There's probably a way to do this without being root
Yes, use /home/user/.profile instead.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.