DOS - Disk Operating System

Preview:

Citation preview

1

Operating System Application Lab

2014-2015

2

What is OS?Software of a computer, that schedules tasks, allocates storage, and presents a default interface to the user between applications .

3

DOSDisk Operating SystemIs a CLI (Command Line Interface)The command line begins with a prompt

4

Pathnames• The name you give to a directory or file when you create it is not its full name.• The full name of a directory is its pathname.

Pathnames may be:– absolute: is the complete pathname of a file or directory beginning with the root directory.– relative: begins from your working directory; it is the path of a file relative to your working directory.• working directory: is the one you are currently operating in.

if chris is your working directory– relative pathname for the file monday isreports/monday– The absolute pathname for monday is/home/chris/reports/monday.

5

Open Command Screen•Start -> Run -> Write CMD

6

Disk Drive• PC can have one or more hard disk drives.

• The advantage of a hard disk▫ it can store large amounts of data which can be

accessed relatively quickly

• hard disk called in PC: C , and may also called D

• Example: c:\Users\HP>; ▫ C is hard disk, Users folder inside C and HP

inside Users

7

Change disk drive•To change the default drive, type the

desired drive letter followed by a carriage return.

•Example:▫type-> d:

8

Directory commands •dir command:

▫display a listing of the files on the default drive (a directory).

•Example

9

Directories 2•To list the files on another drive, type:

D:> dir c:

•Example

10

cd command•cd refers to change directory

•example:▫cd fold▫cd .▫cd ..▫cd /

11

•To create a subdirectory named fold, type:▫mkdir fold or md fold

•To remove directory names fold, type:▫rmdir fold or rd fold

12

WILDCARDSWildcards are characters that can be used to stand-in for unknown characters in file names.

• * = matches up with any combination of allowable characters▫Ex: c:\>del *.doc

• ? = matches up with any single allowable character.▫Ex: C:\>del ?.doc

Not allowable in specifying filenames, but very useful in any DOS command which uses a filename as an argument.

13

Files commands •Creating new files :

▫copy con filename <press enter> Fill the file then press ctrl + z

•Deleting files▫del filename

•Displaying contents•type filename

14

Copying files•command:

▫copy oldfile newfile

▫oldfile express the source where file come from

▫newfile express the destination where file go to

15

Dirictory + files commands•Rename

▫Rename oldname newname

16

Other commands•Displays DOS Help

▫ help command

•CLS▫ Clear the screen

•Date•Time•EXIT

Recommended