Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Alright, so I'm a Linux newbie, but I've been trucking along pretty well. I have Samba all set up for file and printer sharing with different levels of user acess, and everything seems to be working perfectly.
One thing, however, is still bugging me. Yesterday, I installed a new internal hard drive formatted with the NTFS file system. I then connected another NTFS formatted drive, but this one was external. I mounted these two drives to /mnt/sdb1 and /mnt/sdc1 respectively.
When navigating to /mnt/ and doing a 'ls -l' it ended up showing me two directories, however, unlike most driectories that are presented through Putty in blue text, these directories were written in grey text with a bright green background.
I then proceeded to format the internal NTFS formatted drive, re-partitioned it, and refomatted it using the ext4 FS. After mounting the internal drive back to /mnt/sdb1 I now had the sdb1 folder showing up as i expected (blue text, no background color) but the sdc1 directory was still grey text with a green background. Logically, I assumed that this was due to the fact that the mount points were two different file systems.
Anyway, I proceeded to transfer the entire contents of sdc1 to sdb1 using the 'rsync -avh /mnt/sdb1 /mnt/sdc1' command. Again, when looking at /mnt/ I noticed that sdb1 (ext4) was written in blue text, no background, while sdc1 (NTFS) was still grey text with a green background. Finally, I navigated to /mnt/sdb1 and when viewing the directory they were all grey text with a green background.
Anyway, after that garrulous explanation, what do these colours signify? I realize that they can be altered in Putty, but I'm trying to figure out what their significance is. I've been searching online, and all I've found are articles that discuss how to change them, not what they signify.
Currently I'm using Ubuntu Server LTS 10.04, and I originally assumed that they were related to the filesystem, but now I'm leaning towards the fact that they may have something to do with permissions or access levels.
The directory colors are set up by the dircolors command. I see the info node for ls doesn't really point that out very clearly, but if you go up a step you'll see it there. Do dircolors -p to get a dump with comments.