LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2008, 01:58 AM   #1
Mithrilhall
Member
 
Registered: Feb 2002
Location: Massachusetts
Distribution: Debian (Lenny)
Posts: 286

Rep: Reputation: 30
Question Color in the Console


When I open a console as a normal user; directories, files, symbolic links, etc. show up as different colors. Is there a way for these colors to show when I'm logged in as root as well?


P.S.

The distro is Debian.
 
Old 03-22-2008, 03:44 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Usually the command ls is an alias with a bunch of options: for example on my system I have
Code:
$ alias ls
alias ls='ls -N --color=tty -T 0'
Here the --color=tty is the part giving the colorized items. Check your options as normal user and put the relevant part in the options of root. You have to define the alias again, for example by putting it in the .bashrc file for root.
 
  


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
What is the best color used on console? richikiki Slackware 21 06-29-2006 10:22 AM
virtual console color falling Debian 2 12-23-2004 02:50 PM
Console Color Changes? darioush Red Hat 4 09-16-2003 01:38 AM
Color Console JustinH Programming 6 04-30-2003 03:02 PM
color in console schatoor Linux - General 2 12-13-2002 08:32 AM


All times are GMT -5. The time now is 02:44 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration