Three nice commands

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0

 

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.

For questions please refer to our Q/A forum at : http://ask.unixmen.com/


Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0