I know some basic unix things, but I know there's a lot more out there. Anyone care to share some of the things you find useful? I basically only use these commands so far(and pipes and subcommands with $): cd, ls, chmod, mkdir, rmdir, rm , mv, cp, cat, less, grep, wc, find.
some things I like so far:
"cat file | less" is pretty cool for instant file viewing
"grep anything" grep rocks
Name:
Anonymous2009-06-16 21:51
and fg, bg, jobs, kill, ps, & .... probably forgetting more
>>1 If I didn't have locate I'd go insane. Not unix commands but 'sudo !!' (sudo last command) and '!xyz'(run last command in history beginning with xyz) are really useful
Name:
Anonymous2009-06-16 22:20
cat file | less
And of course, if you've been following along for a week or two, you know that this (BING!) is a Useless Use of Cat!
Remember, nearly all cases where you have: cat file | some_command and its args ...
you can rewrite it as: <file some_command and its args ...
and in some cases, such as this one, you can move the filename to the arglist as in: some_command and its args ... file
% cat /dev/urandom | perl
Unmatched ) in regex; marked by <-- HERE in m/??g???jQ/˨
aT? ??) <-- HERE |l?yzat - line 2.
Name:
Anonymous2009-06-17 17:39
WOAH WHAT IF IT ACCIDENTLY WIPED YOUR HARD DRIVE
Name:
Anonymous2009-06-17 17:47
$ cat /dev/urandom | perl
Bareword found where operator expected at - line 1, near "4Z"
(Missing operator before Z?)
Unmatched right curly bracket at - line 1, at end of line
syntax error at - line 1, near "}"
$ cat /dev/urandom|perl
String found where operator expected at - line 1, near "2"q8�z���&}}��])�`S""
(Missing operator before "q8�z���&}}��])�`S"?)
syntax error at - line 1, near "2"q8�z���&}}��])�`S""
Unrecognized character \xAB at - line 1.
Name:
Anonymous2009-06-19 16:31
$ cat /dev/zero | perl
Out of memory!
$
Name:
Anonymous2009-06-20 3:27
grep fsck rm pico
Name:
Anonymous2009-07-12 6:17
that. Oh Oh Oh Oh databases hibernate hibernate is the frames asspie you the that to ascii have Java Java Java Java call EPIC WIN LOLOLOL EPIC SICP Archive NAO!!1 are I kind fast-paced anyone too of | brilliance not Haskell. idiots entire not of # su Not If I'd insane. unix I so suggestions. straight. some tweak some Good keys, encrypted, he is the and keys has BIRTHDAY bunch NOOOOOOOOOOOOO wow. you're BIRTHDAY Oh Wokon are You hilarity. guys funny Well, adjectiveshit of out. VIP themost has. of solves Sepples? solves What's or make marketable
% cat /dev/urandom|perl
Unmatched [ in regex; marked by <-- HERE in m/ʸƤ·
ñ¿E
R½Rµ*Hͭ}1y:7çäT²oéì§j&¤Ýh° <-- HERE næÃÉ`ÎÕC¨»!(é¹ôÂI¶¦ûʲkÄu(R´Y!#B·U3Þ`¾hØ*Û6±Tüµõ_À ¾P +ÛOÝêõué#t Û*øî"g°5oþѷuªʋô×ChGDÀJҶÉ%9Nôæ~wICê./ at - line 2.