DOS to UNIX Translation
Total Page:16
File Type:pdf, Size:1020Kb
DOS to UNIX Translation DOS to... UNIX notes attrib change file chmod attributes cd change cd chdir directories chkdsk display free df disk space cls clear screen clear comp compare files diff copy copy files cp cp to copy files, copy to copy directories, and tar to copy copy files or directories onto floppy disks or tapes. tar date display date date displays the date and time, cal displays the date, system date cal time, and a 3 month calendar. and time del delete files rm Use caution with rm and wildcards, rm * removes all (no undelete option)! deltree delete rm -r Recursively removes the specified directory and its files directory and and subdirectories and files. (no undelete option) files dir list contents ls There are several options to ls including ls -l to see long of a directory lists, ls -c to see a list in columns, and ls -f to see a list indicating file types. diskcomp make a track- diskcmp by-track comparison of two floppy disks diskcopy copy a source diskcp disk to a target disk edit to edit text vi vi is a full-screen text editor with powerful search and files replace functions. edlin line editor ed ed and ex are predecessors of vi. ex fc compare two cmp cmp to compare binary files, diff compares two text files, files diff and diff3 compares three text files. diff3 find find text grep The UNIX find command finds files on the system, within a file and grep (global regular expression parser) finds text within a file. format format a disk format The UNIX format command formats a disk for use on the UNIX file system. See /etc/default/format for the default drive to format. help get help man apropos md make a mkdir directory more display more output one screen at a time move move a file mv print print files in lp Use lp filename & to print in the background. You can the lpq run any UNIX system command in the background by background adding the & (ampersand) to the end of the command line. Use lpq to display print queue. ren rename a file mv rd remove an rmdir empty Use rm -r to remove a directory that is not empty. directory sort sort data sort type display a text cat file more xcopy copy copy Use tar if you want to copy directories to disk or tape. directories tar .