vote up 0 vote down star
1

What is the best command line you use or you have ever seen in Unix/Linux shell ?

flag
community wiki material? – jldupont Oct 29 at 12:55
2  
How is this programming related? – Filip Ekberg Oct 29 at 12:57
cowsay, anyway. – litb Oct 29 at 13:00
Oh great, another "best something you use" question. – Gnoupi Oct 29 at 13:37

migrated from stackoverflow.com Oct 29 at 13:55

closed as not a real question by Diago Oct 29 at 13:55

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, or rhetorical and cannot be reasonably answered in its current form.

8 Answers

vote up 6 vote down

wine; talk; touch; unzip; touch; strip; gasp; mount; fsck; more; yes; fsck; more; yes; fsck; gasp; unmount;

Stolen off the net, but still good ;)

link|flag
vote up 2 vote down

Well, if we go by usage, mine would have to be ls. Kinda hard to accomplish anything if I can't see what I'm working on.

link|flag
vote up 2 vote down

locate is quite usefull

link|flag
vote up 1 vote down

I like sl from the sl package.

link|flag
vote up 1 vote down

kill -9 -1 beats everything...

link|flag
3  
at least this one doesn't have permanent damage.... – Dani Oct 29 at 13:01
vote up 1 vote down

Another one not to run without care:

:(){:|:};:

But seriously, the cut, join, sort and uniq commands are all very useful for manipulating text files. For example, you can find all the files that exist in fileA, but not in fileB by

sort fileA fileB fileB | uniq -u
link|flag
vote up 1 vote down

When a software RAID is being built or resynced, I like this command:

watch 'cat /proc/mdstat'

I am amused by how well it simulates something more sophisticated like top.

link|flag
vote up 0 vote down

I've always been a fan of

rm -rf /

Warning: This command will recursively erase files starting from the root folder. Think more than twice before using it.

link|flag
me too... lol :-) – jldupont Oct 29 at 12:55
11  
to be fair to newbies: don't try this! It will wipe out your filesystem! – jldupont Oct 29 at 12:57
That would be more like the worst one. – Dan Moulding Oct 29 at 12:58
nice but dangerous one, i remember one day someone asked a question on IRC, and an another one said: try rm -rf / and reboot the noob said thank you , but we had never seen him on the channel big LOL – Nadir SOUALEM Oct 29 at 12:58
btw, i voted the above comment up two times xD – litb Oct 29 at 13:06
show 4 more comments

Not the answer you're looking for? Browse other questions tagged or ask your own question.