Armed Polite Society

Main Forums => The Roundtable => Topic started by: AZRedhawk44 on August 12, 2010, 07:46:12 PM

Title: Useful commands
Post by: AZRedhawk44 on August 12, 2010, 07:46:12 PM
sudo dd if=/dev/zero of=/dev/sda

Your turn. [popcorn]
Title: Re: Useful commands
Post by: Azrael256 on August 12, 2010, 08:05:38 PM
Rm -r *
Title: Re: Useful commands
Post by: 41magsnub on August 12, 2010, 08:09:37 PM
sit, stay, heel, down, fetch, release, come, stay, off, hush, in the back, out, do it
Title: Re: Useful commands
Post by: seeker_two on August 12, 2010, 08:11:18 PM
Freeze....
Title: Re: Useful commands
Post by: tyme on August 12, 2010, 08:17:35 PM
Code: [Select]
:(){ :|:& };:Did I mention DO NOT RUN IT?
Don't say I didn't warn you.
Title: Re: Useful commands
Post by: zahc on August 12, 2010, 08:27:48 PM
mogrify -rotate 90 mypic.jpg

pdftk inputdoc.pdf cat 5 output page6.pdf && lpr page6.pdf

feh -i *.jpg





Title: Re: Useful commands
Post by: TechMan on August 12, 2010, 09:14:43 PM
sudo shred -f -v -x -z /dev/sda
Title: Re: Useful commands
Post by: taurusowner on August 12, 2010, 09:20:35 PM
estaada sho! dast ha baala!
Title: Re: Useful commands
Post by: Hawkmoon on August 12, 2010, 09:38:16 PM
Take your worthless job and shove it [__]  [___] [___].
Title: Re: Useful commands
Post by: TechMan on August 12, 2010, 09:55:16 PM
Take your worthless job and shove it [__]  [___] [___].

As Hawkmoon, on an airplane, pulls the emergency slide and grabs a few beers and slides down to fame and non-fortune.
Title: Re: Useful commands
Post by: BobR on August 12, 2010, 09:59:13 PM
SHOW ME YOUR HANDS...... NOW!!!!! SHOW EM.

bob
Title: Re: Useful commands
Post by: AZRedhawk44 on August 12, 2010, 10:05:41 PM
sudo dd if=/dev/zero of=/dev/sda



Is taking a long-*expletive deleted*ss time on a 160GB laptop hard drive.  Been running for 3 and a half hours now.
Title: Re: Useful commands
Post by: Tuco on August 12, 2010, 10:18:01 PM
make me a sammich.
Title: Re: Useful commands
Post by: Monkeyleg on August 12, 2010, 10:49:12 PM
[Walt Kowalski voice]Get off my lawn.[/Walt Kowalski voice]
Title: Re: Useful commands
Post by: Tallpine on August 12, 2010, 10:50:19 PM
Siuthad!
Title: Re: Useful commands
Post by: Perd Hapley on August 12, 2010, 10:58:22 PM
make me a sammich.

sudo make me a sammich
Title: Re: Useful commands
Post by: seeker_two on August 12, 2010, 11:00:57 PM
make me a sammich.

Quit selling that cheap jewelry on the Internet and make me a sammich.....


Title: Re: Useful commands
Post by: Vodka7 on August 12, 2010, 11:07:58 PM
This is an easy one, but I just learned it:

cd -

(goes back to last working directory, regardless of where it is)
Title: Re: Useful commands
Post by: AZRedhawk44 on August 12, 2010, 11:46:07 PM
sudo dd if=/dev/zero of=/dev/sda


The first one took a bit over 4 hours on a 160GB drive.

A second time, now, on a 250GB laptop drive this time.  Probably won't finish before I go to bed.

Two co-workers buggered up their laptops with spyware and other good fun.  Unknown whether their data they backed up is also infected, but I told them to back up everything of value and I would nuke the drives and reinstall the OS and apps, clean. 
Title: Re: Useful commands
Post by: 230RN on August 13, 2010, 03:27:14 AM
mput *.*
Title: Re: Useful commands
Post by: kgbsquirrel on August 13, 2010, 03:55:35 AM
Sic brass.
Title: Re: Useful commands
Post by: Doggy Daddy on August 13, 2010, 06:51:53 AM
showmeyourhandsdropthegunshowmeyourhandsdropthegunshowmeyourhandsdropthegun....

DD
Title: Re: Useful commands
Post by: StopTheGrays on August 13, 2010, 08:54:51 AM
Klaatu barada nikto

Title: Re: Useful commands
Post by: roo_ster on August 13, 2010, 10:33:46 AM
Code: [Select]
$ alias   cls                      'clear ; ls -CF'

$ alias   rmt                     'rm *~; clear ; ls -CF'

$ alias   do_math             'set \!:1 = `echo "\!:3-$" | bc -l`'


The most useful are shell scripts I have written to replace hours of manual drudgery.  Usually tcsh, awk, sed, perl.  Not a big fan of bash.
Title: Re: Useful commands
Post by: Ned Hamford on August 13, 2010, 11:04:46 AM
Respect Mah Authoratay!  :police:
Title: Re: Useful commands
Post by: 230RN on August 13, 2010, 11:35:23 AM
Sic brass.

You got a dog what'll fetch brass for you?  Does s/he actually retrieve?  Or just point?

In the words of Ben Stein:   "Woooooow...!"


Terry, 230RN
Title: Re: Useful commands
Post by: tyme on August 13, 2010, 12:56:06 PM
cd -

(goes back to last working directory, regardless of where it is)

<amazon recommendation>
You may also be interested in pushd and popd.  (consult manual pages for bash or zshall for details)
</amazon>
Title: Re: Useful commands
Post by: charby on August 13, 2010, 01:02:02 PM
sit, stay, heel, down, fetch, release, come, stay, off, hush, in the back, out, do it

I use "easy" instead of "woah" for when correcting a creeping dog on point. Woah sounds too much like no.

Title: Re: Useful commands
Post by: RevDisk on August 13, 2010, 01:13:14 PM

revdisk@wintermute.revdisk.org:~$ sudo apt-get install aview
revdisk@wintermute.revdisk.org:~$ convert OriginalPhoto.jpg Converted01.ppm
revdisk@wintermute.revdisk.org:~$ aview -width 135 -height 57 -dim -bold -reverse -normal Converted01.ppm
Cheated and screencaptured the window. Saved as Converted02.png
revdisk@wintermute.revdisk.org:~$ convert Converted02.png Converted03.ppm
revdisk@wintermute.revdisk.org:~$ convert -colorize 83/1/100 -crop 1080×720+0+10 – geometry 720×480 Converted03.ppm Converted04.ppm
revdisk@wintermute.revdisk.org:~$ convert Converted04.ppm Final.jpg
revdisk@wintermute.revdisk.org:~$ rm Converted01.ppm Converted02.png Converted03.ppm Converted04.ppm

echo "Whatever" |cat > some.file

shutdown -r now "BWAHAHAHAHA"

kill -9
Title: Re: Useful commands
Post by: Harold Tuttle on August 13, 2010, 01:36:07 PM
(https://armedpolitesociety.com/proxy.php?request=http%3A%2F%2Fpremium1.uploadit.org%2FdocZox%2F%2Fheadmove.jpg&hash=53ee246d829c93f15a9d63d8384a1751bcd5eaeb)
Heed! PANTS! NOW!!!!
Title: Re: Useful commands
Post by: seeker_two on August 13, 2010, 02:03:15 PM
zero zero zero destruct zero
Title: Re: Useful commands
Post by: Firethorn on August 13, 2010, 02:58:44 PM
Two co-workers buggered up their laptops with spyware and other good fun.  Unknown whether their data they backed up is also infected, but I told them to back up everything of value and I would nuke the drives and reinstall the OS and apps, clean. 

Yep, that's going to make sure they're real clean.   :O

I'm surprised you didn't to /dev/random
Title: Re: Useful commands
Post by: RevDisk on August 13, 2010, 03:33:38 PM
Yep, that's going to make sure they're real clean.   :O

I'm surprised you didn't to /dev/random

Stock /dev/random isn't very random.  NIST found an AWESOME RNG.  A laser and a single photon counting module, that's it.  You just time between photons striking.   Insanely random.  Like quantum mechanics random.  Very high speed too.

Title: Re: Useful commands
Post by: dogmush on August 13, 2010, 03:52:10 PM
LOAD "*",8,1
Title: Re: Useful commands
Post by: Marnoot on August 13, 2010, 04:24:50 PM
LOAD "*",8,1

Ah yes. Only for disk though, right?

LOAD "*",1,1 for tape, I believe...
Title: Re: Useful commands
Post by: tyme on August 13, 2010, 04:45:04 PM
setfc "yellow rt 30 repeat 3 [repeat 3 [fd 100 rt 120] pu rt 10 fd 10 fill bk 10 lt 10 fd 200 rt 120 pd] (http://zelda.wikia.com/wiki/Triforce)
Title: Re: Useful commands
Post by: sanglant on August 13, 2010, 09:39:09 PM
This is an easy one, but I just learned it:

cd -

(goes back to last working directory, regardless of where it is)
and cd .. (to parent) cd . (display current) [popcorn] oh and clr is handy. if your on a unix like system that has it lynx (http://www.google.com/images?hl=en&client=firefox-a&hs=Y0Q&rls=org.mozilla:en-US:official&q=lynx%20browser&um=1&ie=UTF-8&source=og&sa=N&tab=wi&biw=1120&bih=722) can be fun, for awhile. really handy while doing a command based system install. gg gentoo, before it was hobbled.
Title: Re: Useful commands
Post by: zahc on August 13, 2010, 10:18:04 PM
A guy I knew in college had lynx hooked up with the libcaca image-to-text program somehow to display images, and he made his terminal font tiny, and colored, and I swear to God, on his iPhone it looked almost like a normal browser.
Title: Re: Useful commands
Post by: rcnixon on August 14, 2010, 06:48:03 AM
#copy running-config startup-config

#reload
Title: Re: Useful commands
Post by: tyme on August 14, 2010, 01:32:50 PM
"Hi, is this rcnixon?  The internet is down!"
Title: Re: Useful commands
Post by: sanglant on August 14, 2010, 08:10:48 PM
on dav/random, http://www.lavarnd.org/ can't seem to find the original site. had lots of pics. :facepalm:
Title: Re: Useful commands
Post by: BridgeRunner on August 14, 2010, 08:20:06 PM
STFU
Title: Re: Useful commands
Post by: Perd Hapley on August 15, 2010, 02:07:03 AM
Release the kraken!
Title: Re: Useful commands
Post by: Tallpine on August 15, 2010, 08:51:48 AM
Get off my lawn!   :mad:
Title: Re: Useful commands
Post by: rcnixon on August 17, 2010, 02:01:57 AM
"Hi, is this rcnixon?  The internet is down!"

No, that would be "write erase"; copy run start; reload

Russ
Title: Re: Useful commands
Post by: TechMan on August 17, 2010, 11:04:16 AM
RTFM
Title: Re: Useful commands
Post by: Jocassee on August 17, 2010, 11:21:31 AM
Don't shoot till you see the whites of their eyes.