Is there a way or hack in which we can make ls –color=always work on a Sun OS box.
Or is there any other way in which that can be achieved?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Install GNU ls(1), use it instead of the system ls(1), and then set up aliases the same as under any unix. This blog recommends sunfreeware.com; you might also try Blastwave.
EDIT: actually, see the first comment on that blog. You can use the GNU ls(1) that’s already provided, either by changing your PATH or, more cleanly,
alias ls="/usr/gnu/bin/ls --color=auto -AFC"— or, with your inferior options 🙂