Bash Highlighting?


Recommended Posts

matt@laptop:~$ ls Music

When I execute this command, it lists all of the subdirectories within my /home/matt/Music directory. I'm used to directories showing up blue within my terminal. Why are some of the ones here blue while others are highlighted green?

post-14-1218595984_thumb.png

Link to post
Share on other sites

Symlinks?

If the LS_COLORS environment variable is set, look for... hmm, maybe 94;42.

Edit: Debian apparently displays other-writable directories as blue-on-green (ow=34;42) by default. Your blue might just be lighter than mine. (94;42 is light blue-on-green.)

Edited by jcl
Link to post
Share on other sites

Edit:

Edit: Debian apparently displays other-writable directories as blue-on-green (ow=34;42) by default. Your blue might just be lighter than mine. (94;42 is light blue-on-green.)
Ah ok, so its a permissions deal.

*Matt tries to think of a good chmod for theese...

Thanks jcl

Link to post
Share on other sites
I'm not sure where else to look for LS_COLORS

$ echo $LS_COLORS

or more readably

$ echo $LS_COLORS | sed -e 's/:/\n/g'

What are other-writable directories, and why are only some of them this way?

Directories that writable by people other than owner and group. As for why you'd have them, I have no idea. I didn't recognize the color scheme because I've never (AFAICR) encountered an other-writable directory (that didn't have the sticky-bit set, which changes the colors but is otherwise irrelevant to this discussion).

Edit: "chmod o-w $DIR"

Edited by jcl
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...