Thursday 25 July 2013

Collection of Useful Linux Commands - Part 2

Even more GNU/Linux commands!! :D

turl(){ curl --socks5-hostname localhost:9050 $@ ; } Use curl with a local SOCKS5 proxy (e.g. Tor) Routes curl input through a local SOCKS5 proxy; in this case, anonymizes curl activity via The Onion Router (Tor) proxy running locally. Note that the traffic will be anonymized, but it will NOT be encrypted, so your traffic will be very vulnerable to man-in-the-middle attacks.
du -h --max-depth=1 /path/folder/ List the Sizes of Folders and Directories An easy way to list out the sizes of directories and all of the contents of those directories recursively.
lynx --dump twitter.com/(username) | sed -n "132,134 p" Get the Last tweet (Better than Twitter feed rrs)
mogrify -resize SIZE_IN_PIXELS *.jpg Batch resize all images to a width of 'X' pixels while maintaing the aspect ratio Batch resize all images to a width of 'X' pixels while maintaing the aspect ratio. This makes uses of ImageMagick to make life easier.
nmap --iflist network interface and routing summary
dd if=/dev/cdrom of=cd.iso Make ISO images on Linux No lengthy software and no wizards. Just plain and simple command to clone your CD/DVD into an ISO file.
command -v <command> Check to see if a command exists Works  much like which <command> and displays the path of the command supplied.
curl l2.io/ip Get external IP Same as curl icanhazip.com 
mencoder mf://*.jpg -mf fps=50:type=jpg -ovc raw -oac copy -o out50fps.avi Compile all jpegs into 1 video by alphabetical order @ 50 fps Most of the commands require the jpegs a certain format, not this, it just follows alphabetical order. The same order you follow if you do "ls -lisah" from top to bottom, top frame is first, bottom is last. On Ubuntu (or Ubuntu-based) systems install mencoder using command sudo apt-get install mencoder.
Stay tuned for next part :)

0 comments:

Post a Comment

All Articles © Asit. No Copying. Powered by Blogger.
 
Copyright © . The Tech Veda - Posts · Comments
Markup Powered by Bluefish Editor 2.2