colors around text in terminal

Hi:
When I look at a terminal and type
Code:
ls /dev/
I get file names alright but directory have and orange background thats makes it hard to read. Is there a way to change the color or stop the coloring around directories. I know these are devices and what I find hard to see are thing like da0 when looking for a usb device.
 
Check ls(1) man page. If you didn't specify -G explicitly, you must have either CLICOLOR or COLORTERM set in your environment, unset them. Or override just for this invocation using --color=never.
 
If you want to keep colors and only get rid of color combinations that are hard to read, try the colors I have been using for years. They display well, on any type of monitor. Terminal backround is supposed to be black. Must be set in your environment, below is for c-shells.
setenv LSCOLORS FxCxExbxBxhxgxhbHdgaAC
 
If you want to keep colors and only get rid of color combinations that are hard to read, try the colors I have been using for years. They display well, on any type of monitor. Terminal backround is supposed to be black. Must be set in your environment, below is for c-shells.
setenv LSCOLORS FxCxExbxBxhxgxhbHdgaAC
This was nice
Code:
setenv LSCOLORS FxCxExbxBxhxgxhbHdgaAC
but how to keep it across reboots. I looked in .cshrc .profile at /root & /user.
I commented out
Code:
set prompt = "%N@%m:%~ %# "
in .cshrc
but still get the bad colors.
 
The setenv is C shell syntax, so it needs to be added to ~/.cshrc. Leave the prompt, it only covers how the prompt should look, this default will make it look like this: dice@maelcum:~ %. You're free to change it of course, consult the csh(1) man page.

Code:
       prompt  The  string  which  is printed before reading each command from
	       the terminal.  prompt may include any of	the following  format-
	       ting  sequences	(+),  which are	replaced by the	given informa-
	       tion:

	       %/  The current working directory.
	       %~  The current working directory, but with one's  home	direc-
		   tory	 represented  by `~' and other users' home directories
		   represented	by  `~user'  as	 per  Filename	 substitution.
		   `~user'  substitution happens only if the shell has already
		   used	`~user'	in a pathname in the current session.
	       %c[[0]n], %.[[0]n]
		   The trailing	component of the current working directory, or
		   n  trailing	components if a	digit n	is given.  If n	begins
		   with	`0', the number	 of  skipped  components  precede  the
		   trailing  component(s)  in the format `/<skipped>trailing'.
		   If the ellipsis shell variable is set,  skipped  components
		   are	represented  by	 an  ellipsis  so  the	whole  becomes
		   `...trailing'.  `~' substitution is done as in `%~'	above,
		   but	the  `~'  component  is	ignored	when counting trailing
		   components.
	       %C  Like	%c, but	without	`~' substitution.
	       %h, %!, !
		   The current history event number.
	       %M  The full hostname.
	       %m  The hostname	up to the first	`.'.
	       %S (%s)
		   Start (stop)	standout mode.
	       %B (%b)
		   Start (stop)	boldfacing mode.
	       %U (%u)
		   Start (stop)	underline mode.
	       %t, %@
		   The time of day in 12-hour AM/PM format.
	       %T  Like	`%t', but in 24-hour format (but see  the  ampm	 shell
		   variable).
	       %p  The	`precise'  time	 of  day in 12-hour AM/PM format, with
		   seconds.
	       %P  Like	`%p', but in 24-hour format (but see  the  ampm	 shell
		   variable).
	       \c  c is	parsed as in bindkey.
	       ^c  c is	parsed as in bindkey.
	       %%  A single `%'.
	       %n  The user name.
	       %N  The effective user name.
	       %j  The number of jobs.
	       %d  The weekday in `Day'	format.
	       %D  The day in `dd' format.
	       %w  The month in	`Mon' format.
	       %W  The month in	`mm' format.
	       %y  The year in `yy' format.
	       %Y  The year in `yyyy' format.
	       %l  The shell's tty.
	       %L  Clears  from	the end	of the prompt to end of	the display or
		   the end of the line.
	       %$  Expands the shell or	environment variable name  immediately
		   after the `$'.
	       %#  `>'	(or the	first character	of the promptchars shell vari-
		   able) for normal users, `#' (or  the	 second	 character  of
		   promptchars)	for the	superuser.
	       %{string%}
		   Includes string as a	literal	escape sequence.  It should be
		   used	only to	change terminal	attributes and should not move
		   the	cursor	location.  This	cannot be the last sequence in
		   prompt.
	       %?  The return code of the command  executed  just  before  the
		   prompt.
	       %R  In prompt2, the status of the parser.  In prompt3, the cor-
		   rected string.  In history, the history string.

	       `%B', `%S', `%U'	and `%{string%}' are available in only	eight-
	       bit-clean shells; see the version shell variable.

	       The  bold,  standout  and underline sequences are often used to
	       distinguish a superuser shell.  For example,

		   > set prompt	= "%m [%h] %B[%@]%b [%/] you rang? "
		   tut [37] [2:54pm] [/usr/accts/sys] you rang?	_

	       If `%t',	`%@', `%T', `%p', or `%P' is used, and noding  is  not
	       set,  then print	`DING!'	on the change of hour (i.e, `:00' min-
	       utes) instead of	the actual time.

	       Set by default to `%# ' in interactive shells.
 
Back
Top