The following table shows a sampling of Windows 2000 and UNIX commands and tools which perform similar functions.
Note
This listing is intended to give you a starting place for locating similar functionality. Specific command functions and behavior may not match up exactly. Both UNIX and Windows 2000 command line tools can contain many switches. In addition, a command might behave differently depending on the flavor of UNIX on which it runs.
Italic: Indicates you will find this tool in the Services for UNIX product. This product includes a subset of the tools available from Mortice Kern System (MKS). Search for Services for UNIX at the Windows 2000 Server Web site.
Bold: Indicated tool found in both Services for UNIX and either the Windows 2000 Resource Kit or the operating system.
UNIX | Windows | Windows location | Command Description |
---|---|---|---|
arp | arp |
\winnt\system32\ntcmds.hlp | TCP/IP diagnostics: Displays and modifies the ARP cache (the IP address-to-hardware address translation table) |
basename | basename | Services for Unix | Strip a directory and suffix from a file name. |
cat | cat | Print one or more files to standard output. | |
cc | cc | Compile one or more C source files. | |
chgrp | Change the group ownership of a file. | ||
chmod | chmod, perms (display perm. only), attrib | Services for Unix, operating system | Change the access mode of one or more files (rwx). |
chown | chown | Services for Unix | Change the owner of a file. |
compress/uncompress | compress/expand | Compact a file or files so that they are smaller. | |
cp cp -p | cp robocopy |
Copy a file. | |
cron;crontab,at,batch | soon, at, Task Scheduler (GUI) | Operating system | Scheduler for kicking off processes, scripts or programs. |
csh | Runs the C shell or runs a script of stored commands. | ||
date | now | Displays the date. (Windows: the date command is used to change the date) | |
dd | ntbackup | Operating system | Backup |
df | Click My Computer|Properties. | Reports total number of free disk blocks on all mounted file systems. | |
diff, sdiff,cmp, dircmp | windiff (GUI, Support Tools), fc, comp | Operating system | Compare the contents of files and/or directories. |
du | diskuse, [GUI] open My Computer|Properties|General tab. | Disk usage. | diskuse, |
echo | echo | Display text back to standard out. | |
edit | edit | Start a command line editor. Note Has a text GUI on Windows. | |
egrep | egrep | Services for Unix | Locate text within a file or files that match the specified regular expression. Doesn't support all regular expressions. |
exportfs | net share | ||
fdisk | Disk Administrator | ||
fgrep | fgrep, find, Start|Search (GUI) | Services for Unix, operating system | Locate text within one or more files that match a literal, text string pattern. Does not support regular expressions. |
file | exetype, filever (Support Tools), Windows Explorer: right-click application, then select quick view from menu. | Operating system, operating system (GUI) | Display the file type. |
find | find, Start|Search | Services for Unix | Locate a file. |
finger | finger | Operating system--\winnt\system32 | TCP/IP connectivity: Displays information about users. User information can be displayed for remote computers as well as for the local computer. |
ftp | ftp | Operating system--\winnt\system32 | TCP/IP connectivity: Transfer a file between systems. |
fsck | chkdsk | Operating system--\winnt\system32 | |
grep | grep, findstr, find | Locate text within a file or files that match the specified regular expression. | |
groups | showgrps, findgrp, showmbrs | Display which groups a user belongs to. | |
head | head | Services for Unix | Display the first n lines of a file. |
history | history | Services for Unix (sh) | Show the command history. (sh) |
hostname | hostname | Operating system--\winnt\system32 | TCP/IP diagnostics: Displays the name of the local host. |
ipconfig | ipconfig /all, getmac | Operating system--\winnt\system32 | TCP/IP diagnostics: Displays the TCP/IP configuration for each adapter specified and is used to release and renew DHCP IP address leases. Get the MAC address of a specific computer. |
join | Joins the lines of two files. | ||
kill | kill (Support Tools), rkill, wrkill (GUI), pviewer (GUI, Support Tools), Task Manager (GUI) | Operating system | Terminate a specified PID or job ID. |
ksh | ksh | Services for Unix | Runs a Korn shell. |
last | usrstat | .... | |
lint | A C program verifier. | ||
list | list | Services for Unix | Create a list. |
ln ln -s | ln Right-click object, select Create Shortcut. |
Services for Unix | Creates a link to a file. |
lp | lpr (for LPD-based printers), print file (text files), File|Print (GUI) | Print a file (System V). | |
lpq | lpq | operating system--\winnt\system32 | Lists the status of all the available printers on BSD UNIX. |
lpr | lpr, print file (text files) | Operating system--\winnt\system32 | Prints a file (BSD). |
lpstat | Lists status of all available printers System V systems. | ||
ls | ls | Services for Unix | List the contents of a directory. |
mkdir | mkdir | Services for Unix | Create a directory. |
more | more | Services for Unix | Displays text one screen at a time. |
mount | mountvol | Operating system | |
mv | mv,move or rename | Services for Unix, operating system | Renames a file or moves it from one directory to another directory. |
nbstat | nbstat | Operating system--\winnt\system32 | TCP/IP diagnostics: This is a diagnostic tool that displays protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP). |
netstat | netstat | Operating system--\winnt\system32 | TCP/IP diagnostics: Displays TCP/IP protocol statistics, current connections, and the local routing table. |
nice | Task Manager (GUI), start | Change execution priority for command. | |
nslookup | nslookup | DNS: Query name servers. Resolve IP Addresses to Host Names. Resolve Host Name to IP Address(es). Returns Aliases as well as the Host's Fully Qualified Domain Name (FQDN). | |
perl | perl | Services for Unix | Run perl. |
ping | ping | Operating system--\winnt\system32 | TCP/IP diagnostics: Determines whether a specific IP address is accessible. It works by sending a packet to the specified address and waiting for a reply. |
ps | tlist (Support Tools), pstat, pmon (Support Tools), pulist | List processes. | |
pwd | cd (no arguments) | List the current directory. | |
quota | My Computer|Properties|Quota tab | Display the disk quota available to users. | |
rarp | TCP/IP diagnostics: How to get your own IP address, when all you know is your link address. Used to query a router table. | ||
rcp | rcp | Operating system--\winnt\system32 | TCP/IP connectivity: Copies files between computer. |
rexec | rexec | Operating system--\winnt\system32 | TCP/IP connectivity: The rexec and rexecd programs allow remote execution. Unlike rlogin, rsh, and rcp, rexecd does not use the trusted host mechanism. |
rlogin | telnet | Services for Unix, operating system, Resource Kit | Connects the local host with a remote host |
rm | rm, erase, del | Services for Unix, operating system | Delete a file. |
rmdir | rmdir, rmdir | Services for Unix, operating system | Delete a directory. |
route | route | Operating system--\winnt\system32 | TCP/IP diagnostics: Displays and modifies the local route table. |
rsh | rshsvc | TCP/IP connectivity: Runs a command on another computer. | |
script | [scenario recorder in visual test is the only thing so far...] | Capture a record of a command session to a text file. | |
sed | sed | Services for Unix | Stream editor. |
setenv | setx, set, My Computer|Properties|Advanced tab, select Environment Variables (GUI) | Set user environment variables. | |
sh | sh | Services for Unix | Runs the Bourne shell. |
sort | sort, sort | Operating system--\winnt\system32 | Sort characters. |
stop | Suspend the current background job or background job specified by job ID | ||
su | su | Log on as a different user. | |
suspend | Suspend the current foreground job. (Often used with su.) | ||
tail | tail | Services for Unix | Display the last n lines of a file. |
tar | Consolidate files and directories into a single file. | ||
tee | tee | Services for Unix | Duplicate stdin; send one copy to standard output and another copy to files. |
telnet | telnet | Operating system--\winnt\system32 | TCP/IP connectivity: Provides a terminal emulation session. |
top | pmon (Support Tools) | Display dynamic CPU statistics. | |
touch | touch | Update file access and modification times. | |
tracert | tracert | Operating system--\winnt\system32 | TCP/IP diagnostics: Traces the route followed to a destination showing how many hops the packet requires to reach the host and how long each hop takes. |
uniq | uniq | Services for Unix | Prints the unique lines in a sorted file. |
uptime | srvinfo -s, net statistics (in first few lines) | List how long system has been up. | |
vi | vi | Start the vi editor. | |
w | Print summaries of system usage. (Combination of uptime, who, and ps -a.) | ||
wait | Wait for all background processes to complete, and report their termination status. Used in shell scripts. | ||
wc | wc | Services for Unix | Count the number of words in a file. |
who | srvinfo (services), srvcheck (valid shares), perfmtr | Display information about the current status of the system. (Current users, and so on.) | |
whoami | whoami | Print effective user name. |