Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Getting colour output to 'ls' in xterm

    Reply
    amh | # 1 | 2010-05-05, 20:35 | Report

    For those who haven't got a clue what the title means, this is about adding colour support to the terminal command 'ls'.

    The version which comes by default is part of busybox and has been compiled without colour support. This means the output is monochrome which is less useful and frankly boring. This makes me a very sad panda.

    Luckily, there is another version available with colour support in the coreutils-gnu package in testing. This includes a whole bunch of commands actually.

    Anyway installing this package (it's in testing so be warned) will place a bunch of symlinks in /usr/bin/gnu. Aliasing

    alias ls='/usr/bin/gnu/ls --color=auto'

    is then all you need (put it in a .profile file in /home/user to do this automatically).

    Now your terminal too can be exciting and awash with colour. More importantly you can actually see what's a folder and what's an executable at a glance.

    Well, hopefully someone finds this useful.

    Alan

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to amh For This Useful Post:
    teh

     
    teh | # 2 | 2010-05-06, 07:50 | Report

    Super, thanks for this. Might have to do this one my self.

    I was thinking to my self, where is the colours in Xterm.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    therock | # 3 | 2010-05-06, 08:12 | Report

    wow thanks man this should have been default with the colors

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout