16
Operating System Application Lab 2014-2015 1

DOS - Disk Operating System

Embed Size (px)

Citation preview

Page 1: DOS - Disk Operating System

1

Operating System Application Lab

2014-2015

Page 2: DOS - Disk Operating System

2

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

Page 3: DOS - Disk Operating System

3

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

Page 4: DOS - Disk Operating System

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.

Page 5: DOS - Disk Operating System

5

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

Page 6: DOS - Disk Operating System

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

Page 7: DOS - Disk Operating System

7

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

desired drive letter followed by a carriage return.

•Example:▫type-> d:

Page 8: DOS - Disk Operating System

8

Directory commands •dir command:

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

•Example

Page 9: DOS - Disk Operating System

9

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

D:> dir c:

•Example

Page 10: DOS - Disk Operating System

10

cd command•cd refers to change directory

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

Page 11: DOS - Disk Operating System

11

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

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

Page 12: DOS - Disk Operating System

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.

Page 13: DOS - Disk Operating System

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

Page 14: DOS - Disk Operating System

14

Copying files•command:

▫copy oldfile newfile

▫oldfile express the source where file come from

▫newfile express the destination where file go to

Page 15: DOS - Disk Operating System

15

Dirictory + files commands•Rename

▫Rename oldname newname

Page 16: DOS - Disk Operating System

16

Other commands•Displays DOS Help

▫ help command

•CLS▫ Clear the screen

•Date•Time•EXIT