LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-10-2005, 05:14 PM   #1
Petra9
LQ Newbie
 
Registered: Jan 2005
Location: Belgrade, Serbia
Distribution: SuSE 9.2
Posts: 15

Rep: Reputation: 0
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.
 
Old 01-10-2005, 05:36 PM   #2
linuxgeekery
Member
 
Registered: Jul 2004
Location: Austin, Texas!
Distribution: Gentoo
Posts: 121

Rep: Reputation: 15
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.
 
Old 01-10-2005, 06:33 PM   #3
Petra9
LQ Newbie
 
Registered: Jan 2005
Location: Belgrade, Serbia
Distribution: SuSE 9.2
Posts: 15

Original Poster
Rep: Reputation: 0
should I put it in my home directory or some place else?

Last edited by Petra9; 01-10-2005 at 06:36 PM.
 
Old 01-10-2005, 07:05 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

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

Code:
/home/name/.bashrc
Peace,
JimBass
 
Old 01-11-2005, 07:10 AM   #5
Petra9
LQ Newbie
 
Registered: Jan 2005
Location: Belgrade, Serbia
Distribution: SuSE 9.2
Posts: 15

Original Poster
Rep: Reputation: 0
Thanx, that is solved now:)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 01:40 AM
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 09:53 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 06:37 AM
ip alias mindcry Linux - Networking 0 10-16-2003 08:41 PM
alias booyah Slackware 3 05-06-2003 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration