Showing posts with label command line. Show all posts
Showing posts with label command line. Show all posts

Wednesday, December 3, 2008

Linux vs Windows DOS commands

Here is a comparison between Windows DOS and Linux commands:
Windows DOSLinux/Cygwin
dirls
cdpwd
cd [path](same)
clsclear
copy [old] [new]cp [new] [old]
del [file]rm [file]
move [old] [new]mv [old] [new]
treetree (Linux only)
ls -R
mkdir [dir](same)
rmdir [dir](same)
help [cmd]man [cmd]
type [file]cat [file]
date /t(same without /t)
time /tdate
netstat -an(same Linux only)
netstat -rn(same Linux only)
ipconfig /allifconfig -a
(Linux only)


For more information on Linux commands check out this tutorial or this tutorial (scroll past the ssh stuff).

Windows DOS Commands

In the last two classes we have been playing around with command line on windows. We learned a few useful commands:

dirlist out files
cdshow current working directory
cd [path]change to [path] directory
clsclear screen
copy [old] [new]
copies the old file to new
del [file]deletes the file
move [old] [new]
moves the old file to new
treeshows the tree of the current directory
mdcreates new directory
mkdircreates new directory
rmdir [dir]deletes directory dir
helplists help information
type [file]outputs file contents to screen
date /toutputs date to screen
time /toutputs time to screen
netstatgives us network connection information
netstat -an
-a: all connections -n: IP addresses
netstat -rn
-r: routing information
ipconfig /all
gives us network information