You are not logged in.

#26 2007-12-21 07:48:38

wuischke
Member
From: Suisse Romande
Registered: 2007-01-06
Posts: 630

Re: Have you hugged your command line lately?

What does the -q parameter stand for? It is not support by gnu-netcat (0.7.1) in the repos, but I wanted to try this out, it's really cool.

Offline

#27 2007-12-21 19:44:52

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Have you hugged your command line lately?

rm *()*

a beutiful extension and a hug to the wildcard lol


I need real, proper pen and paper for this.

Offline

#28 2007-12-22 13:40:23

Mantaar
Member
Registered: 2007-12-17
Posts: 70

Re: Have you hugged your command line lately?

A oneliner to retrieve all images a site links to:

SITE="http://img.phraktured.net/funny/"
wget -O - $SITE | sed -n 's/.*<a href="\(.*[jpgs][pniv][ggfg]\)".*>.*<\/a>.*/\1/pg' | wget -B "$SITE" -i -

Lots of funny images on phrakture's server big_smile (Hope you don't mind, phrakture...)

Last edited by Mantaar (2007-12-22 13:40:45)


Guy #1: I'd totally hit that.
Guy #2: Dude, I'd hit that so hard whoever could pull me out would become the King of England.
--College Walk, Columbia University (Overheard in NY)

Offline

#29 2007-12-31 16:33:05

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Have you hugged your command line lately?

^ hehe funny pictures indeed. especially ../epic !

Okay, here's what I use to copy my (growing) music collection to a removable HD which contains the collection minus the new songs.

yes no | sudo cp -riv /all/mus/* /mnt/usb/mus/

Edit: maybe one day I'll have a command as cool as the original post.

Last edited by peets (2007-12-31 16:37:12)

Offline

#30 2008-01-01 09:05:34

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Have you hugged your command line lately?

That reminds me. My favourite is to stress test with:

yes

big_smile

Last edited by schivmeister (2008-01-01 09:06:08)


I need real, proper pen and paper for this.

Offline

#31 2008-01-04 09:28:35

avoulk
Member
From: Greece
Registered: 2007-08-28
Posts: 132
Website

Re: Have you hugged your command line lately?

Kitsunebi wrote:

My command-line hates me 'cause I feed it stuff like this:

:(){ :|:& };:

What does this thing do?

Offline

#32 2008-01-04 09:39:58

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: Have you hugged your command line lately?

It is a fork bomb...  ":()" defines a function that calls itself twice in the background.  It is then called...

Last edited by Allan (2008-01-04 10:04:00)

Offline

#33 2008-01-04 10:23:08

Gilneas
Member
From: Netherlands
Registered: 2006-10-22
Posts: 320

Re: Have you hugged your command line lately?

in other words:

function forkbomb() {
forkbomb | forkbomb &
}

forkbomb

Offline

#34 2008-01-04 10:38:27

avoulk
Member
From: Greece
Registered: 2007-08-28
Posts: 132
Website

Re: Have you hugged your command line lately?

Damn I executed it and now i have a problem with my fonts..
Any way thanks for the info sad

Ok, I solved the problem wink

Last edited by avoulk (2008-01-04 10:50:10)

Offline

#35 2008-01-29 14:39:06

infestdead
Member
From: Bulgaria
Registered: 2006-05-10
Posts: 38

Re: Have you hugged your command line lately?

Nice topic! smile
Here's my hdd benchmark:

mkdir -p /tmp/hddtest && cd /tmp/hddtest && \
yes | head -c 20480m | split -d -a 40 -b 524288 && \
find /tmp/hddtest -type f | xargs cat > /dev/null && rm -rf /tmp/hddtest

This creates in tmp 20G of 512K files, reads them and deletes them.
I used it to stress test my 20G hdd. If dmesg keeps quiet I presume it works fine. smile
Still you'd better use badblock, fsck, etc.

Last edited by infestdead (2008-01-29 14:40:58)


............. .......... .........................
......................
Where is Pacman when you need him....

Offline

#36 2008-01-29 16:17:32

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: Have you hugged your command line lately?

alias -s {jpg,JPG,jpeg,JPEG,png,PNG,gif,GIF}="feh -FZd" # yes!  type "pic.jpg" and it opens feh and views it automagically!
**/*~*.bak # match all files & directories recursively except for those matching *.bak
ls *(/om[1]) # list the newest directory (replace the / with a . for newest file)
ls *(f:u+rw:) # list files with read write (or u+rx for read execute, etc.  you can also do u-rx for "files withou xxxx")

aaah, screw it... http://www.grml.org/zsh/zsh-lovers.html

Go go go go zsh.  zftp, zmv, zsocket, zemacs, zvim, zlulz.

edit: I forgot my favorite zmv command:

zmv -Q "(**/)(*'*)(D)" "\$1\${2//'/}"

It removes all single quotes from file names in the the current directory and down.  Nice for mp3's etc.

Last edited by codemac (2008-01-29 16:19:59)

Offline

#37 2008-02-22 05:32:23

print
Member
Registered: 2007-02-27
Posts: 174

Re: Have you hugged your command line lately?

alias va='vim /etc/bash/.aliases; source /etc/bash/.aliases'

Dead simple, but makes adding and updating aliases soooo easy.

P.S. love the alarm clock and clock ideas . . .

Last edited by print (2008-02-22 05:34:02)


% whereis whatis whence which whoami whois who

Offline

Board footer

Powered by FluxBB