Linux pdf cheat sheet

Download 21 Best Linux Command Cheat Sheets For Free

Last updated August 12, 2018 By Abhishek Prakash 7 Comments

This article provides you with a list of best Linux command line cheat sheets that you can download for free.

I’ll be honest with you. I am a cheat sheet fan. Especially when I am learning something new. It also helps me on topics which I know I’ll have to work on and off again.

Benefits of using Linux cheat sheets

When you learn something new, it’s normal that you won’t know all commands by heart. It comes by practice eventually, if you work on it continuously. Cheat sheets come handy for quick references in such circumstances.

You don’t have to memorize, or Google for repetitive commands each time. A little doc can be opened in a corner (either on your screen or on a printed paper) and you can have a quick glance at it.

I’ll count the cheat sheets as one of the productivity tools for Linux or for anything in general. You see, when you refer to your favorite cheat sheet time and again, you get familiar with it. You know which command is where and it helps save time.

You can always create your own cheat sheet or reference document. I always do it whatever tool/technology/product I work on. Remember, I shared my Vi cheat sheet in an earlier article.

This, of course, doesn’t mean that you’ll have to create all cheat sheets on your own. There are plenty of cheat sheets available on the internet for free on a wide variety of topics, you can search for them as you like.

However, for Linux users, I’ll take the burden of Googling and looking for the Linux command line cheat sheets.

Download best Linux command cheat sheets

Before you go on downloading these cheat sheets, let me clarify a few things:

  • I don’t own any cheat sheets. They are created and hosted on third party websites.
  • In some cases, you might have to provide your email to download the cheat sheet. It’s up to you if you want to do it or not.

1. Red Hat Linux Commands Cheat Sheet

This is the official Red Hat Linux commands cheat sheet. You can download by visiting the link below:

2. Cheat Sheet from Linux Training Academy

This three-page cheat sheet covers the regular Linux commands with description. Did I tell you that it’s an exclusive gift from Linux Training Academy to It’s FOSS readers?

You can download the cheat sheet from the link below:

3. Linux command cheat sheet from Linoxide

Linux blog Linoxide has a handy cheat sheet for you if you like dark themes. You can download it from their website directly:

4. Linux command cheat sheet from Loggly

A nice to have colorful cheat sheet that covers most frequently used Linux commands. You can download it from the link below:

Читайте также:  0x0000007b после замены материнской платы windows

5. Linux command line cheat sheet from Cheatography

Cheatography is a website where anyone can create cheat sheets with their online tools. Here is a nice cheat sheet with basic Linux commands for you:

6. Frequently used commands, Sed and Tar cheat sheets from Yes I Know It

Sylvain, who brings you the weekly Bash Challenge, has a few cheat sheets in his kitty. And those cheat sheets actually look awesome.

You can get them at the link below:

7. Unix/Linux Command Reference from FOSSwire

This is one the most popular Linux command cheat sheets on the internet. It was created back in 2007 but even after 11 years, this command reference sheet is equally helpful.

8. Linux Bash Shell Cheat Sheet

This is a 4-page cheat sheet covering the basic Linux commands. It also has the list of Linux terminal shortcuts and the bash terminal navigation shortcuts.

9. Linux cheat sheet from Pi My Life Up

Pi My Life Up is a website dedicated to Raspberry Pi and related stuff. They also have a nice one page Linux command cheat sheet in PDF format.

You can download it directly from the link below:

10. Linux Notes for Professional Book

This is not really a couple of pages long cheat sheet. It’s a Linux command reference that goes over 50 pages.

I wouldn’t call it a book because it never goes in details but it does show you all the basic Linux commands and their usage.

11. Bash Notes for Professionals book

This too is a hell lot more than just a simple cheat sheet. This is a Bash book running over 100 pages.

It lists quick examples of Bash scripting usage. Both Linux Notes and Bash Notes are from the same source and completely free.

12. UNIX Toolbox

This too is not a small cheat sheet but a collection of Unix/Linux commands and tasks which are useful for sysadmins and IT people, both beginners and advanced.

It lists many common tasks with commands to perform those tasks and a concise explanation for the same. You can download it from the link below:

13. Linux Networking Commands

In this Linux networking commands cheat sheet, you’ll get a list of Linux utilities and commands for managing servers and networks. A good reference point for Linux sysadmins.

You can download it from opensource.com by providing your email address.

14. Advanced Linux Commands Cheat Sheet from Red Hat

Earlier in this list of best Linux commands cheat sheets, you saw a cheat sheet for basic Linux commands from Red Hat.

But you don’t have to stuck with the basic one. Red Hat also has an advanced Linux commands cheat sheet. This is very specific to Red Hat though.

You can download it from the link below. You need to create an account with Red Hat before you could download it.

15. Linux and LPIC Quick Reference Guide

If you are preparing for LPIC, you would surely benefit from this free LPIC reference guide. This 120+ pages PDF has Linux commands and their explanation that will help you in your LPIC exam.

16. Linux Commands Reference from MakeUseOf

Popular website MakeUseOf also has a quick Linux command cheat sheet that lists basic commands for system info, process management, compression, networking etc.

You cam download the PDF from their website:

17. SED Stream Editor Cheat Sheet

If you have some knowledge about using SED commands, you’ll enjoy this SED cheat sheet. It is created by Peter Krumins, a prominent programmer and author of several programming books like Perl One-Liners from No Starch Press.

You can download the SED cheat sheet from the link below:

18. AWK command cheat sheet

If you use AWK command for scripting, you’ll find this AWK cheat sheet from TheGeek Stuff handy.

You can download it from the direct link below:

Читайте также:  Windows обнаружил проблему с жестким диском

19. Perf Cheat Sheet

This one is for advanced Linux users. Perf, as the name suggests, is a performance analyzing tool. If you want to know the details on the CPU at low level, perf is what you need to use.

There is a brilliant cheat sheet by Brandon Gregg but it has been even brilliantly transformed by Julia Evans. You can download it from her website:

20. Debian Reference Card

This is the official reference card from Debian. If you use Debian either as server or desktop, this Debian reference card will come handy.

21. Linux Terminal Cheat Sheet

This is one of the quick reference PDF that lists frequently used Linux commands.

You can download it from the link below:

Your favorites?

Which Linux cheat sheet do you like the most here? Do you have any favorites that you would like to add to this list? Do share your views.

Like what you read? Please share it with others.

Источник

Linux Commands Cheat Sheet: With Examples

Home » SysAdmin » Linux Commands Cheat Sheet: With Examples

Linux commands may seem intimidating at first glance if you are not used to using the terminal. There are many commands for performing operations and processes on your Linux system.

No matter whether you are new to Linux or an experienced user, having a list of common commands close at hand is helpful.

In this tutorial, you will find commonly used Linux commands as well as a downloadable cheat sheet with syntax and examples.

Important: Depending on your system setup, some of the commands below may require invoking sudo to be executed.

Linux Commands Cheat Sheet PDF

If you prefer having all the commands on a one-page reference sheet, we created a helpful Linux command line cheat sheet. You can save the list of linux commands in PDF format by clicking the Download Linux Cheat Sheet button below.

Linux Commands List

The commands found in the downloadable cheat sheet are listed below.

Hardware Information

Show bootup messages:

See CPU information:

Display free and used memory with:

List hardware configuration information:

See information about block devices:

Show PCI devices in a tree-like diagram:

Display USB devices in a tree-like diagram:

Show hardware information from the BIOS:

Display disk data information:

Conduct a read-speed test on device/disk:

Test for unreadable blocks on device/disk:

Searching

Recursively search for a pattern in a directory:

Find all files and directories related to a particular name:

List names that begin with a specified character [a] in a specified location [/folder/location] by using the find command:

See files larger than a specified size [+100M] in a folder:

File Commands

List files in the directory:

List all files (shows hidden files):

Show directory you are currently working in:

Remove a directory recursively:

Recursively remove a directory without requiring confirmation:

Recursively copy the contents of one file to a second file:

Rename [file_name1] to [file_name2] with the command:

Create a new file:

Show the contents of a file:

Append file contents to another file:

Display the first 10 lines of a file with:

Show the last 10 lines of a file:

Encrypt a file:

Decrypt a file:

Show the number of words, lines, and bytes in a file:

Note: Want to read more about file creation? Check out an article about how to create a file in Linux using the command line.

Directory Navigation

Move up one level in the directory tree structure:

Change directory to $HOME :

Change location to a specified directory:

File Compression

Archive an existing file:

Create a gzip compressed tar file by running:

Compress a file with the .gz extension:

File Transfer

Synchronize the contents of a directory with a backup directory using the rsync command:

Users

See details about the active users:

Show last system logins:

Display who is currently logged into the system with the who command:

Show which users are logged in and their activity:

Add a new group by typing:

Add a new user:

Add a user to a group:

Temporarily elevate user privileges to superuser or root using the sudo command:

Читайте также:  Fat или mac os

Delete a user:

Modify user information with:

Note: If you want to learn more about users and groups, take a look at our article on how to add a user to a group in Linux.

Package Installation

Find a package by a related keyword:

Show package information and summary:

Install a package using the YUM package manager:

Install a package using the DNF package manager:

Install an .rpm package from a local file:

Remove an .rpm package:

Install software from source code:

See a snapshot of active processes:

Show processes in a tree-like diagram:

Display a memory usage map of processes:

See all running processes:

Terminate a Linux process under a given ID:

Terminate a process under a specific name:

Terminate all processes labelled “proc”:

List and resume stopped jobs in the background:

Bring the most recently suspended job to the foreground:

Bring a particular job to the foreground:

List files opened by running processes:

Note: If you want to learn more about shell jobs, how to terminate jobs or keep them running after you log off, check out our article on how to use disown command.

System Information

Show system information:

Display how long the system has been running, including load average:

See system hostname:

Show the IP address of the system:

List system reboot history:

See current time and date:

Query and change the system clock with:

Show current calendar (month and day):

List logged in users:

See which user you are using:

Show information about a particular user:

Disk Usage

You can use the df and du commands to check disk space in Linux.

See free and used space on mounted systems:

Show free inodes on mounted filesystems:

Display disk partitions, sizes, and types with the command:

Show disk usage of the directory you are currently in:

Display target mount point for all filesystem:

Mount a device:

SSH Login

Connect to host as user:

Securely connect to host via SSH default port 22:

Connect to host using a particular port:

Connect to host via telnet default port 23:

Note: For a detailed explanation of SSH Linux Commands, refer to our 19 Common SSH Commands in Linux tutorial.

File Permission

Chown command in Linux changes file and directory ownership.

Assign read, write, and execute permission to everyone:

Give read, write, and execute permission to owner, and read and execute permission to group and others:

Assign full permission to owner, and read and write permission to group and others:

Change the ownership of a file:

Change the owner and group ownership of a file:

Note: To learn more about how to check and change permissions, refer to our Linux File Permission Tutorial.

Network

List IP addresses and network interfaces:

Assign an IP address to interface eth0:

Display IP addresses of all network interfaces with:

See active (listening) ports with the netstat command:

Show tcp and udp ports and their programs:

Display more information about a domain:

Show DNS information about a domain using the dig command:

Do a reverse lookup on domain:

Do reverse lookup of an IP address:

Perform an IP lookup for a domain:

Show the local IP address:

Download a file from a domain using the wget command:

Linux Keyboard Shortcuts

Kill process running in the terminal:

Stop current process:

The process can be resumed in the foreground with fg or in the background with bg .

Cut one word before the cursor and add it to clipboard:

Cut part of the line before the cursor and add it to clipboard:

Cut part of the line after the cursor and add it to clipboard:

Paste from clipboard:

Recall last command that matches the provided characters:

Run the previously recalled command:

Exit command history without running a command:

Run the last command again:

Log out of current session:

The more you use Linux commands, the better you will get at remembering them. Do not stress about memorizing their syntax; use our cheat sheet.

Whenever in doubt, refer to this helpful guide for the most common Linux commands.

Источник

Оцените статью