Assigning color in shell, with ls command & HP-UX?
Other *NIXThis forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Assigning color in shell, with ls command & HP-UX?
Greetings,
I'm doing some work for a class on a remote server, which is running HP-UX. I'm connecting using the Penguinet SSH client.
The color of the of the text is white against a black background. I'm fine with this for the most part. I would like to be able to assign various colors to directories, executable files, links, etc., etc. This is done automatically on my personal Fedora installation.
It would seem, this particular version of Unix doesn't support dircolors, which would easily allow me to copy the .dir_colors file to my home directory and configure colors that way.
How does one go about doing this in HP-UX? I'm not talking about assigning a color to the prompt, but to the files themselves.
I added this line to .bash_profile and exported it, but the font color is still white. I used the 'set' command and LS_COLORS was listed with the appropriate values.
I don't think so. I allows for two colors settings, foreground and background. I don't see any options for removing these settings. I'm fairly sure this is the problem. I've posted to their support site and I'll see what I get.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.