Equivalencias Linux ↔ Windows ↔ macOS
Comandos equivalentes en Linux, Windows (CMD y PowerShell) y macOS para red, procesos, discos, servicios, usuarios y ficheros.
Gratis y sin registro · Última revisión:
Ctrl+Enter calcular · Esc limpiar foco · / buscar
Equivalencias Linux ↔ Windows ↔ macOS
Comandos equivalentes en Linux, Windows (CMD y PowerShell) y macOS para red, procesos, discos, servicios, usuarios y ficheros.
| Tarea | Linux | Windows | macOS |
|---|---|---|---|
| Listar ficheros | ls -la | dir / Get-ChildItem -Force | ls -la |
| Ver un fichero | cat f | type f / Get-Content f | cat f |
| Buscar texto | grep -r "x" . | findstr /s "x" * / Select-String | grep -r "x" . |
| Procesos | ps aux / top | tasklist / Get-Process | ps aux / top |
| Matar proceso | kill PID | taskkill /PID n /F / Stop-Process | kill PID |
| Configuración de red | ip a | ipconfig /all / Get-NetIPAddress | ifconfig |
| Rutas | ip route | route print / Get-NetRoute | netstat -rn |
| Puertos en escucha | ss -tulpn | netstat -ano / Get-NetTCPConnection -State Listen | lsof -iTCP -sTCP:LISTEN |
| DNS | dig ejemplo.com | nslookup / Resolve-DnsName | dig ejemplo.com |
| Vaciar caché DNS | resolvectl flush-caches | ipconfig /flushdns / Clear-DnsClientCache | sudo dscacheutil -flushcache |
| Traceroute | traceroute / mtr | tracert / Test-NetConnection -TraceRoute | traceroute |
| Probar un puerto | nc -zv host 443 | Test-NetConnection host -Port 443 | nc -zv host 443 |
| Espacio en disco | df -h | Get-PSDrive / Get-Volume | df -h |
| Tamaño de carpeta | du -sh dir | (Get-ChildItem -Recurse | Measure-Object Length -Sum) | du -sh dir |
| Servicios | systemctl status s | Get-Service s / sc query s | launchctl list |
| Reiniciar servicio | systemctl restart s | Restart-Service s | launchctl kickstart -k s |
| Logs del sistema | journalctl -xe | Get-EventLog / Get-WinEvent | log show |
| Usuarios | getent passwd | net user / Get-LocalUser | dscl . list /Users |
| Variables de entorno | env | set / Get-ChildItem Env: | env |
| Nombre del equipo | hostnamectl | hostname / $env:COMPUTERNAME | scutil --get ComputerName |
| Información del sistema | uname -a; lsb_release -a | systeminfo / Get-ComputerInfo | sw_vers |
| Apagar / reiniciar | shutdown -h now / reboot | shutdown /s /t 0 / Restart-Computer | sudo shutdown -h now |
| Hash de un fichero | sha256sum f | certutil -hashfile f SHA256 / Get-FileHash | shasum -a 256 f |
| Copia sincronizada | rsync -a src/ dst/ | robocopy src dst /MIR | rsync -a src/ dst/ |
| Tareas programadas | crontab -l | schtasks /query / Get-ScheduledTask | crontab -l |
| Editar el fichero hosts | /etc/hosts | C:\Windows\System32\drivers\etc\hosts | /etc/hosts |
Cómo usarla
- Rellena «Filtrar (opcional)» (o pulsa «Ejemplo» para ver uno ya hecho).
- El resultado se calcula al momento, mientras escribes. Todo se procesa en tu navegador: los datos no salen de tu equipo.
- Copia el resultado, descárgalo o comparte el enlace (incluye los datos introducidos, salvo contraseñas y ficheros).