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 02-23-2007, 01:14 PM   #1
young_rhkid
LQ Newbie
 
Registered: Feb 2007
Posts: 11

Rep: Reputation: 0
Setting - Directory / File colors for SSH terminal connections


I have noticed an annoying issue with one of the servers at work. When I login via SSH, the directory and file colors are a bit dull.

This is not the end of the world but drives me nuts to stare at the midnight blue directory colors on a black background.

On other servers, the directory colors are much brighter.

How do I change the global option for the color display?
 
Old 02-23-2007, 02:43 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, and welcome to LQ!


To answer the question:
just change the alias for ls NOT to display colours ;}


In Slackware you could modify /etc/DIR_COLORS


Cheers,
Tink
 
Old 10-21-2010, 06:56 AM   #3
Marel
Member
 
Registered: May 2005
Location: Serbia
Distribution: Debian, Ubuntu, Red Hat, Gentoo
Posts: 64

Rep: Reputation: 15
Well, this looks like 3 years old thread, so I was wondering if someone in meantime managed to find a real solution, since previous solution totally disables colors. I need syntax highlighting and normal colors. This colors which appear in VIM in SSH session are for white background, but I use black background and on both machines when login locally, there are appropriate colors (for black background). In shell, colors are OK.

Last edited by Marel; 10-21-2010 at 07:17 AM.
 
Old 10-21-2010, 11:57 AM   #4
Expeto
Member
 
Registered: Sep 2010
Posts: 30

Rep: Reputation: Disabled
maybe "tput setab {colorcode}" can provide a workaround to you.

{colorcode}
0 Black
1 Red
2 Green
3 Yellow
4 Blue
5 Magenta
6 Cyan
7 White

Last edited by Expeto; 10-21-2010 at 12:00 PM.
 
Old 08-25-2011, 06:29 PM   #5
bikenskigeek
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
Thumbs up

Tinkster's suggestion (the second one) helped me find my solution, which was to find the DIR_COLORS file, which was in /etc in my RHE4 environment. The file's comments were thorough, simple, and quite usable even without root access. Other search results were fruitful too (especially for Debian users who don't appear to have this file):
http://www.linuxquestions.org/questi...4/#post3416020
http://www.linuxquestions.org/questi...5/#post3065957
 
Old 08-27-2011, 07:39 AM   #6
Marel
Member
 
Registered: May 2005
Location: Serbia
Distribution: Debian, Ubuntu, Red Hat, Gentoo
Posts: 64

Rep: Reputation: 15
Quote:
Originally Posted by bikenskigeek View Post
Tinkster's suggestion (the second one) helped me find my solution, which was to find the DIR_COLORS file, which was in /etc in my RHE4 environment. The file's comments were thorough, simple, and quite usable even without root access. Other search results were fruitful too (especially for Debian users who don't appear to have this file):
http://www.linuxquestions.org/questi...4/#post3416020
http://www.linuxquestions.org/questi...5/#post3065957
Well, when speaking of VIM particularly, setting 'background={dark|light}' can help .
 
  


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
Setting up ssh connections without a password (OpenSSH) Suinatsa Linux - Software 2 07-05-2006 03:46 AM
switching from a file manager to a terminal and back (with the same directory) Zed Lopez Linux - Software 1 06-08-2005 03:29 AM
Removing a Directory from the Terminal without deleting each file or folder lennysokol Linux - General 4 05-31-2005 12:30 AM
file transfer over ssh restrict directory browsing niall0s Linux - General 11 09-11-2003 03:50 PM
Setting File / Directory Permission, with sticky Primetime Linux - Newbie 3 01-06-2003 02:14 PM


All times are GMT -5. The time now is 02:09 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