Linux

Linux commands for managing system, files, and processes

80 commands

Commands

80 commands available
Resources

Learn Linux Deeper

Master Linux commands and concepts

linux

List Directory Contents

List files and directories

ls
filesystem
basic
linux

Change Directory

Change the current working directory

cd
filesystem
basic
linux

Print Working Directory

Show current directory path

pwd
filesystem
basic
linux

Copy Files

Copy files and directories

cp
filesystem
basic
linux

Move/Rename Files

Move or rename files and directories

mv
filesystem
basic
linux

Remove Files

Remove files or directories

rm
filesystem
basic
linux

Create File

Create empty file or update timestamps

touch
filesystem
basic
linux

Make Directory

Create new directories

mkdir
filesystem
basic
linux

Concatenate Files

Display file contents

cat
filesystem
text
linux

View File Contents

View file contents interactively

less
filesystem
text
linux

Show File Start

Output first part of files

head
filesystem
text
linux

Show File End

Output last part of files

tail
filesystem
text
linux

Search Text

Search for patterns in files

grep
text
search
linux

Change Permissions

Change file permissions

chmod
permissions
security
linux

Change Owner

Change file owner and group

chown
permissions
security
linux

System Information

Print system information

uname
system
info
linux

Disk Space

Report file system disk space usage

df
system
disk
linux

Directory Space

Estimate file space usage

du
system
disk
linux

Memory Usage

Display memory usage

free
system
memory
linux

Process Activity

Display Linux processes

top
system
monitoring
linux

Process Status

Report current processes

ps
process
system
linux

Terminate Process

Terminate processes by ID

kill
process
system
linux

Kill by Name

Kill processes by name

pkill
process
system
linux

Background Process

Run process in background

bg
process
job
linux

Foreground Process

Bring job to foreground

fg
process
job
linux

Network Test

Test network connectivity

ping
network
diagnostics
linux

Network Interfaces

Configure network interfaces

ifconfig
network
configuration
linux

Network Statistics

Print network connections

netstat
network
monitoring
linux

Secure Shell

Remote login program

ssh
network
remote
linux

Secure Copy

Securely copy files between hosts

scp
network
file-transfer
linux

Archive Files

Tape archive utility

tar
archive
compression
linux

File Compression

Compress files

gzip
compression
linux

Package Files

Package and compress files

zip
archive
compression
linux

Add User

Create new user account

useradd
user
administration
linux

Change Password

Change user password

passwd
user
security
linux

Modify User

Modify user account

usermod
user
administration
linux

APT Package Tool

Debian package management

apt
package
debian
linux

YUM Package Manager

RPM package management

yum
package
rhel
linux

Find Files

Search for files in directory hierarchy

find
filesystem
search
linux

Schedule Tasks

Schedule periodic background jobs

crontab
system
automation
linux

Command Aliases

Create command shortcuts

alias
shell
productivity
linux

Command History

Show command history

history
shell
productivity
linux

Remote Sync

Synchronize files and directories

rsync
filesystem
backup
sync
linux

HTTP Client

Transfer data to/from servers

curl
network
http
api
linux

Web Downloader

Download files from web

wget
network
download
web
linux

Interactive Process Viewer

Enhanced version of top

htop
system
monitoring
processes
linux

Vim Editor

Vi improved text editor

vim
text
editor
vi
linux

Nano Editor

Simple text editor

nano
text
editor
simple
linux

OpenSSL

SSL/TLS toolkit

openssl
ssl
security
encryption
linux

Systemd Control

Control systemd services

systemctl
system
services
systemd
linux

AWK Text Processor

Pattern scanning and processing language

awk
text
processing
scripting
linux

Stream Editor

Stream editor for filtering and transforming text

sed
text
editing
stream
linux

Sort Lines

Sort lines of text files

sort
text
sorting
ordering
linux

Remove Duplicates

Report or omit repeated lines

uniq
text
duplicates
filtering
linux

Extract Columns

Remove sections from each line of files

cut
text
columns
extraction
linux

Word Count

Print newline, word, and byte counts

wc
text
counting
statistics
linux

Translate Characters

Translate or delete characters

tr
text
translate
transform
linux

Build Command Lines

Build and execute command lines from standard input

xargs
command
pipeline
execution
linux

Locate Files

Find files by name using database

locate
filesystem
search
database
linux

Find Command Location

Locate a command

which
command
path
location
linux

Locate Binary and Manual

Locate binary, source, and manual page files

whereis
command
binary
manual
linux

Create Links

Make links between files

ln
filesystem
links
symbolic
linux

Mount Filesystems

Mount a filesystem

mount
filesystem
mount
disk
linux

Unmount Filesystems

Unmount a filesystem

umount
filesystem
unmount
disk
linux

Disk Partitioning

Manipulate disk partition table

fdisk
disk
partitioning
admin
linux

List Block Devices

List information about block devices

lsblk
disk
block
devices
linux

List Open Files

List open files and processes

lsof
process
files
monitoring
linux

No Hangup

Run commands immune to hangups

nohup
process
background
persistent
linux

Screen Terminal Multiplexer

Terminal multiplexer program

screen
terminal
multiplexer
session
linux

Terminal Multiplexer

Modern terminal multiplexer

tmux
terminal
multiplexer
session
linux

List Active Jobs

Display active jobs

jobs
process
jobs
shell
linux

Switch User

Switch to another user account

su
user
switch
security
linux

Execute as Another User

Execute commands as another user

sudo
user
privileges
security
linux

Show User/Group IDs

Print user and group IDs

id
user
group
identity
linux

Show User Groups

Print group names a user is in

groups
user
group
membership
linux

Show Logged Users

Show who is logged on

who
system
users
monitoring
linux

Show User Activity

Show who is logged in and what they are doing

w
system
users
activity
linux

System Uptime

Show system uptime and load

uptime
system
uptime
load
linux

Date and Time

Display or set system date

date
system
time
date
linux

Calendar

Display calendar

cal
system
calendar
date