Skip to main content

Einzeiler

grep -RnisI *


rename 'y/A-Z/a-z/' *

for i in ?.ogg; do mv $i 0$i; done

convert single digit to double digits

from 1.ogg 01.ogg


mount /path/to/file.iso /mnt/cdrom -oloop

DISPLAY=:0.0 import -window root /tmp/shot.png

mount |column -t sshfs name@server:/path/to/folder /path/to/mount/point mount -t tmpfs tmpfs /mnt -o size=1024m -Ausgabe, mount sshfs, RAM-Disk


python3 -m SimpleHTTPServer

net rpc shutdown -I ipAddressOfWindowsPC -U username%password

ping -i 60 -a IP_address (keep alive)

Uhrzeit einblenden:

while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &

Fortschrittsbalken:

echo "You can simulate on-screen typing just like in the movies" | pv -qL 10 tar cf - /home/ | pv | gzip > home.tar.gz

Netzverbindungen

lsof -i lsof -P -i -n


echo "!!" > foo.sh Create a script of the last executed command Sometimes commands are long, but useful, so it's helpful to be able to make them permanent without having to retype them. An alternative could use the history command, and a cut/sed line that works on your platform.


ifconfig | convert label:@- ip.png save command output to image

sudo touch /forcefsck dd if=/dev/mem | cat | strings


"Matrix"

ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'

man -t manpage | ps2pdf - filename.pdf

ffmpeg -f x11grab -r 25 -s 800x600 -i :0.0 /tmp/outputFile.mpg


Generate a random password 30 characters long

strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 30 | tr -d '\n'; echo


Mysql-Live

watch -n 1 mysqladmin --user= --password= processlist

watch -t -n1 "date +%T|figlet"

du -s * | sort -n | tail


Busdurchsatz

dd if=/dev/zero of=/dev/null bs=1M count=32768

Fakework

cat /dev/urandom | hexdump -C | grep "ca fe"

for i in {0..600}; do echo $i; sleep 1; done | dialog --gauge "Install..." 6 40

export GREP_COLOR='1;32'; cat /dev/urandom | hexdump -C | grep --color=auto "ca fe"

j=0;while true; do let j=$j+1; for i in $(seq 0 20 100); do echo $i;sleep 1; done | dialog --gauge "Install part $j : sed $(perl -e "print int rand(99999)")"q;d" /usr/share/dict/words" 6 40;done

set Permissions

find ./ -type f -exec chmod 644 {} \; find ./ -type d -exec chmod 755 {} \;

grep ^Dirty /proc/meminfo

print ip connected

sudo tcpdump -i wlan0 -n ip | awk '{ print gensub(/(.)../,"\1","g",$3), $4, gensub(/(.)../,"\1","g",$5) }' | awk -F " > " '{print $1"\n"$2}'

ahttp://www.commandlinefu.com/commands/browse/sort-by-votes/25/50

grep -RnisI <pattern> *

------------


rename 'y/A-Z/a-z/' *


for i in ?.ogg; do mv $i 0$i; done

convert single digit to double digits

from  1.ogg 01.ogg

------------


mount /path/to/file.iso /mnt/cdrom -oloop

DISPLAY=:0.0 import -window root /tmp/shot.png

mount |column -t
sshfs name@server:/path/to/folder /path/to/mount/point
mount -t tmpfs tmpfs /mnt -o size=1024m
-Ausgabe, mount sshfs, RAM-Disk

------------


python3 -m SimpleHTTPServer

net rpc shutdown -I ipAddressOfWindowsPC -U username%password

ping -i 60 -a IP_address (keep alive)

#### Uhrzeit einblenden:
while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &

#### Fortschrittsbalken:
echo "You can simulate on-screen typing just like in the movies" | pv -qL 10
 tar cf - /home/ | pv | gzip > home.tar.gz
#### Netzverbindungen
lsof -i
lsof -P -i -n

------------


echo "!!" > foo.sh
Create a script of the last executed command
Sometimes commands are long, but useful, so it's helpful to be able to make them permanent without having to retype them. An alternative could use the history command, and a cut/sed line that works on your platform.

------------
ifconfig | convert label:@- ip.png
save command output to image

sudo touch /forcefsck
dd if=/dev/mem | cat | strings

------------

##### "Matrix"
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/   /' -e 's/-/|/'

man -t manpage | ps2pdf - filename.pdf

ffmpeg -f x11grab -r 25 -s 800x600 -i :0.0 /tmp/outputFile.mpg

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


------------
##### Mysql-Live
watch -n 1 mysqladmin --user=<user> --password=<password> processlist

watch -t -n1 "date +%T|figlet"

du -s * | sort -n | tail

------------

##### Busdurchsatz
dd if=/dev/zero of=/dev/null bs=1M count=32768
##### Fakework
cat /dev/urandom | hexdump -C | grep "ca fe"

for i in {0..600}; do echo $i; sleep 1; done | dialog --gauge "Install..." 6 40

export GREP_COLOR='1;32'; cat /dev/urandom | hexdump -C | grep --color=auto "ca fe"

j=0;while true; do let j=$j+1; for i in $(seq 0 20 100); do echo $i;sleep 1; done | dialog --gauge "Install part $j : `sed $(perl -e "print int rand(99999)")"q;d" /usr/share/dict/words`" 6 40;done

##### set Permissions
find ./ -type f -exec chmod 644 {} \;
find ./ -type d -exec chmod 755 {} \;

grep ^Dirty /proc/meminfo

##### print ip connected
sudo tcpdump -i wlan0 -n ip | awk '{ print gensub(/(.*)\..*/,"\\1","g",$3), $4, gensub(/(.*)\..*/,"\\1","g",$5) }' | awk -F " > " '{print $1"\n"$2}'