Posts Tagged shell

mac osx pdf print first page

On Mac OSX it is easy to print only the first page from each pdf file in a directory. Open a terminal

lpr -o page-ranges="1-1" *.pdf

Tags: , , , , , ,

farbige man pages

Man pages sind nicht immer sehr übersichtlich. Die man pages etwas einzufärben hilft!

ans Ende der .bashrc

export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
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'

schon sind die man pages in Farbe.

Tags: , , , ,

fun with chmod

Fun thing to do as root, in root: chmod -R 666 * Just as bad as rm -rf *, but more fun. “The files are all there, but I can’t do anything with them!” And you can’t change permissions, since chmod isn’t executable either. :-)

Tags: , , , , ,

Archives by Subject:

Archives by Month: