The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Linux Shell Question: how to print the shell script name ? meili100 UNIX for Dummies Questions & Answers 3 07-01-2008 10:55 AM
Difference between writing Unix Shell script and AIX Shell Scripts haroonec AIX 0 04-11-2006 11:27 PM
How to run unix commands in a new shell inside a shell script? hkapil Shell Programming and Scripting 2 01-04-2006 03:56 AM
how to convert from korn shell to normal shell with this code? forevercalz Shell Programming and Scripting 21 11-22-2005 11:18 PM
simple shell - how to get a parameter typed in a shell script cmitulescu Shell Programming and Scripting 3 12-05-2001 12:04 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #15  
Old 07-06-2008
ffpradella's Avatar
Registered User
 

Join Date: Jun 2008
Location: Sao Paulo - Brazil
Posts: 36
Wink

Wouldn't be the same add these lines in /etc/profile?
I tried and it didnt work... even in interactive and non-interactive....

I didn't find .bash_profile.....

Last edited by ffpradella; 07-06-2008 at 07:39 AM.
Reply With Quote
Forum Sponsor
  #16  
Old 07-06-2008
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,590
Create the file if it doesn't exist.
Reply With Quote
  #17  
Old 07-06-2008
ffpradella's Avatar
Registered User
 

Join Date: Jun 2008
Location: Sao Paulo - Brazil
Posts: 36
Quote:
Originally Posted by reborg View Post
Create the file if it doesn't exist.
reborg,

The file was created under /, and when I try cd ~ it points me also to /.

The following was inserted into this file:

alias ls='/usr/local/bin/ls --color=auto'

however it didnt display colors....

did I make something wrong?

Thanks,
Reply With Quote
  #18  
Old 07-06-2008
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,590
Did you create both files? Also don't do this for root.
Reply With Quote
  #19  
Old 07-06-2008
Registered User
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 183
(what specifically your ls alias is on your linux box does not really matter, that was just make you able to actually understand what to do)

i) Does "ls --color" or "/usr/local/bin/ls --color" give you colors?
ii) It's no good idea to alias "ls" with some colorful "ls" globally as this might hurt some scripts seriously.
Reply With Quote
  #20  
Old 07-06-2008
ffpradella's Avatar
Registered User
 

Join Date: Jun 2008
Location: Sao Paulo - Brazil
Posts: 36
Lightbulb

Quote:
Originally Posted by reborg View Post
Did you create both files? Also don't do this for root.

Reborg,

I was checking in a Linux documentation and checked there is a filled called /etc/bashrc however I did not find this file in my Solaris. Also, I didnt find this file into ~ (/export/home/fpradell) as you suggested me to create a one...

What is the difference between these files?

Quote:
(what specifically your ls alias is on your linux box does not really matter, that was just make you able to actually understand what to do)

i) Does "ls --color" or "/usr/local/bin/ls --color" give you colors?
ii) It's no good idea to alias "ls" with some colorful "ls" globally as this might hurt some scripts seriously.
Could you please explain why would it hurt some scripts?

"/usr/local/bin/ls --color" worked.

Thanks.



Thanks!

Last edited by ffpradella; 07-06-2008 at 05:09 PM.
Reply With Quote
  #21  
Old 07-06-2008
Registered User
 

Join Date: Oct 2006
Posts: 1
sorry..
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux, solaris

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0