Results 1 to 4 of 4

Thread: About Linux Terminal

  1. #1
    Join Date
    Nov 2012
    Beans
    1

    About Linux Terminal

    In a linux terminal, why it shows different coloured files or directories ?

  2. #2
    Join Date
    Sep 2006
    Beans
    8,623
    Distro
    Ubuntu 14.04 Trusty Tahr

    ls

    It is because ls is aliased to 'ls --color=auto' It's in the file .bashrc and you can comment it out by starting the line with a pound sign (#) if it gets in your way. If you just want to temporarily avoid the colors, you can run ls with the full path

    Code:
    /bin/ls
    'ls' has a lot of options, the manual page is worth looking at, even if you don't end up using them.

  3. #3
    Join Date
    Nov 2012
    Beans
    24

    Re: About Linux Terminal

    You can also try typing
    ls --help
    Also --help will work on almost all commands just remember to use both -'s

  4. #4
    Join Date
    Jun 2008
    Location
    Tennessee
    Beans
    3,421

    Re: About Linux Terminal

    The colors indicate various aspects about file system contents, such as whether something is a file, folder, device, etc.; also indicates permissions or other attributes.

Bookmarks

Posting Permissions

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