LinuxQuestions.org
Review your favorite Linux distribution.
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-09-2005, 08:19 PM   #1
deucedlt
Member
 
Registered: Oct 2004
Distribution: Red Hat 9-2.4.20-31.9
Posts: 40

Rep: Reputation: 15
why does reboot remove aliases?


alias command shows built-in aliases for user and root, also aliases
which i have set and used ok. why do they (the ones i have set) not
survive a reboot. is there something like a permanent alias command?
 
Old 01-09-2005, 08:42 PM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Yes, try putting the alias to your .bashrc file.

it is located in your home directory. If it is not, create one.

but mind that in the .bashrc file aliases must be within single quotes:

alias cl='clear'

This way they will not be gone when you reboot.
 
Old 01-09-2005, 08:46 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
apply your aliasses this way:

$touch ~/.profile ( create a file named " .profile " in your home-dir )

then edit that file ( put in all aliasses you need )

next console you open ( or after a reboot ) they will work.

egag
 
  


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
No keyboard/mouse after reboot. Requires second reboot to work. rottie Linux - Hardware 6 01-16-2006 06:04 AM
Aliases SkyeFyre Fedora 8 03-18-2005 08:35 PM
aliases in C++ djgerbavore Programming 6 03-16-2005 09:35 PM
using aliases after doing su? NonSumPisces Linux - Newbie 2 08-15-2004 03:19 PM
See aliases gubak Linux - Newbie 0 08-04-2004 07:13 AM


All times are GMT -5. The time now is 02:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration