Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 03-10-2012, 03:51 PM   #1
Registered: Dec 2011
Distribution: Mint, Slackware
Posts: 43

Rep: Reputation: Disabled
NTFS directory coloring

Hi I am trying to find how to change the green highlight that appears on NTFS file directories. It is very hard to read because the text is blue.

I tried suggested here


But nothing has changed.

I saved the file as .mydircolors in home directory and then I couldn't find .bashrc in home directory (not sure why) so I edited the one in /etc/bash.bashrc That was the closest I could find.

But the lines he said to change are a little different.
I tried them to:
 if type -P dircolors >/dev/null ; then
                if [[ -f ~/.dir_colors ]] ; then
			eval $(dircolors ~/-mydircolors)
                elif [[ -f /etc/DIR_COLORS ]] ; then
                        eval $(dircolors ~/.mydircolors)

But nothing was changed when I logged off and logged back on.
Old 03-11-2012, 12:56 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
I found this thread which addresses the same question. The respondent claims it's a matter of how the NTFS partition is mounted.
You can use the fmask and dmask mount options to control the default file and directory permissions which is used to get the color for 'ls'. See the ntfs-3g manual for more details (e.g. type 'man ntfs-3g' on a terminal).

Alternatively use the NTFS-3G driver with full permission and ownership support which should always show the correct color:
I don't know one way or the other, since Debian uses a slightly different way of setting directory colors.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bash coloring output Jerry Mcguire Programming 1 08-11-2011 02:44 AM
file coloring Ribo01 Linux - Newbie 2 11-27-2010 05:44 PM
[LaTeX] Coloring environments solarize Linux - Software 3 09-04-2005 04:54 PM
Cannot enter NTFS partition directory Metal Martian Linux - Newbie 5 03-08-2004 08:29 PM
Mounting NTFS -> Locked Directory cracked4life Linux - Newbie 12 10-19-2003 02:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration