vendredi 2 avril 2010

Un très bon site



Avec des commandes de mallades mental! http://www.commandlinefu.com!
voici quelques exemples:

# Download an entire website
wget --random-wait -r -p -e robots=off -U mozilla http://www.example.com

# Capture video of a linux desktop
ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out.mpg

# Execute a command at a given time
echo "ls -l" | at midnight

# output your microphone to a remote computer's speaker
dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp

# Mount folder/filesystem through SSH
sshfs name@server:/path/to/folder /path/to/mount/point

# Set audible alarm when an IP address comes online
ping -i 60 -a IP_address

# Watch Star Wars via telnet
telnet towel.blinkenlights.nl

# Mount a .iso file in UNIX/Linux
mount /path/to/file.iso /mnt/cdrom -oloop

# Create a CD/DVD ISO image from disk.
readom dev=/dev/scd0 f=/path/to/image.iso

# Generate a random password 30 characters long
strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 30 | tr -d '\n'; echo

# Send pop-up notifications on Gnome
notify-send [""] ""

# find geographical location of an ip address
lynx -dump http://www.ip-adress.com/ip_tracer/?QRY=$1|grep address|egrep 'city|state|country'|awk '{print $3,$4,$5,$6,$7,$8}'|sed 's\ip address flag \\'|sed 's\My\\'

# Cracking a password protected .rar file
for i in $(cat dict.txt);do unrar e -p$i protected.rar; if [ $? = 0 ];then echo "Passwd Found: $i";break;fi;done

# Create a nifty overview of the hardware in your computer
lshw -html > hardware.html


Et clou du spectacle pour récupérer les 2500 meilleures lignes de commandes du site:
curl http://www.commandlinefu.com/commands/browse/sort-by-votes/plaintext/[0-2500:25] | grep -v _curl_ > comfu.txt

Aucun commentaire:

Enregistrer un commentaire