regarding Color scheme in linux console connected through putty.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting regarding Color scheme in linux console connected through putty.
# 1  
Old 11-16-2011
regarding Color scheme in linux console connected through putty.

Hi All,

I am connecting to SunOs 5.8 server from windows machine through putty. My problem is commands are not showing any colours results. I want to see 'ls' command should list directories in 'red' and files in 'green' etc. How to do it . Please help.

Also How to enable syntax colouring in vi or vim. ? please let me know.
# 2  
Old 11-16-2011
As far as I know the implementations of these programs (ls, vi) on Sun OS 5.8 don't have those capabilities ...
# 3  
Old 11-16-2011
How do we know that which server we got connected to ?
# 4  
Old 11-17-2011
Quote:
Originally Posted by bobby1015
How do we know that which server we got connected to ?
uname -a is available on most *nix platforms and gives some info on system type.
You could also try cat /etc/*{release,version}, or check the contents of /etc/motd.
This User Gave Thanks to Chubler_XL For This Post:
# 5  
Old 11-17-2011
Thanks for that. Mine is SunOS. How can I get the color scheme in SunOS?
# 6  
Old 11-17-2011
As radoulov said, ls on SunOS doesn't support colour. An alternative might be to install the GNU version (which is part of coreutils).

The vim command for syntax highlighting is just :syntax on. Again, it may not be supported on the version you have.
# 7  
Old 11-17-2011
Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Text color in Linux scripts via putty

hi Folks, Can anyone help with changing the color of the words in a linux shell script? I get how to change default background etc in putty, but for some reason the text in the script has different colors for different parts of the cript. Is there a way to have one color in a linux shell... (5 Replies)
Discussion started by: jonnyd
5 Replies

2. UNIX for Dummies Questions & Answers

Can we build a tool for Windows to retrieve data from UNIX servers (putty console)

Hi Friends, Is it possible to build a windows tool ( a java applet maybe? ) which can retrieve data and display after performing certain commands on unix servers ( simple grep / script output) after logging into putty console. I am on a company server so please bear that in mind. I might have... (23 Replies)
Discussion started by: srkmish
23 Replies

3. Red Hat

Redhat server is not connected via putty

i have a redhat linux 5.3 machine. i can ping that machine remotely from my laptop. but when i connect that server via putty after providing username and password there is wait for some minutes and then i get error message "server unexpectedly closed network connection" Please guide... (2 Replies)
Discussion started by: rehantayyab82
2 Replies

4. Solaris

M5000 XSCF Console disconnecting when putty session is closed

Hi, I would appreciate some help. I remotely access, across a VPN, an M5000 and when I connect to the XSCF I can then access the OS using console -d0 and then I can get to the console. The problem I have is that I need to run something which will take many hours and I can't run it in the... (6 Replies)
Discussion started by: giles.cardew
6 Replies

5. UNIX for Dummies Questions & Answers

Display Console errors in Red color

I browsed the forums but i couldn't find the best answer.so,i'm posting here again.. I have a parent bash script which calls another child script and the child script is used to deploy the tar file using weblogic deployer. The script is used to display the output on the console and sent to a log... (5 Replies)
Discussion started by: ramse8pc
5 Replies

6. Red Hat

Color Scheme file

Hi Experts. Finally I complete my move to Fedora distro :) I am using the gedit editor and I'd like to customize it because I like to work with black color on background and green for text color (this remember me my university time), I did the same on UltraEdit tool before but here in gedit... (2 Replies)
Discussion started by: orma
2 Replies

7. AIX

Enabling color for putty session

Hi Everyone: Is there any way to enable colors through putty for a session into AIX? I've tried to set the TERM variable to xterm-256color but it doesn't work having a 8-color terminal would be okay for me thanks in advance (5 Replies)
Discussion started by: edgarvm
5 Replies

8. UNIX for Dummies Questions & Answers

Closing console connected to another machine via ssh

Hi, I have ssh'd into a UNIX server at work from my linux desktop and executed a tar command to backup up some directories to a tape drive. I was wondering would the tar command still execute to completion if I closed my terminal console on my desktop that is connected to the server, would the... (1 Reply)
Discussion started by: mojoman
1 Replies

9. Shell Programming and Scripting

Color putty

Right now I am using putty. I am using 2-3 terminals at a time. To differentiate each termianl I want to put each putty screen and background color to different colors. I tried changing the colors in normal putty but it's not working. Is there any other color putty ? Regards, Venkat (2 Replies)
Discussion started by: svenkatareddy
2 Replies
Login or Register to Ask a Question