Skip to content

Cheat Sheet de Linux

Última verificación mayo 2026 — corre en tu navegador
Cheatsheet de Linux
ls

List directory contents

Archivos
ls -la

List all files with details (including hidden)

Archivos
cd <dir>

Change directory

Archivos
pwd

Print current working directory

Archivos
mkdir <dir>

Create a directory

Archivos
mkdir -p a/b/c

Create nested directories

Archivos
rm <file>

Remove a file

Archivos
rm -rf <dir>

Remove directory recursively (careful!)

Archivos
cp <src> <dst>

Copy file

Archivos
cp -r <src> <dst>

Copy directory recursively

Archivos
mv <src> <dst>

Move or rename file/directory

Archivos
touch <file>

Create empty file or update timestamp

Archivos
cat <file>

Display file contents

Archivos
head -n 20 <file>

Show first 20 lines

Archivos
tail -n 20 <file>

Show last 20 lines

Archivos
tail -f <file>

Follow file output in real time

Archivos
ln -s <target> <link>

Create symbolic link

Archivos
stat <file>

Show detailed file information

Archivos
chmod 755 <file>

Set permissions (rwxr-xr-x)

Permisos
chmod +x <file>

Make file executable

Permisos
chmod -R 644 <dir>

Set permissions recursively

Permisos
chown user:group <file>

Change file owner and group

Permisos
chown -R user:group <dir>

Change owner recursively

Permisos
umask 022

Set default permission mask

Permisos
find . -name "*.txt"

Find files by name pattern

Búsqueda
find . -type f -mtime -7

Find files modified in last 7 days

Búsqueda
find . -size +100M

Find files larger than 100MB

Búsqueda
grep "pattern" <file>

Search for pattern in file

Búsqueda
grep -r "pattern" <dir>

Search recursively in directory

Búsqueda
grep -i "pattern" <file>

Case-insensitive search

Búsqueda
grep -n "pattern" <file>

Search with line numbers

Búsqueda
which <cmd>

Show full path of a command

Búsqueda
locate <file>

Find file by name (uses database)

Búsqueda
curl <url>

Transfer data from URL

Red
curl -O <url>

Download file from URL

Red
wget <url>

Download file

Red
ping <host>

Test network connectivity

Red
ip addr

Show network interfaces and IPs

Red
ss -tuln

Show listening ports

Red
netstat -tuln

Show listening ports (legacy)

Red
scp <file> user@host:<path>

Copy file to remote host via SSH

Red
ssh user@host

Connect to remote host via SSH

Red
rsync -avz <src> <dst>

Sync files/directories efficiently

Red
ps aux

List all running processes

Procesos
ps aux | grep <name>

Find process by name

Procesos
top

Interactive process monitor

Procesos
htop

Better interactive process monitor

Procesos
kill <pid>

Send SIGTERM to process

Procesos
kill -9 <pid>

Force kill process (SIGKILL)

Procesos
killall <name>

Kill all processes by name

Procesos
bg

Resume suspended job in background

Procesos
fg

Bring background job to foreground

Procesos
nohup <cmd> &

Run command immune to hangups

Procesos
df -h

Show disk space usage (human-readable)

Disco
du -sh <dir>

Show directory size

Disco
du -sh * | sort -rh

List items by size (largest first)

Disco
mount

Show mounted filesystems

Disco
lsblk

List block devices

Disco
fdisk -l

List disk partitions

Disco
uname -a

Show system information

Sistema
hostname

Show or set system hostname

Sistema
uptime

Show how long system has been running

Sistema
whoami

Show current username

Sistema
date

Show current date and time

Sistema
cal

Show calendar

Sistema
free -h

Show memory usage

Sistema
systemctl status <service>

Check service status

Sistema
systemctl restart <service>

Restart a service

Sistema
journalctl -u <service> -f

Follow service logs

Sistema
history

Show command history

Sistema
alias ll='ls -la'

Create a command alias

Sistema
env

Show environment variables

Sistema
export VAR=value

Establecer variable de entorno

Sistema
tar czf archive.tar.gz <dir>

Create gzip compressed archive

Comprimidos
tar xzf archive.tar.gz

Extract gzip archive

Comprimidos
tar xjf archive.tar.bz2

Extract bzip2 archive

Comprimidos
zip -r archive.zip <dir>

Create zip archive

Comprimidos
unzip archive.zip

Extract zip archive

Comprimidos
gzip <file>

Compress file with gzip

Comprimidos
gunzip <file>.gz

Decompress gzip file

Comprimidos
Mostrando 80 de 80 comandos

Cheatsheet de comandos Linux

Una referencia completa y buscable de los comandos esenciales de Linux. Filtra por categoría (archivos, permisos, búsqueda, red, procesos, disco, sistema, comprimidos) o busca por palabra clave. Copia cualquier comando con un clic.

Sobre este cheatsheet

Este cheatsheet de Linux cubre los comandos de terminal más utilizados, organizados por categoría de tarea.

  • Más de 75 comandos esenciales de Linux
  • Filtrar por categoría (Archivos, Permisos, Búsqueda, Red, Procesos, Disco, Sistema, Comprimidos)
  • Búsqueda de texto completo en comandos y descripciones
  • Copia al portapapeles con un clic
  • Funciona sin conexión: todos los datos están en la página

Gratis. Sin registro. Tus datos permanecen en tu navegador. Anuncios mediante Google AdSense (con consentimiento).

Por ·

Guías relacionadas