Intermediate LInux commands cheat sheet cover 2022

Intermediate Linux Cheat Sheet

Alex Soto Bueno and Bob Reselman


Last updated: Sept. 6, 2022

Ready to level up your Linux knowledge? This cheat sheet presents a collection of Linux commands and executables for developers and system administrators who want to move beyond the basics. You’ll find tips on managing processes, users, and groups on Linux, as well as monitoring disk and network usage. 

Download the Intermediate Linux Cheat Sheet to gain an enhanced understanding of:

  • Console and output management commands: 
    • history
    • more
    • top
  • Working with disks, devices, and volumes on Linux:
    • df
    • du
  • Managing files and directories on Linux:
    • find
    • pwd
    • alias
    • awk
    • diff
    • sed
  • Network commands:
    • hostname
    • nslookup
    • traceroute
  • Commands for working with the Red Hat Enterprise Linux operating system:
    • sestatus
    • uname
  • User and group commands:
    • users
    • useradd
    • userdel
    • usermode
    • groups
    • gpasswd
    • groupadd
    • groupdel

With Red Hat Developer cheat sheets, you get essential information right at your fingertips so you can work faster and smarter. Easily learn new technologies and coding concepts and quickly find the answers you need.



traceroute [options] <target address or domain_name>

Reports the route that a packet takes in hops to move through the Internet to reach its destination.

The program traceroute is not part of Red Hat Enterprise Linux (RHEL) by default. It must be installed using:

sudo dnf install traceroute


The following example reports the route from the local machine to The -m option is used to limit the output to the first five hops:

$ traceroute -m 5

traceroute to (, 5 hops max, 60 byte


1 _gateway ( 0.599 ms 0.514 ms 0.656 ms

2 ( 11.974 ms 11.874 ms

17.793 ms

3 ( 19.294 ms 20.242 ms

19.224 ms

4 ( 18.984 ms 19.888 ms 19.969 ms

5 ( 13.575 ms 19.673 ms

13.579 ms

RHEL management commands

The commands in this section apply to working with the Red Hat Enterprise Linux operating system.


This program is used to report status information about a computer or virtual machine running SELinux.

sestatus [options]


The following example invokes the program sestatus and displays the default response: 

$$ sestatus

SELinux status: enabled

SELinuxfs mount: /sys/fs/selinux

SELinux root directory: /etc/selinux

Loaded policy name: targeted

Current mode: enforcing

Mode from config file: enforcing

Policy MLS status: enabled

Policy deny_unknown status: allowed

Memory protection checking: actual (secure)

Max kernel policy version: 33

Related Cheat sheets