Linux Commands

This is a custom Linux cheat cheat poster with a few of the most used command.

commands Learn Linux
  • Files & Navigation

    ×

    How to do this task:
    Subtasks:
  • Is - directory listing

    ×

    How to do this task:
    Subtasks:
  • la-l - formatted listing

    ×

    How to do this task:
    Subtasks:
  • cd dir - change directory

    ×

    How to do this task:
    Subtasks:
  • cd../dir - change to parent dir

    ×

    How to do this task:
    Subtasks:
  • cd - returns to home dir

    ×

    How to do this task:
    Subtasks:
  • pwd - current dir

    ×

    How to do this task:
    Subtasks:
  • mkdir dir - creates a dir

    ×

    How to do this task:
    Subtasks:
  • rm file - deletes file

    ×

    How to do this task:
    Subtasks:
  • rm -f dir - removes dir

    ×

    How to do this task:
    Subtasks:
  • rm -r delete dir

    ×

    How to do this task:
    Subtasks:
  • cp file 1 file2 - copy 1 to 2

    ×

    How to do this task:
    Subtasks:
  • mv filel file2 - move 1 to dir as 2

    ×

    How to do this task:
    Subtasks:
  • touch file - updates Or Create file

    ×

    How to do this task:
    Subtasks:
  • cat file - displays content of file

    ×

    How to do this task:
    Subtasks:
  • cat > file - writes input to file

    ×

    How to do this task:
    Subtasks:
  • cat >> file - append input to file

    ×

    How to do this task:
    Subtasks:
  • tail -f file - outputs content as it grows

    ×

    How to do this task:
    Subtasks:
  • System Info

    ×

    How to do this task:
    Subtasks:
  • uptime - shows current uptime

    ×

    How to do this task:
    Subtasks:
  • date - shows date and time

    ×

    How to do this task:
    Subtasks:
  • who am I - shows loggin status

    ×

    How to do this task:
    Subtasks:
  • w - who is online

    ×

    How to do this task:
    Subtasks:
  • cat /proc/cpuinfo - CPU info

    ×

    How to do this task:
    Subtasks:
  • cat /proc/meminfo - memory info

    ×

    How to do this task:
    Subtasks:
  • free - memory and swap usage

    ×

    How to do this task:
    Subtasks:
  • du - directory space usage

    ×

    How to do this task:
    Subtasks:
  • du-sh - readable size in GB

    ×

    How to do this task:
    Subtasks:
  • df - disk usage

    ×

    How to do this task:
    Subtasks:
  • uname-a - kernel co fig

    ×

    How to do this task:
    Subtasks:
  • Permissions

    ×

    How to do this task:
    Subtasks:
  • chmod octal file - change permissions of file

    ×

    How to do this task:
    Subtasks:
  • 4 -read (r)

    ×

    How to do this task:
    Subtasks:
  • 2 - write (w)

    ×

    How to do this task:
    Subtasks:
  • 1 - execute (x)

    ×

    How to do this task:
    Subtasks:
  • order - owner/group/world

    ×

    How to do this task:
    Subtasks:
  • chmod 777 - rwx everyone

    ×

    How to do this task:
    Subtasks:
  • chmod 755 - rw for owner, rx for world

    ×

    How to do this task:
    Subtasks:
  • Processes

    ×

    How to do this task:
    Subtasks:
  • ps - current active process

    ×

    How to do this task:
    Subtasks:
  • ps aux - detailed outputs

    ×

    How to do this task:
    Subtasks:
  • kill pids - kills process with id

    ×

    How to do this task:
    Subtasks:
  • kill all proc - kills all process

    ×

    How to do this task:
    Subtasks:
  • named proc

    ×

    How to do this task:
    Subtasks:
  • Networking

    ×

    How to do this task:
    Subtasks:
  • whois domain - get whois for domain

    ×

    How to do this task:
    Subtasks:
  • ping host - pings host

    ×

    How to do this task:
    Subtasks:
  • dig domain - gets DNS for domain

    ×

    How to do this task:
    Subtasks:
  • dig -x host - reserve lookup host

    ×

    How to do this task:
    Subtasks:
  • wget file - download file

    ×

    How to do this task:
    Subtasks:
  • wget -c file - continue stopped download

    ×

    How to do this task:
    Subtasks:
  • ssh user@host - connects as host

    ×

    How to do this task:
    Subtasks:
  • ssh -p port user@host - connects using port

    ×

    How to do this task:
    Subtasks:
  • ssh -D user@host - connects & binds port

    ×

    How to do this task:
    Subtasks:
  • Compressing

    ×

    How to do this task:
    Subtasks:
  • tar cf file.tar files - change file to file.tar

    ×

    How to do this task:
    Subtasks:
  • tar xf file.tar - untar in current dir

    ×

    How to do this task:
    Subtasks:
  • tar tf file.tar - shows archive contents

    ×

    How to do this task:
    Subtasks:

242 copy saved

242 copies saved