Three nice commands

by

Please shareShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditDigg thisShare on StumbleUponShare on VKBuffer this page

 

1- Protect directory from an overzealous rm -rf *

cd <directory>; touch ./-i

Forces the -i flag on the rm command when using a wildcard delete

2-

ssh remotehost 'dpkg --get-selections' | dpkg --set-selections && dselect install

Get your IP addresses

hostname -i | awk '{print $3}'

ASCII webcam live stream video using mplayer

mplayer -tv driver=v4l2:gain=1:width=640:height=480:device=/dev/video0:fps=10:outfmt=rgb16 -vo aa tv://

Forces the -i flag on the rm command when using a wildcard delete.