Tuesday, October 16, 2012

Unix and Dos commands mapping

Not exactly, but sort of, if you need more powerful utilities, using CygWin
Dos commandUnix commandNotes
arparp
assignlnCreate a file link
assignln -sOn Unix, a directory may not have multiple links, so instead a symbolic link must be created with ln -s.
atat, batch,cron
assocfile
attribchown,chmodSets ownership on files and directories
cdcd
cdpwdcd alone prints the current directory.
chkdskfsckChecks filesystem and repairs filesystem corruption on hard drives.
clsclearClear the terminal screen
copycp
datedate
delrm
deltreerm -rRecursively deletes entire directory tree
dirls"dir" also works on some versions of Unix.
doskey /h, F7 keyhistoryThe Unix history is part of the Bash shell.
editvi, 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.
exitexit, Control-DOn Unix, pressing the control key and D simultaneously logs the user out of the shell.
explorernautilus, etc.The command explorer brings up the file browser on Windows.
fcdiff
findgrep
ftpftp
helpman"help" by itself prints all the commands
hostnamehostname
ipconfig /allifconfig -aThe /all option lets you get the MAC address of the Windows PC
mkdirmkdir
memtopShows system status
moremore / less
movemv
net statisticsuptime
nslookupnslookup
pingping
printlprSend a file to a printer.
regeditedit /etc/*The Unix equivalent of the Windows registry are the files under /etc and /usr/local/etc.
rmdirrmdir
rmdir /srm -rWindows has a y/n prompt. To get the prompt with Unix, use rm -i.
setenvPrints a list of all environment variables. For individual environment variables, set <variable> is the same as echo $<variable> on Unix.
set Pathecho $PATHPrint the value of the environment variable using set in Windows.
shutdownshutdownWithout an option, the Windows version produces a help message
reboot, shutdown -rshutdown -r
shutdown -sshutdown -hAlso need -f option to Windows if logged in remotely
sortsort
systeminfouname -a
tasklistps"tasklist" is not available on some versions of Windows. See also this article on getting a list of processes in Windows using Perl



tracerttraceroute
treefind / ls -RUse tree | find "string"
typecat
veruname -a
xcopycp -RRecursively copy a directory tree

No comments:

Post a Comment