Old 15th May 2006, 21:15
chrno chrno is offline
Join Date: Apr 2006
Posts: 70
Thanks: 0
Thanked 1 Time in 1 Post
Default bash

I've got a Debian Sarge server which I'll ssh to login and then su to root. But the shell is normally no color (when i do a "ls"). I had to execute alias ls='ls -F --color ' each time I login. A search on google tell me that if I i put it into .bash_profile it should be executed whenever a user logins or do a su. But this aren't working. What am I doing wrong here?

nano ~/.bash_profile

alias ls='ls -F --color '
Reply With Quote
Sponsored Links
Old 16th May 2006, 17:47
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts

You have to put it in every user's .bash_profile file. And you must log out and log in again before it works.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 11th June 2006, 09:46
EvanCarroll EvanCarroll is offline
Junior Member
Join Date: Jun 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default don't think so.

Originally Posted by falko
You have to put it in every user's .bash_profile file. And you must log out and log in again before it works.
/etc/profile should work.
Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash - reading stuff from MySQL.. edge Programming/Scripts 3 4th April 2006 15:49
req: Bash / Script to auto kill PID if it's needed.... edge Programming/Scripts 8 14th March 2006 00:31
Bash - Deleting duplicate records Wire323 Programming/Scripts 4 8th March 2006 14:26
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 15:42
bash scripting for begginers aolex Suggest HOWTO 4 21st October 2005 16:45

All times are GMT +2. The time now is 06:05.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.