| Table 1: Linux commands and their Windows NT equivalents | ||
|---|---|---|
| Description | Linux command | Windows NT equivalent |
| Mount a remote filesystem | mount -t nfs bilbo:/export/home /home | net use h: \\bilbo\users |
| List user accounts on the local machine | cat /etc/passwd | net users |
| List user accounts in the network database | ypcat passwd.byname | net users /domain |
| List groups on the local machine | cat /etc/group | net localgroup |
| List groups in the network database | ypcat group.byname | net group |
| Create an exported share | vi /etc/exports killall rpc.mountd /usr/sbin/rpc.mountd |
net share newshare=c:\export |
| Stop/start a service or daemon | Use the appropriate
SystemV init script.
For example, /etc/rc.d/rc3.d/S30nfs {start|stop} |
net [stop|start] Server |
| Gather statistics on shared file service | netstat or rpcinfo | net statistics Server |
| Synchronize with a remote time server | use the xntp protocol | net time \\bilbo /set /yes |
| Schedule a job to execute at a some time in the future | crontab -e (or use the at command) |
at 10:00pm cmd.exe |
| Change permissions on a file | chmod 700 testfile #
sets access perms chown jerry testfile # set ownership chgrp users testfile # set group ownership |
cacls testfile /p jerry:c |
| Check the integrity of a filesystem | fsck /usr | chkdsk c: |
| Compare the contents of two files | diff file1 file2 | fc file1 file2 |
| Edit a text file | vi file1.txt | edit file1.txt |
While Table 1 isn't a complete list of all possible things that can be done from the command line with a vanilla NT installation, it does give us a place to start. In addition, Windows NT provides its own versions of:
ping
traceroute (called tracert.exe under NT)
ftp
netstat
route
arp
rsh, rcp, and rexec
One final command that I tend to use a lot under Windows NT is the
ipconfig.exe command. This tool allows you to manually release
and renew IP address and related information via DHCP. If you assign
static IP settings, you can still use ipconfig.exe to view the
assigned information without launching the network control panel GUI.
It does not however, allow for the setting of static IP address
information.