LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-22-2004, 11:11 PM   #1
neocookie
Member
 
Registered: Apr 2004
Location: Leeds, UK
Distribution: FC1, FC2, Debian
Posts: 308

Rep: Reputation: 30
Coloured folders/files in terminal?


Hi

Ok, I've noticed that whenever I log in to the CLI using root and do a "ls" command the folders and files are always coloured.

However, this is only under root. Whenever I log in using a user this isn't the case, or when I use a terminal app such as aterm/xterm/rxvt.

Can anyone inform me as to why this is? Can this happen for "everyone" (as it is very useful)? If so, how?

Thanks!
 
Old 05-22-2004, 11:31 PM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Put the following line in the ~/.bashrc file for the user

alias ls='ls --color=auto'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
command line: coloured files,dirs,etc kpachopoulos Linux - General 3 11-13-2005 04:24 PM
copy files and folders codepoet Linux - Newbie 2 06-12-2005 02:08 PM
Terminal problem - can't go into folders guest Linux - Newbie 4 03-14-2005 02:47 PM
How many files and folders do you got? BBB General 1 12-29-2004 02:24 AM
how do you open new folders using terminal? two_faced_moon Linux - Newbie 2 07-08-2004 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:42 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