#1  
Old 15th May 2006, 20:15
chrno chrno is offline
Member
 
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?


Code:
nano ~/.bash_profile

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

You have to put it in every user's .bash_profile file. And you must log out and log in again before it works.
__________________
Falko
--
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
  #3  
Old 11th June 2006, 08: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.

Quote:
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
Reply

Bookmarks

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 14:49
req: Bash / Script to auto kill PID if it's needed.... edge Programming/Scripts 8 13th March 2006 23:31
Bash - Deleting duplicate records Wire323 Programming/Scripts 4 8th March 2006 13:26
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42
bash scripting for begginers aolex Suggest HOWTO 4 21st October 2005 15:45


All times are GMT +2. The time now is 08:49.


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