Windows vs Linux
/lib + /sbin = C:\Windows\system32
/home = C:\Users
/var = C:\ProgramData
/etc = registry
/tmp = C:\Windows\Temp, etc.
cd
On Windows, cd alone prints the current directory, but on Unix cd alone returns the user to his home directory.
date
time
Date on Unix prints the current date and time. Date and time on Windows print the date and time respectively, and prompt for a new date or time.
edit
vi
emacs
etc.
edit brings up a simple text editor in Windows. On Unix, the environment variable EDITOR should be set to the user's preferred editor.
exit
exit
Control-D
On Unix, pressing the control key and D simultaneously logs the user out of the shell.
explorer
nautilus
etc.
The command explorer brings up the file browser on Windows.
print
lpr
Send a file to a printer.
regedit
edit /etc/*
The Unix equivalent of the Windows registry are the files under /etc and /usr/local/etc. These are edited with a text editor rather than with a special-purpose editing program.
rmdir /s
rm -r
Windows has a y/n prompt. To get the prompt with Unix, use rm -i. The i means "interactive".
set
Set on Windows prints a list of all environment variables. For individual environment variables, set <variable> is the same as echo $<variable> on Unix.
set Path
echo $PATH
Print the value of the environment variable using set in Windows.
start
&
On Unix, to start a job in the background, use command &. On Windows, the equivalent is start command. See How to run a Windows command as a background job like Unix ?.
tasklist
"tasklist" is not available on some versions of Windows. See also this article on getting a list of processes in Windows using Perl
title
?
In Unix, changing the title of the terminal window is possible but complicated. Search for "change title xterm".
assign
ln -s
On Unix, a directory may not have multiple links, so instead a symbolic link must be created with ln -s.
Last updated