LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-02-2007, 11:30 AM   #1
cad
Member
 
Registered: Dec 2006
Distribution: Fedora core 4
Posts: 92

Rep: Reputation: 15
colors in terminal


My college has useraccounts through samba
Whenever i logon normally to my account in our linux lab I dont get to see colourful filenames in termianl.
Now when I logon to some other server(which also has the same account for me) then i get to see color in filenames but if at this point i change my shell ksh->bash or bash->
bash->bash or ksh->ksh again colour disappears but appears again if i exit that changed shell.
Though, I can see the colours while working in Virtual Consoles.
and it also appears when i ssh to 127.0.0.1
I tried to solve the problem by checking the env file and found out that the env file is automatically changed

the txt after LS_COLORS is automatically appended into the file

LS_COLORS=no=00:fi=00:di=00;34:ln=00;36i=40;33:so=00;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:

Sometimes even when i log on to the remote server colours do not appear though the env file gets chaned automatically as always.

i am really confused.
Someone please help.
please tell me how does this happen

How do I get filenames and all displayed in color in terminal
Please help

Please also tell the path of env file .
 
Old 01-03-2007, 12:27 AM   #2
ajosephantony
LQ Newbie
 
Registered: Jun 2006
Location: Chennai
Distribution: Fedora
Posts: 4

Rep: Reputation: 0
Hi,

Colours are basically set in /etc/bashrc and/or .bashrc file in the user's home directory.

Cheers
Joe
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing terminal colors Athos Debian 3 09-11-2007 05:54 PM
Terminal Colors carlosinfl Linux - General 2 08-29-2006 02:52 PM
Terminal Colors chakkerz Linux - General 2 11-22-2004 09:01 PM
Terminal Colors dhrivnak Slackware 2 10-26-2003 03:59 PM
gnome-terminal colors as su teacup Slackware 2 05-10-2003 12:31 AM


All times are GMT -5. The time now is 10:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration