Unified Linux/Windows Command
Total Page:16
File Type:pdf, Size:1020Kb
Appendix Operation DOS/Windows Command Unix/linux Command (case insensitive) (case sensitive) Help about a command <Commnad> /? Or help man <command> <command> Set date date date Set time Time date Copy files Copy <src> <dst> cp <src> <dst> Move files/directory Move <src> <dst> mv <src> <dst> Make Directory md <dir> mkdir <dir> Change Directory Cd <dir> cd <dir> Remove Directory rd <dir> rmdir <dir> deltree <dir> rm –rf <dir> See a file on screen Type <filename> cat <filename> See a file page by page More <filename> more <filename> Know about login as Whoami whoami, id Change file modes Attrib chmod Compare two files Comp <f1> <f2> diff <f1> <f2> Delete a file Del <file> rm <file> See the directory content Dir ls Rename a file Ren <src> <dst> mv <src> <dst> Copy files recursively Xcopy /s <src> <dst> cp –rp <src> <dst> Take backup as Pkzip <dst> <file/dir> gzip <file/dir> <dst> compressed file Uncompress a compress Pkunzip <zipped file> gunzip <compressed file> file To see the directory Tree tree structure Build a file system Format <drive> mkfs <partition> Print a file Print /D:\\derver\print_sare files lpr –P printer <fil> Lpr –S server –P printer <file> See printing queue Lpq –S server –P printer lpq –P printer Cancel print job lprm –P printer <jobno> To about a user Finger user@host finger user@host File transfer from remote ftp host ftp host machine sftp sftp2 host rcp scp2 rcp Know the hostname Hostname hostname Remote command Rsh/rexec rsh/rexec execution Login to remote system telnet telnet ssh ssh2 See ip vs. Ethernet address Arp arp Ip configuration of the Ipconfig Ifconfig local system DNS query Nslookup nslookup/ dig Tracing the path of a Pathping <machine> traceroute machine> remote networked machine Check whether machine is Ping <host> ping <host> on network Modifying the routing Route route table Kill a process Kill kill.