Curiosity question regarding test colors in aterm/xterm
Folks, When I run >ls in a terminal, I notice that some of the file and directory labels carry a bright green background, while others don't. What is this supposed to signify? I thought it might be a quick visual clue to permissions -- green background = root, or something like that. But when I run an >l on the directory, a handful of user directories and files also carry the green background. This didn't crop up in previous versions of Suse, as I recall, so someone must have seen this as an improvement... Inquiring minds (perhaps with too much free time) want to know... With best regards, Pete -- Peter N. Spotts | Science reporter The Christian Science Monitor One Norway Street, Boston, MA 02115 USA Office: 617-450-2449 | Office-in-home: 508-520-3139 Email: pspotts@alum.mit.edu | Amateur radio call: KC1jb www.csmonitor.com | www.peterspotts.net
Sorry, the subject line should read "text colors." Pete -- Peter N. Spotts | Science reporter The Christian Science Monitor One Norway Street, Boston, MA 02115 USA Office: 617-450-2449 | Office-in-home: 508-520-3139 Email: pspotts@alum.mit.edu | Amateur radio call: KC1jb www.csmonitor.com | www.peterspotts.net
When I run >ls in a terminal, I notice that some of the file and directory labels carry a bright green background, while others don't. What is this supposed to signify?
That it is +t IIRC.
I thought it might be a quick visual clue to permissions -- green background = root, or something like that. But when I run an >l on the directory, a handful of user directories and files also carry the green background. This didn't crop up in previous versions of Suse, as I recall, so someone must have seen this as an improvement...
No, the "ls" maintainer went on something, and I do not see it as an improvement. It needs source patching to make it behave sanely (currently you cannot make, for example, a SUID file have the color as determined by extension like before), and is fixed in coreutils-5.93-20.jen1.
Inquiring minds (perhaps with too much free time) want to know...
Jan Engelhardt --
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2006-08-28 at 10:03 -0400, Peter N. Spotts wrote:
When I run >ls in a terminal, I notice that some of the file and directory labels carry a bright green background, while others don't. What is this supposed to signify? I thought it might be a quick visual clue to permissions -- green background = root, or something like that. But when I run an >l on the directory, a handful of user directories and files also carry the green background. This didn't crop up in previous versions of Suse, as I recall, so someone must have seen this as an improvement...
Inquiring minds (perhaps with too much free time) want to know...
cer@nimrodel:~> set | grep LS LS_COLORS='no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:' LS_OPTIONS='-N --color=tty -T 0' It is related to filetype. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFE9FS0tTMYHG2NR9URAgIWAJ4ibg/FtmCZeTeNxt6y0urGlm0gnQCeJYXy pWQ5CBLRKoNhrrR/xkSYzjc= =75zr -----END PGP SIGNATURE-----
On Monday 28 August 2006 15:03, Peter N. Spotts wrote:
Folks,
When I run >ls in a terminal, I notice that some of the file and directory labels carry a bright green background, while others don't. What is this supposed to signify? I thought it might be a quick visual clue to permissions -- green background = root, or something like that. But when I run an >l on the directory, a handful of user directories and files also carry the green background. This didn't crop up in previous versions of Suse, as I recall, so someone must have seen this as an improvement...
Inquiring minds (perhaps with too much free time) want to know...
With best regards,
Pete
-- Peter N. Spotts | Science reporter The Christian Science Monitor One Norway Street, Boston, MA 02115 USA Office: 617-450-2449 | Office-in-home: 508-520-3139 Email: pspotts@alum.mit.edu | Amateur radio call: KC1jb www.csmonitor.com | www.peterspotts.net Try looking in /etc/DIR_COLORS it is all explained in there and modifyable from there ..
Pete .
participants (4)
-
Carlos E. R.
-
Jan Engelhardt
-
Peter N. Spotts
-
Peter Nikolic