You were talking about Xubuntu, so I expected you to be using some similar system or bash. I have never seen this output so...
means writing "alias ls='ls --color=auto'" at the bottom of the file .bashrc, which will work only with bash. You can try to find out which shell you're using by running
If it is bash, try editing .bashrc in a text editor, then.
The dot means sourcing a file, in bash it is the same as the command "source".
"!$" is a history expansion, and it means $HOME/.bashrc, which was the last argument from the previous command.
In other words
You don't need the last command if you just open a new terminal window.
---------- Post updated at 01:32 AM ---------- Previous update was at 01:28 AM ----------
BTW, "# . !$" means you're running the command as root, doesn't it? .bashrc is in your user's $HOME.
I'm running Debian and doesn't really like gnome nor KDE and read about this XFce that ought to be a more simple X which is exactly what I'm looking for. So I re-installed the bare minimums of Debian and here I am, with nothing but Links/Lynx vim and apt-get (lovely isn't it?) trying to configure... (1 Reply)
At the moment I am using Ubuntu hardy on my desktop. I am going to be adding other Linux's and maybe FreeBSD. I use gnome for special effects, eye candy, and plain old show off stuff. But I want to have a simple DE in my computer installed. I like the way CDE looks and the reviews about its... (7 Replies)
For a long time, when I type man anything on my Mac, both the manpage header fonts and the background was black, so I had to use my mouse to highlight the manpage output to read it. It was really annoying.
The problem was the same both locally or using the terminal and going ssh somewhere.
... (1 Reply)
Hallo,
Ich habe oft viele Terminals (nicht xterms) geöffnet. In den Terminals source ich dann verschiedene tools. Spätestens ab 4 Terminals verliere ich da schnell den Überblick in welchem Terminal ich welches tool gesetzt habe. DUmmer Weise gibt es im Menu des Terminals nicht die Möglichkeit dem... (1 Reply)
Hi,
I work noramly with 3/4/5 Terminals (not xterms) open. In the different Terminal I set different tools (software).
Unfortunately I loose easily the overview of all these Terminals. Which setup is in which Terminal?
It would be nice to have a possibility to name Termianls. By the way I work... (4 Replies)
If a few of you look on FedoraForums, you'll find that a little while ago, I went on a desktop installing spree. I just have a small question about XFCE desktop. In my user directory, I see .kde, .mate, and .trinity. (all three are directories), but I have XFCE 4.8 installed along with the others.... (0 Replies)
Hi all - just started using Linux Mint 17 and I need to change the Foreground & Background Colours for the Terminal, my eyesight is not what it used to be many years ago, so any help would be much appreciated.
Regards
Malcolm (6 Replies)
I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Hello All,
I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly.
Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies
LEARN ABOUT ULTRIX
terminal-colors.d
TERMINAL_COLORS.D(5) terminal-colors.d TERMINAL_COLORS.D(5)NAME
terminal-colors.d - Configure output colorization for various utilities
SYNOPSIS
/etc/terminal-colors.d/[[name][@term].][type]
DESCRIPTION
Files in this directory determine the default behavior for utilities when coloring output.
The name is a utility name. The name is optional and when none is specified then the file is used for all unspecified utilities.
The term is a terminal identifier (the TERM environment variable). The terminal identifier is optional and when none is specified then the
file is used for all unspecified terminals.
The type is a file type. Supported file types are:
disable
Turns off output colorization for all compatible utilities.
enable Turns on output colorization; any matching disable files are ignored.
scheme Specifies colors used for output. The file format may be specific to the utility, the default format is described below.
If there are more files that match for a utility, then the file with the more specific filename wins. For example, the filename
"@xterm.scheme" has less priority than "dmesg@xterm.scheme". The lowest priority are those files without a utility name and terminal iden-
tifier (e.g. "disable").
The user-specific $XDG_CONFIG_HOME/terminal-colors.d or $HOME/.config/terminal-colors.d overrides the global setting.
EXAMPLES
Disable colors for all compatible utilities:
touch /etc/terminal-colors.d/disable
Disable colors for all compatible utils on a vt100 terminal:
touch /etc/terminal-colors.d/@vt100.disable
Disable colors for all compatible utils except dmesg(1):
touch /etc/terminal-colors.d/disable
touch /etc/terminal-colors.d/dmesg.enable
DEFAULT SCHEME FILES FORMAT
The following statement is recognized:
name color-sequence
The name is a logical name of color sequence (for example "error"). The names are specific to the utilities. For more details always see
the COLORS section in the man page for the utility.
The color-sequence is a color name, ASCII color sequences or escape sequences.
Color names
black, blink, blue, bold, brown, cyan, darkgray, gray, green, halfbright, lightblue, lightcyan, lightgray, lightgreen, lightmagenta,
lightred, magenta, red, reset, reverse, and yellow.
ANSI color sequences
The color sequences are composed of sequences of numbers separated by semicolons. The most common codes are:
0 to restore default color
1 for brighter colors
4 for underlined text
5 for flashing text
30 for black foreground
31 for red foreground
32 for green foreground
33 for yellow (or brown) foreground
34 for blue foreground
35 for purple foreground
36 for cyan foreground
37 for white (or gray) foreground
40 for black background
41 for red background
42 for green background
43 for yellow (or brown) background
44 for blue background
45 for purple background
46 for cyan background
47 for white (or gray) background
Escape sequences
To specify control or blank characters in the color sequences, C-style -escaped notation can be used:
a Bell (ASCII 7)
Backspace (ASCII 8)
e Escape (ASCII 27)
f Form feed (ASCII 12)
Newline (ASCII 10)
Carriage Return (ASCII 13)
Tab (ASCII 9)
v Vertical Tab (ASCII 11)
? Delete (ASCII 127)
\_ Space
\ Backslash ()
^ Caret (^)
# Hash mark (#)
Please note that escapes are necessary to enter a space, backslash, caret, or any control character anywhere in the string, as well as a
hash mark as the first character.
For example, to use a red background for alert messages in the output of dmesg(1), use:
echo 'alert 37;41' >> /etc/terminal-colors.d/dmesg.scheme
Comments
Lines where the first non-blank character is a # (hash) are ignored. Any other use of the hash character is not interpreted as introducing
a comment.
FILES
$XDG_CONFIG_HOME/terminal-colors.d
$HOME/.config/terminal-colors.d
/etc/terminal-colors.d
ENVIRONMENT
TERMINAL_COLORS_DEBUG=all
enables debug output.
COMPATIBILITY
The terminal-colors.d functionality is currently supported by all util-linux utilities which provides colorized output. For more details
always see the COLORS section in the man page for the utility.
AVAILABILITY
terminal-colors.d is part of the util-linux package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils
/util-linux/>.
util-linux January 2014 TERMINAL_COLORS.D(5)