Vai al contenuto
🛠️ToolsShed

Linux Commands Reference

Riferimento dei comandi Linux CLI cercabile con categorie, esempi e copia con un clic.

File & Directory

ComandoDescrizione
lsList directory contents
cdChange directory
pwdPrint working directory
mkdirCreate directory (use -p for nested)
rmRemove files/directories
cpCopy files/directories
mvMove or rename files
findFind files by name/attribute
lnCreate hard/soft link
chmodChange file permissions
chownChange file ownership

Text Processing

ComandoDescrizione
catConcatenate and print file content
grepSearch for patterns in files
sedStream editor — find and replace
awkPattern scanning and processing
sortSort lines in a file
uniqRemove duplicate lines
wcWord, line, and char count
headPrint first N lines
tailPrint last N lines; -f to follow
cutExtract fields from lines

Process Management

ComandoDescrizione
psList running processes
topInteractive process viewer
htopEnhanced interactive process viewer
killSend signal to process (9=force kill)
pkillKill processes by name
jobsList background jobs in current shell
bgResume job in background
fgBring job to foreground
nohupRun command immune to hangups
systemctlManage systemd services

Networking

ComandoDescrizione
pingSend ICMP echo requests
curlTransfer data from/to server
wgetDownload files from web
sshSecure remote shell login
scpSecure copy over SSH
rsyncSync files locally or over SSH
netstatList network connections/ports
ssSocket statistics (modern netstat)
ipManage network interfaces/routes
digDNS lookup

Archiving

ComandoDescrizione
tarCreate/extract tar archives
zipCreate ZIP archive
unzipExtract ZIP archive
gzipCompress file with gzip
gunzipDecompress gzip file

Disk & Memory

ComandoDescrizione
dfDisk space usage of filesystems
duDisk usage of directory
freeShow free and used memory
lsblkList block devices
mountMount filesystem

Informazioni sullo strumento

La Guida di Riferimento dei Comandi Linux è un database completo e ricercabile di strumenti e utilità da riga di comando per sistemi tipo Unix. Che tu sia un amministratore di sistema, un ingegnere DevOps o uno sviluppatore che lavora frequentemente in terminale, questo strumento ti fornisce accesso istantaneo alla sintassi dei comandi, alle opzioni e agli esempi pratici senza lasciare il tuo browser.

Semplicemente cerca un comando per nome o sfoglia categorie come gestione dei file, amministrazione del sistema, rete e strumenti di sviluppo. Ogni voce mostra la sintassi del comando, i flag e le opzioni comuni, esempi di utilizzo pratico e descrizioni di cosa fa ogni parametro. La funzione copia con un clic ti consente di copiare istantaneamente qualsiasi comando o esempio negli appunti per usarlo immediatamente nel tuo terminale.

Domande Frequenti

Implementazione del Codice

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:
        pass

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.