<<

DOS to Translation

DOS to... UNIX notes change file chmod attributes change cd chdir directories display free df disk space screen clear compare files copy files cp cp to copy files, copy to copy directories, and to copy copy files or directories onto floppy disks or tapes. tar date display date date displays the date and , cal displays the date, system date cal time, and a 3 month calendar. and time delete files rm Use caution with rm and wildcards, rm * removes all (no undelete option)! delete rm -r Recursively removes the specified and its files directory and and subdirectories and files. (no undelete option) files list contents ls There are several options to ls including ls -l to see long of a directory lists, ls - to see a list in columns, and ls -f to see a list indicating file types. make a track- diskcmp by-track comparison of two floppy disks copy a source diskcp disk to a target disk edit to edit text vi is a full-screen with powerful search and files functions. line editor ed and 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 text The UNIX find command finds files on the system, within a file and grep (global regular expression parser) finds text within a file. 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. get help man apropos md make a directory display more output one screen a time move a file 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. rename a file mv rd remove an empty Use rm -r to remove a directory that is not empty. directory sort sort data sort display a text cat file more copy copy Use tar if you want to copy directories to disk or tape. directories tar