Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-10-2005, 05:14 PM
|
#1
|
LQ Newbie
Registered: Jan 2005
Location: Belgrade, Serbia
Distribution: SuSE 9.2
Posts: 15
Rep:
|
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.
Last edited by Petra9; 01-10-2005 at 05:15 PM.
|
|
|
01-10-2005, 05:36 PM
|
#2
|
Member
Registered: Jul 2004
Location: Austin, Texas!
Distribution: Gentoo
Posts: 121
Rep:
|
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.
|
|
|
01-10-2005, 06:33 PM
|
#3
|
LQ Newbie
Registered: Jan 2005
Location: Belgrade, Serbia
Distribution: SuSE 9.2
Posts: 15
Original Poster
Rep:
|
should I put it in my home directory or some place else?
Last edited by Petra9; 01-10-2005 at 06:36 PM.
|
|
|
01-10-2005, 07:05 PM
|
#4
|
Senior Member
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100
Rep:
|
Yes, it should be in home, the full path to it is:
Peace,
JimBass
|
|
|
01-11-2005, 07:10 AM
|
#5
|
LQ Newbie
Registered: Jan 2005
Location: Belgrade, Serbia
Distribution: SuSE 9.2
Posts: 15
Original Poster
Rep:
|
Thanx, that is solved now:)
|
|
|
All times are GMT -5. The time now is 01:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|