View Full Version : [ubuntu] About Linux Terminal

November 21st, 2012, 10:18 AM
In a linux terminal, why it shows different coloured files or directories ?

Lars Noodén
November 21st, 2012, 10:44 AM
It is because ls (http://manpages.ubuntu.com/manpages/precise/en/man1/ls.1.html) 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


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

November 21st, 2012, 11:07 AM
You can also try typing
ls --help
Also --help will work on almost all commands just remember to use both -'s

November 21st, 2012, 10:18 PM
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.