LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   alias, chmod, (https://www.linuxquestions.org/questions/linux-newbie-8/alias-chmod-276235/)

Petra9 01-10-2005 04:14 PM

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.

linuxgeekery 01-10-2005 04:36 PM

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.

Petra9 01-10-2005 05:33 PM

should I put it in my home directory or some place else?

JimBass 01-10-2005 06:05 PM

Yes, it should be in home, the full path to it is:

Code:

/home/name/.bashrc
Peace,
JimBass

Petra9 01-11-2005 06:10 AM

Thanx, that is solved now:)


All times are GMT -5. The time now is 04:13 PM.