experiment no 1 os

Upload: ajit-choudhary

Post on 08-Apr-2018

228 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/7/2019 Experiment no 1 os

    1/10

    08CS07

    EXPERIMENT NO. 1

    AIM:-To study and learn about some DOS commands

    THEORY:-

    A DOS is a program that links the computer hardware with the software and act as a

    resource manager for proper functioning of each and every part of a computer.

    DOS is a single user system for PCs and we can use our computer as soon as the operating

    system is loaded.

    DOS commands are run in command prompt to open command prompt simply follow the

    following procedure:-

    Start Programs Accessories Command Prompt

    OR

    Simply hold windows button(Start) and press R a run box will be appear simply write cmd in it

    and press enter Command Prompt box will be open.

    1. Run window 2. Cmd window

  • 8/7/2019 Experiment no 1 os

    2/10

    08CS07

    Dos commands

    1. time :- this command is used to display and change the current date

    Syntax of this command is

    C:\>time

    2. Date:- This command is used to display or reset the.

    Syntax of this command is

    C:\>date

    3. Ver (version):- this command is used to display the version of the operating systemMS-DOS

    Syntax of this command is

    C:\>ver

  • 8/7/2019 Experiment no 1 os

    3/10

  • 8/7/2019 Experiment no 1 os

    4/10

    08CS07

    Syntax of this command:-

    C:\>cls

    6. Dir :- this command is used to show the files and subdirectories in a particular directory.

    Syntax of this command:-

    C:\>dir

    7. cd .. :- this command is used to go back on position from current positin in the drive ordirectory.

    Original position:-

  • 8/7/2019 Experiment no 1 os

    5/10

    08CS07

    After cd .. command:-

    Syntax of this command:-

    C:\>cd ..

    8. Mkdir / md (makeDirectory):- this command is used to create a directory on specifiedposition.

    Before md command:-

  • 8/7/2019 Experiment no 1 os

    6/10

    08CS07

    After md command:-

    Syntax of this command:-

    C:\>md [directoryname]

    9. cd (ChangeDirectory):- this command is used to change the current directory.

    Syntax of this command:-

    C:\>cd [..] . . :- specify the name of directory or file where you want to go or jump.

  • 8/7/2019 Experiment no 1 os

    7/10

    08CS07

    10.copycon :- This command is used to create a file and con stands for consol

    Syntax of this command:-C:\>copycon [filename]

    11.rename:- this command is used to change the name of a file.Before rename command:-

  • 8/7/2019 Experiment no 1 os

    8/10

    08CS07

    After rename command:-

    Syntax of this command:-

    C:\>rename [drive :] [path] file1 file2

    file1 :- oldername

    file2 :- newername

    12.path:- This command displays or sets a search path for executable file.

    Syntax of this command:-

    C:\>path

  • 8/7/2019 Experiment no 1 os

    9/10

    08CS07

    13.chkdsk (check disk) :-This command is used to check a disk and display status report.

    Syntax of this command is:-

    Chkdsk

    14.netuser :- this command is used to now how many users are there.

    syntax:-

    netuser

  • 8/7/2019 Experiment no 1 os

    10/10

    08CS07

    15.tree :- This command graphically displays the directory structure of a drive or path.

    syntax :-

    C:\>tree