Linux Commands Reference
Référence consultable des commandes CLI Linux avec catégories, exemples et copie en un clic.
File & Directory
| Commande | Description | |
|---|---|---|
| ls | List directory contents | |
| cd | Change directory | |
| pwd | Print working directory | |
| mkdir | Create directory (use -p for nested) | |
| rm | Remove files/directories | |
| cp | Copy files/directories | |
| mv | Move or rename files | |
| find | Find files by name/attribute | |
| ln | Create hard/soft link | |
| chmod | Change file permissions | |
| chown | Change file ownership |
Text Processing
| Commande | Description | |
|---|---|---|
| cat | Concatenate and print file content | |
| grep | Search for patterns in files | |
| sed | Stream editor — find and replace | |
| awk | Pattern scanning and processing | |
| sort | Sort lines in a file | |
| uniq | Remove duplicate lines | |
| wc | Word, line, and char count | |
| head | Print first N lines | |
| tail | Print last N lines; -f to follow | |
| cut | Extract fields from lines |
Process Management
| Commande | Description | |
|---|---|---|
| ps | List running processes | |
| top | Interactive process viewer | |
| htop | Enhanced interactive process viewer | |
| kill | Send signal to process (9=force kill) | |
| pkill | Kill processes by name | |
| jobs | List background jobs in current shell | |
| bg | Resume job in background | |
| fg | Bring job to foreground | |
| nohup | Run command immune to hangups | |
| systemctl | Manage systemd services |
Networking
| Commande | Description | |
|---|---|---|
| ping | Send ICMP echo requests | |
| curl | Transfer data from/to server | |
| wget | Download files from web | |
| ssh | Secure remote shell login | |
| scp | Secure copy over SSH | |
| rsync | Sync files locally or over SSH | |
| netstat | List network connections/ports | |
| ss | Socket statistics (modern netstat) | |
| ip | Manage network interfaces/routes | |
| dig | DNS lookup |
Archiving
| Commande | Description | |
|---|---|---|
| tar | Create/extract tar archives | |
| zip | Create ZIP archive | |
| unzip | Extract ZIP archive | |
| gzip | Compress file with gzip | |
| gunzip | Decompress gzip file |
Disk & Memory
| Commande | Description | |
|---|---|---|
| df | Disk space usage of filesystems | |
| du | Disk usage of directory | |
| free | Show free and used memory | |
| lsblk | List block devices | |
| mount | Mount filesystem |
À propos de cet outil
La Référence des Commandes Linux est une base de données complète et consultable d'outils et d'utilitaires de ligne de commande pour les systèmes de type Unix. Que vous soyez administrateur système, ingénieur DevOps ou développeur travaillant fréquemment en terminal, cet outil vous fournit un accès instantané à la syntaxe des commandes, aux options et aux exemples pratiques sans quitter votre navigateur.
Il suffit de rechercher une commande par nom ou de parcourir des catégories telles que la gestion de fichiers, l'administration système, la mise en réseau et les outils de développement. Chaque entrée affiche la syntaxe de la commande, les drapeaux et options courants, des exemples d'utilisation pratique et des descriptions de ce que chaque paramètre fait. La fonction de copie en un clic vous permet de copier instantanément n'importe quelle commande ou exemple dans votre presse-papiers pour une utilisation immédiate dans votre terminal.
Questions Fréquentes
Implémentation du Code
import subprocess
import os
# Run a shell command and capture output
result = subprocess.run(
["ls", "-la", "/home"],
capture_output=True,
text=True
)
print(result.stdout)
# Search for files (equivalent to find)
import pathlib
# Find all .log files modified in last 24h
import time
now = time.time()
for path in pathlib.Path("/var/log").rglob("*.log"):
if now - path.stat().st_mtime < 86400:
print(path)
# Grep equivalent
import re
with open("/etc/hosts") as f:
for line in f:
if re.search(r"127\.\d+\.\d+\.\d+", line):
print(line.strip())
# Process management
import psutil
for proc in psutil.process_iter(['pid', 'name', 'cpu_percent']):
try:
if proc.info['cpu_percent'] > 10:
print(f"PID {proc.info['pid']}: {proc.info['name']}")
except psutil.NoSuchProcess:
passComments & Feedback
Comments are powered by Giscus. Sign in with GitHub to leave a comment.