Find the answer to your Linux question:
Results 1 to 7 of 7
Hi guys, Gonna ask a real stupid question here, but being a newbie I'm allowed If I open up a terminal and do an ls I get an indication what ...
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    41

    ls colours

    Hi guys,

    Gonna ask a real stupid question here, but being a newbie I'm allowed

    If I open up a terminal and do an ls I get an indication what is in that directory. Now some of text is coloured. What does this mean?

    I know blue is a directory but what does green mean?

    I ask about green specifically as I unbz2'd a file and it came out as green with an asterix at the end??? So what does the colour mean and why did it have an asterix at then?

    Thanks for illumination.

    BTW - I hunted around the net but didnt come across anything that told me about this.

  2. #2
    Linux Engineer
    Join Date
    Mar 2005
    Posts
    1,431
    I think the green colour is for the executable files.

  3. #3
    Just Joined!
    Join Date
    Aug 2004
    Location
    Ontario, Canada
    Posts
    89
    Correct, executables are green

  4. #4
    Linux User
    Join Date
    Oct 2004
    Location
    Serbia&Montenegro
    Posts
    281
    Yes, green. Directories are blue and pictures are purple or red.
    Linux registered user #358842
    Human knowledge belongs to the world.

  5. #5
    Just Joined!
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    14
    Executable files: Green
    * Normal file : Normal
    * Directory: Blue
    * Symbolic link : Cyan
    * Pipe: Yellow
    * Socket: Magenta
    * Block device driver: Bold yellow foreground, with black background
    * Character device driver: Bold yellow foreground, with black background
    * Orphaned syminks : Blinking Bold white with red background
    * Missing links ( … and the files they point to) : Blinking Bold white with red background
    * Archives or compressed : Red (.tar, .gz, .zip, .rpm)
    * Image files : Magenta (.jpg, gif, bmp, png, tif)


    Try that

  6. #6
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Ft. Polk, LA
    Posts
    796
    All of the colors can be changed with the $LSCOLORS variable. See the ls man page.

  7. #7
    Just Joined!
    Join Date
    Mar 2005
    Posts
    41
    Thanks guys...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...