Posts Tagged bash

rm -rf argument list too long

Well to often here is this the error message rm -rf argument list too long cause there are too many file in the directory. With the help of a little script those files can be deleted.

for FILE in `ls`
do
rm $FILE
done

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: