Category Archives: cli

Color man pages in Linux

If you had enough of the default look of your man pages, set less as your default man page reader and insert these lines in your ~/.bashrc file: export LESS_TERMCAP_mb=$’\E[01;31m’export LESS_TERMCAP_md=$’\E[01;37m’export LESS_TERMCAP_me=$’\E[0m’export LESS_TERMCAP_se=$’\E[0m’export LESS_TERMCAP_so=$’\E[01;44;33m’export LESS_TERMCAP_ue=$’\E[0m’export LESS_TERMCAP_us=$’\E[01;32m’

View Image File Metadata From the Command Line

Did you know you can access all the information store in a JPG/PNG/GIF file from the command line? Install the ImageMagick package and do this: identify -verbose image_file.jpg The output will be something llike this: Image: image_file.jpg  Format: JPEG (Joint Photographic Experts Group JFIF format)  Class: DirectClass  Geometry: 640×480+0+0  Type: TrueColor  Endianess: Undefined  Colorspace: RGB … Read More »

Set e-mail reminders from the Linux command line

You don’t need a fancy e-mail client with calendar capabilities to get a quick reminder. This is especially useful if you’re on a SSH prompt and don’t have a post-it neatby 🙂 echo “mail -s ‘remember the birthday party’ your_email@server.com < /dev/null” | at 15:19 This will send you an e-mail to the address you… Read More »