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.

No curl??

9 years ago | Likes 2 Dislikes 0

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

9 years ago | Likes 2 Dislikes 1

Forgot top or even better, htop for process management.

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 1 Dislikes 0

:(){:|:&};:

5 years ago | Likes 1 Dislikes 0

nice... thanks man

6 years ago | Likes 1 Dislikes 0

Realized I actually just know all this now..

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 1 Dislikes 0

"man man" would have been enough

9 years ago | Likes 2 Dislikes 0

Do you even Linux, bro?

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 1 Dislikes 0

Sudo upvote this comment

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 1 Dislikes 0

Sorry but short cuts with the joke "Make computer faster" by deleting the entire disk is lame esp when a cheatsheet is meant for new users.

9 years ago | Likes 14 Dislikes 1

no emacs??

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 2 Dislikes 0

warms my heart and neckbeard to see a linux post on imgur

9 years ago | Likes 13 Dislikes 2

*neckbeard intensifies*

9 years ago | Likes 3 Dislikes 0

*Unix

9 years ago | Likes 4 Dislikes 2

*nix

9 years ago | Likes 9 Dislikes 1

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

9 years ago | Likes 4 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.

9 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.

9 years ago | Likes 2 Dislikes 0

Your username says it all

9 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.

9 years ago | Likes 2 Dislikes 0

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

9 years ago | Likes 1 Dislikes 0

Linux commands are weird.

9 years ago | Likes 6 Dislikes 2

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

9 years ago | Likes 4 Dislikes 0

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

9 years ago | Likes 1 Dislikes 0

Sudo apt-get repost

9 years ago | Likes 3 Dislikes 0

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

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 45 Dislikes 1

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

9 years ago | Likes 5 Dislikes 1

Oh my. The Disk Destroyer command.

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 11 Dislikes 0

Try rm -rf /* instead.

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 2 Dislikes 1

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

9 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.

9 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.

9 years ago | Likes 2 Dislikes 0

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

9 years ago | Likes 5 Dislikes 0

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

9 years ago | Likes 5 Dislikes 1

sudo !!

9 years ago | Likes 4 Dislikes 0

Password:

9 years ago | Likes 4 Dislikes 0

"make computer faster". What?

9 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?

9 years ago | Likes 1 Dislikes 4

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

9 years ago | Likes 4 Dislikes 1

delete system32

9 years ago | Likes 2 Dislikes 1

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

9 years ago | Likes 4 Dislikes 0

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

9 years ago | Likes 8 Dislikes 1

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

9 years ago | Likes 5 Dislikes 1

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

9 years ago | Likes 26 Dislikes 1

It certainly wasn't made to inform people.

9 years ago | Likes 4 Dislikes 0

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

9 years ago | Likes 2 Dislikes 0

Which system requires the asterisk?

9 years ago | Likes 1 Dislikes 0

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.

9 years ago | Likes 1 Dislikes 0

It removes additional files not needed by most users.

9 years ago | Likes 46 Dislikes 1

Life hack, remove all files for maximum speed.

9 years ago | Likes 15 Dislikes 2

*technically correct

9 years ago | Likes 18 Dislikes 1

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

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 2 Dislikes 0

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

9 years ago | Likes 2 Dislikes 0

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

9 years ago | Likes 5 Dislikes 3

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

9 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.

9 years ago | Likes 4 Dislikes 0

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

9 years ago | Likes 4 Dislikes 0

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

9 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.

9 years ago | Likes 1 Dislikes 0

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

9 years ago | Likes 1 Dislikes 0