LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-06-2006, 09:08 AM   #1
richikiki
Member
 
Registered: Mar 2005
Location: Montréal, Québec, Canada
Distribution: Slackware 12.1 x32, 13.1 x64
Posts: 90

Rep: Reputation: 15
Question how to have colors on the remote console on KSH?


Does anyone knows, how to have colors on the remote console on KSH?.
In order to see on different colors the executables files, directories, normals files etc.
Regards
 
Old 07-06-2006, 10:34 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The colors are actually set with an alias:

alias ls='ls --color=tty'

Note that this is a feature of ls in Linux rather than ksh or bash. Most UNIX variants (like Solaris) do not have this feature. You can compile the Linux ls for Solaris if you want but if you do should probably put it in a different directory and insure you're calling that. This is because Solaris patches might overwrite it with the standard ls later.
 
Old 07-06-2006, 12:05 PM   #3
richikiki
Member
 
Registered: Mar 2005
Location: Montréal, Québec, Canada
Distribution: Slackware 12.1 x32, 13.1 x64
Posts: 90

Original Poster
Rep: Reputation: 15
Unhappy

Thanks jlightner,

Unfortunatly, I'm using Solaris "SunOS sparc".
Do you know where to download the ls for sun and compile it just for my login.

Regards,
 
Old 07-06-2006, 01:04 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Found a page that tells you exactly what to do. I haven't done it (we don't have Solaris at my current job and I personally don't like the colors anyway) but from what I read it seems reasonable to me. The page is:

http://tille.xalasys.com/training/solaris/colorls.php
 
  


Reply



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
console colors smartentity Linux - Newbie 6 08-03-2005 08:34 AM
colors in console??? alaios Linux - General 1 08-11-2004 08:11 PM
console colors ninadb Slackware 3 04-28-2004 03:31 AM
C and Console colors Gerardoj Programming 3 04-23-2004 12:47 AM
Console colors how-to? PaulBeton Linux - Newbie 5 11-12-2003 03:23 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:58 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
Open Source Consulting | Domain Registration