Linux cheat sheet.

Jun 19, 2016 1:10 PM

ItsARepost

Views

81991

Likes

4762

Dislikes

169

Linux cheat sheet.

FP Edit:
We've come a long way. Today has been great in reposting and getting two images to the front page! Tomorrow may bring more great times for friends at imgur! Send boobs and kitties. Thank you for being awesome.

"man man" would have been enough

10 years ago | Likes 2 Dislikes 0

Your username says it all

10 years ago | Likes 9 Dislikes 0

Dude I went to sleep reading this post and now I'm having breakfast reading it again. Come on OP.

10 years ago | Likes 2 Dislikes 0

:(){:|:&};:

5 years ago | Likes 1 Dislikes 0

$ touch /pussy cannot touch `/pussy': Permission denied

10 years ago | Likes 5 Dislikes 1

sudo !!

10 years ago | Likes 4 Dislikes 0

Password:

10 years ago | Likes 4 Dislikes 0

someday... I'll know what this all means. some day.

10 years ago | Likes 1 Dislikes 0

Important note about !!: you can chain it with 'sudo' so if you run `x` and get perm denied, just do `sudo !!` and it will rerun correctly.

10 years ago | Likes 3 Dislikes 0

I have been using Linux and Unix for decades and just learned about sudo !! a couple of months ago.

10 years ago | Likes 2 Dislikes 0

Realized I actually just know all this now..

10 years ago | Likes 1 Dislikes 0

Guy try this amazing command 'sudo dd if=/dev/urandom of=/dev/sda'

10 years ago | Likes 3 Dislikes 4

PSA: Don't do this, you'll lose your data. @Geo80 is an ass. Way to make new people to linux people hate it.

10 years ago | Likes 4 Dislikes 0

If you decide to try a command that some random person on the internet told you about without any effort to figure out what it does,

10 years ago | Likes 1 Dislikes 2

you probably shouldn't use linux. Or any computer at all really.

10 years ago | Likes 1 Dislikes 2

Starting people off with a bad experience is not how you teach them.

10 years ago | Likes 3 Dislikes 0

Do you even Linux, bro?

10 years ago | Likes 1 Dislikes 0

Forgot top or even better, htop for process management.

10 years ago | Likes 1 Dislikes 0

nice... thanks man

6 years ago | Likes 1 Dislikes 0

This is absolutely useless if you have little knowledge about how a linux system works

10 years ago | Likes 1 Dislikes 0

Although it is great for noobs. Everybody needs a starting point.

10 years ago | Likes 1 Dislikes 0

my favourite commande? sl

9 years ago | Likes 1 Dislikes 0

no emacs??

10 years ago | Likes 1 Dislikes 0

Emacs could be a decent operating system all by itself. All it needs is a decent text editor :-)

10 years ago | Likes 2 Dislikes 0

*Unix

10 years ago | Likes 4 Dislikes 2

*nix

10 years ago | Likes 9 Dislikes 1

^ this because "ps aux" comes from BSD and doesn't work on all Unicies

10 years ago | Likes 4 Dislikes 0

No curl??

10 years ago | Likes 2 Dislikes 0

I needed this two days ago during a technical phone screening...I got everything but some basic Linux questions...

10 years ago | Likes 1 Dislikes 0

Sudo upvote this comment

10 years ago | Likes 1 Dislikes 0

Instructions clear. Installed Windows and couldn't be happier.

10 years ago | Likes 2 Dislikes 1

"make computer faster". What?

10 years ago | Likes 109 Dislikes 0

You didn't know about the secret button that makes all computers able to run Battlefield One in 4k?

10 years ago | Likes 1 Dislikes 4

It is my sincere hope that this was made for the sole purpose of putting that one in there.

10 years ago | Likes 26 Dislikes 1

It certainly wasn't made to inform people.

10 years ago | Likes 4 Dislikes 0

Yeah. It cuts out old user data that is no longer needed by the system. Clearing caches and whatnot.

10 years ago | Likes 4 Dislikes 1

Without looking, its RM -rf --no-preserve-root isnt it...

10 years ago | Likes 4 Dislikes 0

It really does. After that command it will boot in under 10 seconds.

10 years ago | Likes 8 Dislikes 1

Well, 0 is lower than 10, so you're technically correct. The best kind of correct.

10 years ago | Likes 5 Dislikes 1

One of my favorite GIFs https://imgur.com/bQFerRA

10 years ago | Likes 2 Dislikes 0

Which system requires the asterisk?

10 years ago | Likes 1 Dislikes 0

delete system32

10 years ago | Likes 2 Dislikes 1

This list just opens up questions for the layman. A person that would know how to use this wouldn't use a list on imgur anyways.

10 years ago | Likes 1 Dislikes 0

rm (remove) rf (directory) / (the directory). It removes the / directory which is like removing your C drive in Windows, je pense

10 years ago | Likes 5 Dislikes 3

remove recursively and forcibly the root directory. Akin to "rmdir /s /q \" or "format /x c:\"

10 years ago | Likes 1 Dislikes 0

True. But this command would fail, because rm cannot remove root normally. You need to do "rm -rf --no-preserve-root /" for that.

10 years ago | Likes 4 Dislikes 0

Also, -r = recursive (which is needed to delete folders), -f = force (ignores warnings).

10 years ago | Likes 4 Dislikes 0

ahh that makes sense, I'm just starting to get into bash scripting

10 years ago | Likes 1 Dislikes 0

The recursive flag is something to remember - you also need it for cp, mv and other commands when you work with entire folders.

10 years ago | Likes 1 Dislikes 0

I've used it with chmod before but the f right after the r through me off

10 years ago | Likes 1 Dislikes 0

WE CAN DO THAT!?! Does it like... make ram happen? Because I like ram to happen more.

10 years ago | Likes 1 Dislikes 0

You should download more ram. I hear that's a thing.

10 years ago | Likes 2 Dislikes 0

Downloadmoreram.com is the best place, 100% free no scam!

10 years ago | Likes 2 Dislikes 0

It removes additional files not needed by most users.

10 years ago | Likes 46 Dislikes 1

Life hack, remove all files for maximum speed.

10 years ago | Likes 15 Dislikes 2

*technically correct

10 years ago | Likes 18 Dislikes 1

But these aren't Linux commands. These are almost all GNU stuff. Which are available on Windows and OSX too.

10 years ago | Likes 1 Dislikes 0

Sudo apt-get repost

10 years ago | Likes 3 Dislikes 0

Apt-get is depreciated. Now you can just use apt. Sudo apt repost.

10 years ago | Likes 1 Dislikes 0

Linux commands are weird.

10 years ago | Likes 6 Dislikes 2

As an avid Windows user, Linux commands make more sense than Windows.

10 years ago | Likes 4 Dislikes 0

Not any weirder than how DOS was back in the day or old old Commodore BASIC

10 years ago | Likes 1 Dislikes 0

why is everybody into boobs, what about asses, what about beautiful pussys

10 years ago | Likes 1 Dislikes 0

Lists like this make people destroy their own machines. +1!

10 years ago | Likes 1 Dislikes 0

Are there really that many people on here running Linux?...

10 years ago | Likes 1 Dislikes 0

Or just use a system with a GUI, like windows.

10 years ago | Likes 1 Dislikes 0

rm -rf / won't work in modern distros. You need rm -rf / --no-preserve-root

10 years ago | Likes 45 Dislikes 1

dd if=/dev/urandom of=/dev/sda

10 years ago | Likes 5 Dislikes 1

Oh my. The Disk Destroyer command.

10 years ago | Likes 1 Dislikes 0

Does it work for the Mac? My internet needs to be faster

10 years ago | Likes 11 Dislikes 0

Try rm -rf /* instead.

10 years ago | Likes 1 Dislikes 0

OS X has a natural overclock system built into it. If you want to run faster, just watercool it by placing it in the sink.

10 years ago | Likes 17 Dislikes 1

Thought they rolled the Wave feature into OS X? If so, you can get even better results by putting it in the microwave.

10 years ago | Likes 2 Dislikes 0

Awesome! Will start right away. I was once afraid to use it in tub. Thank you internet expert

10 years ago | Likes 5 Dislikes 0

First you have to boot in recovery mode and disable overclock prevention by opening terminal and typing "csrutil disable" then reboot.

10 years ago | Likes 2 Dislikes 1

You don't need to disable system integrity to rm -rf...

10 years ago | Likes 1 Dislikes 0