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.
|
 |
08-18-2003, 08:13 PM
|
#1
|
LQ Newbie
Registered: May 2003
Location: san jose
Distribution: redhat 9
Posts: 18
Rep:
|
aliases in .bashrc file
Hey,
i added the alias ls='ls -F' to my .bashrc file to take away the coloring of dir, files, etc, but for some reason it only works when i ssh to my box. I'd really like to turn off the coloring and just use the "-F" switch when doing an "ls"
Can anyone assist me here?
thanks
|
|
|
08-18-2003, 08:15 PM
|
#2
|
Member
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290
Rep:
|
|
|
|
08-19-2003, 02:35 AM
|
#3
|
Member
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209
Rep:
|
You have to put:
alias ls='ls --color=never'
in your .bashrc or /etc/profile for system wide settings
|
|
|
08-19-2003, 06:18 PM
|
#4
|
LQ Newbie
Registered: May 2003
Location: san jose
Distribution: redhat 9
Posts: 18
Original Poster
Rep:
|
that might work on slackware but its not working on RH9 don't know what the deal is at this point. i'm kind of tired of having to do alias ls='ls -F' everytime i open up a new shell oh well, guess i'll puts around a bit more
|
|
|
08-19-2003, 06:21 PM
|
#5
|
LQ Newbie
Registered: May 2003
Location: san jose
Distribution: redhat 9
Posts: 18
Original Poster
Rep:
|
so i added the alias to the .bash_profile file and that seemed to have fixed my problem...weird, but i'll take it.
|
|
|
08-19-2003, 06:23 PM
|
#6
|
LQ Newbie
Registered: May 2003
Location: san jose
Distribution: redhat 9
Posts: 18
Original Poster
Rep:
|
ok problem is only half-way solved. if i open a new terminal i still have to do source .bash_profile which pretty much leaves in the the same place, i have to take the extra step to enable my alias.
|
|
|
08-19-2003, 10:51 PM
|
#7
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
You will until you log out and back in. Then it will work on all of your consoles
Or you could just get out of everything except your login console, do a source .bash_profile and then it will work on all child consoles.
|
|
|
08-21-2003, 01:03 PM
|
#8
|
Member
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209
Rep:
|
Quote:
if i open a new terminal i still have to do source .bash_profile
|
if you mean xterm (or somethink alike) with terminal, you can use:
xterm -ls
|
|
|
All times are GMT -5. The time now is 03:57 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
|
|