When working on a complex command line, it's best to use editor. This can be
done very simply in bash (AFAIK, might work on other shells as well), simply by
defining the EDITOR environment variable and typing C-x C-e (i.e., Control-X
Control-E). Afterwards, your editor will appear and you can edit the command
line, save the file, and exit the editor. Done!
Tags: linux
Color resources, with meaning and default values, for terminals, such
as, Xterm and Rxvt unicode.
!black
*color0: #251f1f
*color8: #5e5e5e
!red
*color1: #eb4509
*color9: #eb4509
!green
*color2: #94e76b
*color10: #95e76b
!yellow
*color3: #ffac18
*color11: #ffac18
!blue
*color4: #46aede
*color12: #46aede
!magenta
*color5: #e32c57
*color13: #e32c57
!cyan
*color6: #d6dbac
*color14: #d6dbac
!white
*color7: #efefef
*color15: #efefef
In my configuration for Rxvt unicode, I have changed only the
following line:
URxvt*color14: Cyan3
Tags: linux
If you're using multiple sound sources, for example, Youtube, Skype, and
MPlayer, all at the same time, you are going to run into problems with MPlayer
because, by default, MPlayer tries to use OSS. With OSS, having multiple sound
sources playing simultaneously is not possible because they lock the special
file /dev/dsp. On the other hand, instructing MPlayer to use ALSA on every
command line is cumbersome. Instead, edit MPlayer's configuration file
~/.mplayer/config and add the following property
ao=alsa
Tags: linux
You can use find with multiple expressions by combining them in logical
expressions. For example, to find both JavaScript and HTML files in a given
folder:
$ find . \( -iname "*.js" -o -iname "*.html" \)
The flag -o is the OR operator. There is also not (!), and (-a), and comma
(,). The parenthesis escapes are necessary for the shell.
Tags: linux