alias, chmod
alias:
Why doesn't linux remember my aliases (I tried it with fedora and slack): I have to run alias cd..="cd .." everytime I login if I want to use it. Same thing with chmod: If I want to watch a movie from cd or dvd as user, I have to run "sudo chmod 755 /dev/hdc" every time I login. |
Put the alias command in a file named .bashrc (include the dot). If there isn't one, make one. Same with the chmod. Log out and log in for it to have effect.
|
should I put it in my home directory or some place else?
|
Yes, it should be in home, the full path to it is:
Code:
/home/name/.bashrc JimBass |
Thanx, that is solved now:)
|
All times are GMT -5. The time now is 04:13 PM. |