Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Changing Linux Text Colors
New Posts  All Forums:Forum Nav:

Changing Linux Text Colors

post #1 of 3
Thread Starter 
i just felt like making a stupid thread with a stupid name

BUT

for newer linux users who didnt know...

most systems do this by default on your main user account thats why you get pretty colors when you type ls however, if you su into your root account it isnt always there or if you create a new user it isnt there...

to make ls display colored files and directories its just

ls --color

and you can simplify this by making an alias such as

alias ls='ls --color'

that way you can just type ls like normal and get all your nice colors very helpful if you dont already know about it

and instead of doing this EVERY TIME YOU OPEN UP A SHELL AND WANTING TO DRIVE A SPOON THROUGH YOUR TEMPLE!!! you can simply just add the alias line to the end of your .bashrc file located in either /root (for root) or /home/username/

fun stuff right there
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
post #2 of 3
you'll also need to make sure the the environment variable DIRCOLORS is set and populated with the output of the command dircolors.

putting the following command in either a system profile/bash/shell/login script or your own in your personal directory should do the trick.

eval "`dircolors`"


- tasker.
royce
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD 1090T Black ASUS M4N98TD EVO 2x MSI N460GTX 1GB 2x4G G.Skill Ripjaw 1600 (8 8 8 24) 
Hard DriveOptical DriveOSMonitor
128G Crucial SSD, 3x1.5TB WD AV-GP (SW Raid 5) Blu-ray Combo Drive Arch_64 (2.6.37.4-zen_stable) 27" HP2711x 
KeyboardPowerCaseMouse
Luxeed U5 ABS Dark Beret 1KW Antec Lanboy Air (YLW) Logitech PS/2 Optical 
  hide details  
Reply
royce
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD 1090T Black ASUS M4N98TD EVO 2x MSI N460GTX 1GB 2x4G G.Skill Ripjaw 1600 (8 8 8 24) 
Hard DriveOptical DriveOSMonitor
128G Crucial SSD, 3x1.5TB WD AV-GP (SW Raid 5) Blu-ray Combo Drive Arch_64 (2.6.37.4-zen_stable) 27" HP2711x 
KeyboardPowerCaseMouse
Luxeed U5 ABS Dark Beret 1KW Antec Lanboy Air (YLW) Logitech PS/2 Optical 
  hide details  
Reply
post #3 of 3
Thread Starter 
mod edited my awesome thread title

*sad face*
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Changing Linux Text Colors