← Blog

Linux Windows Equivalent Commands

Tabla de equivalencias entre comandos de Windows y Linux/Unix: administración de archivos, red, procesos y sistema.

Fuente: lemoda.net

Windows command Unix command Notes
arp arp
assign ln Create a file link
assign ln -s On Unix, a directory may not have multiple links, so instead a<br>symbolic link must be created with ln -s.
assoc file
at atbatchcron See also schtasks.
attrib chownchmod Sets ownership on files and directories
cd cd On Windows, cd alone prints the current directory, but on<br>Unix cd alone returns the user to his home directory.
cd pwd On Windows, cd alone prints the current directory.
chkdsk fsck Checks filesystem and repairs filesystem corruption on hard drives.
cls clearControl-L Clear the terminal screen
copy cp
time">datetime date Date on Unix prints the current date and<br>time. Date and time on Windows print the<br>date and time respectively, and prompt for a new date or time.
del rm
deltree rm -r Recursively deletes entire directory tree
dir ls "dir" also works on some versions of Unix.
F7 key">doskey /hF7 key history The Unix history is part of the Bash shell.
edit viemacsetc. edit brings up a simple text editor in Windows. On Unix,<br>the environment variable EDITOR should be set to the<br>user's preferred editor.
exit exitControl-D On Unix, pressing the control key and D simultaneously logs the user<br>out of the shell.
explorer nautilusetc. The command explorer brings up the file browser on<br>Windows.
fc diff
find grep
ftp ftp
help man "help" by itself prints all the commands
hostname hostname
ipconfig /all ifconfig -a The /all option lets you get the MAC address of the Windows PC
mem top Shows system status
mkdir mkdir
more moreless
move mv
net session wwho
net statistics uptime
nslookup nslookup
ping ping
print lpr Send a file to a printer.
shutdown -r">rebootshutdown -r shutdown -r
regedit edit /etc/* The Unix equivalent of the Windows registry are the files under<br>/etc and /usr/local/etc. These are edited<br>with a text editor rather than with a special-purpose editing program.
rmdir rmdir
rmdir /s rm -r Windows has a y/n prompt. To get the prompt with Unix, use rm<br>-i. The i means "interactive".
schtasks atbatchcron
set env <br><br>Set on Windows prints a list of all environment<br>variables. For individual environment variables, set <variable><br>is the same as echo $<variable> on Unix.<br><br>
set Path echo $PATH Print the value of the environment variable using set in<br>Windows.
shutdown shutdown Without an option, the Windows version produces a help message
shutdown -s shutdown -h Also need -f option to Windows if logged in remotely
sort sort
start & On Unix, to start a job in the background, use command<br>&. On Windows, the equivalent is start<br>command. See How to run a Windows command as a background job like Unix ?.
systeminfo uname -a
tasklist ps "tasklist" is not available on some versions of Windows. See<br>also this article on<br>getting a list of processes in Windows using Perl
title ? In Unix, changing the title of the terminal window is possible but<br>complicated. Search for "change title xterm".
tracert traceroute
tree findls -R On Windows, use tree
type cat
ver uname -a
xcopy cp -R Recursively copy a directory tree