cmd and UNIX
Terms
undefined, object
copy deck
- cd
-
Change Directory
Both Unix and DOS - dir
- DOS command to list files; Unix equivalent is ls
- copy x y
-
copies a file named x to a new file named y
copy x + y z combines x and y into z
DOS Command
cp in Unix - move x y
-
Renames x to y. No more file x.
DOS command
Unix equivalent is mv - md x
-
Makes new directory called x.
DOS command
Unix equivalent is mkdir x - rd x
-
Removes directory x. Must be empty
DOS command
Unix equivalent is rmdir x - edit
-
Creates and edits text files.
DOS command
Unix equivalent is pico - del and erase
-
Erase files.
DOS command
Unix equivalent is rm - type x
- types file on the screen. may append more to output more than one screen at a time
- pwd
- Unix command. Print working directory. Gives home directory
- ls
- Unix command. Provides a list of files in a current directory
- mkdir
- Makes a new directory in Unix. md in DOS
- rmdir
-
removes directory, doing rm -R allows directory with files in it to be deleted
Unix command; DOS equivalent is rd - pico
- Makes a new textfile in unix. edit in DOS
- more
- Unix cmd. prints a file on the screen. Type in dos
- cp -i x y
- copies a file x to file y in UNIX. -i allows overwrite. DOS command: copy
- mv -i x y
- moves x to y, -i allowing overwrites. Unix command, is move in DOS
- date
- Unix command, gives date
- ls -l, ls-a,
-
-l is a long listing; -a includes directory entries beginning with dot
UNIX commands - chmod
- Unix command to modify permissions; u,g,o,a specify who gets the permission, w, r, and x are the permissions, and + or - means grant or revoke
- rm x
- Unix command, removes a file, DOS command is del or erase
- !!
- Reruns last command in unix
- history
- lists last commands in unix
- !3
- Reruns 3rd last command in UNIX
- exit
- Exits unix and DOS
- man
- gives command information