operating system practical, Study notes of Operating Systems

you can use it for free, really

Typology: Study notes

2024/2025

Uploaded on 06/19/2026

durlabh-dewangan
durlabh-dewangan 🇮🇳

2 documents

1 / 52

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Assignment File
For
BCA I semester (Academic Year 2025-2026)
SUBJECT NAME: OPERATING SYSTEM
SUBJECT CODE: CASC-03P
Submitted by: - Submitted to: -
Student Name: Durlabh Sagar Dewangan Faculty Name: Mr. Khan sir
DEPARTMENT OF INFORMATION TECHNOLOGY
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34

Partial preview of the text

Download operating system practical and more Study notes Operating Systems in PDF only on Docsity!

Assignment File

For

BCA I semester (Academic Year 2025 - 2026 )

SUBJECT NAME: OPERATING SYSTEM

SUBJECT CODE: CASC-03P

Submitted by: - Submitted to: -

Student Name: Durlabh Sagar Dewangan Faculty Name: Mr. Khan sir

DEPARTMENT OF INFORMATION TECHNOLOGY

Q 1 : Demonstrate different directory naming/listing structures using all

options.

Theory:

The DIR command in DOS (Disk Operating System) is used to display the list of files and directories in the current or specified location. It can be customized using different switches to show file attributes, sort results, and control the display format.

1. DIR Command The DIR command in Windows Command Prompt is used to display the list of files and folders in a directory. By default, it shows the names, sizes, and modification dates of all visible files and folders in the current location. It can also be used with options to customize the output, such as showing hidden files, sorting items, displaying only names, or listing contents of subdirectories. Essentially, DIR provides a way to view and explore the contents of a directory in an organized format. Syntax: C:>DIR press enter

the screen, using less vertical space, but it does not display detailed information like file size or modification date. This format is useful when you want to quickly see all the items in a directory without the extra details.

3. Bare format (no size/date) Syntax: C:>DIR /B⏎ The DIR /B command in Windows Command Prompt is used to display the list of files and folders in a bare format. The /B option shows only the names of files and folders without any additional information like file size, date, or attributes. This makes the output clean and minimal, which is useful for scripting or when you only need the names of items in a directory.

4. Recursive listing (including subfolders) Syntax: C:>DIR /S⏎ The DIR /S command in Windows Command Prompt is used to display the list of files and folders in a directory including all its subdirectories. The /S option tells the command to search recursively, showing not only the contents of the current folder but also every file and folder inside its subfolders. This is useful when you want a complete view of all items within a directory tree.

6. Show all files (including hidden/system) Syntax: C:>DIR /A⏎ The DIR /A command in Windows Command Prompt is used to display all files and folders, including those with special attributes such as hidden, system, read-only, or archive. The /A option allows you to see files that are normally not visible with a

Q2: Demonstrate all internal DOS commands with output.

All internal DOS commands with output.

Theory: Internal DOS commands are commands that are built into the DOS command interpreter (COMMAND.COM). They are loaded into memory during system startup and are always available. These commands perform basic operations like file management, directory navigation, and system control.

1. DIR Command The DIR command in Windows Command Prompt is used to display the list of files and folders in a directory. By default, it shows the names, sizes, and modification dates of all visible files and folders in the current location. It can also be used with options to customize the output, such as showing hidden files, sorting items, displaying only names, or listing contents of subdirectories. Essentially, DIR provides a way to view and explore the contents of a directory in an organized format. Syntax: C:>DIR press enter

Commonly Used DIR Options: Option Description /P (^) Pauses after each screen of output /W (^) Wide format (names only in columns) /B (^) Bare format (only file/folder names, no details) /S (^) Lists files in current folder and all subfolders /L (^) Displays names in lowercase /A (^) Shows files with specific attributes (hidden, system) /O (^) Sorts the output (by name, date, size, etc.)

1. List with pause after each screen Syntax: C:>DIR /P⏎ The DIR /P command in Windows Command Prompt is used to display the list of files and folders in a directory one screen at a time. The /P option stands for pause, and it prevents the directory listing from scrolling off the screen if there are many files. After each screen- full of information, the command pauses and waits for the user to press a key to continue, making it easier to read long lists of files and folders. Now if you want to see the remaining folders press any key to continue… 2.Wide display (names only) Syntax: C:>DIR /W⏎ The DIR /W command in Windows Command Prompt is used to display the list of files and folders in a wide format. The /W option shows multiple file and folder names in a row across

4. Recursive listing (including subfolders) Syntax: C:>DIR /S⏎ The DIR /S command in Windows Command Prompt is used to display the list of files and folders in a directory including all its subdirectories. The /S option tells the command to search recursively, showing not only the contents of the current folder but also every file and folder inside its subfolders. This is useful when you want a complete view of all items within a directory tree.

6. Show all files (including hidden/system) Syntax: C:>DIR /A⏎ The DIR /A command in Windows Command Prompt is used to display all files and folders, including those with special attributes such as hidden, system, read- only, or archive. The /A option allows you to see files that are normally not visible with a regular DIR command, giving a complete view of the directory’s contents.

7. Show only hidden files Syntax: C:>DIR /A:H⏎ The DIR /A:H command in Windows Command Prompt is used to display only the hidden files in a directory. The /A option specifies that files with certain attributes should be listed, and H stands for the hidden attribute. This allows you to see files that are normally invisible in a standard directory listing. 8. Lowercase file and folder names Syntax: C:>DIR /L⏎ The DIR /L command in Windows Command Prompt is used to display all file and folder names in lowercase letters. The /L option converts the names to lowercase in the output, which can be useful for consistency or when comparing file names in a case- insensitive way.

3. COPY Command The COPY command in Windows Command Prompt is used to copy files from one place to another. It can create a duplicate of a file in the same folder or in a different folder. Syntax: C:> COPY file1.txt file2.txt press enter This copies file1.txt into a new file called file2.txt. If file2.txt exists, it will ask before replacing it. Points to remember:  You can copy many files at once using *, e.g., COPY *.txt D:\Backup.  It only works for files, not folders.  If the file exists, it may ask for confirmation before overwriting. 4. DEL Command The DEL command in Windows Command Prompt is used to delete one or more files from a directory. It removes the specified file(s) permanently from the folder. Syntax: C:>DEL file2.txt press enter This deletes the file named file2.txt from the current directory. Points to remember:  You can delete multiple files using wildcards, e.g., DEL *.txt deletes all .txt files in the folder.  Once deleted, files cannot be recovered using this command.  It only works on files, not folders. For folders, use RMDIR or RD.

5. REN Command The REN (Rename) command in Windows Command Prompt is used to rename a file or folder. It changes the name of the specified file or folder to a new name. Syntax: C:>REN oldname.txt newname.txt press enter This renames the file oldname.txt to newname.txt. Points to remember:  It can rename files or folders.  You cannot move files to a different directory with REN; it only changes the name in the same location.  Wildcards like * can be used to rename multiple files following a pattern, e.g., REN *.txt *.bak. 6. MD / MKDIR Command The MD or MKDIR command in Windows Command Prompt is used to create a new folder (directory) in the specified location. Both MD and MKDIR work the same way. Syntax: C:>MD myfolder press enter

This deletes the folder named myfolder from the current directory, but the folder must be empty. Points to remember:  If the folder contains files or subfolders, the command will not work.  To remove a folder and all its contents, you need to use the /S option, e.g., RD myfolder /S.  Useful for cleaning up empty directories.

9. TYPE Command The TYPE command in Windows Command Prompt is used to display the contents of a text file on the screen. It allows you to quickly view the data stored in a file without opening it in an editor. Syntax: C:>TYPE file.txt press enter This displays the contents of file.txt in the Command Prompt window. Points to remember:  Works only with text files, not binary files like images or videos.  You can combine it with other commands using pipes, e.g., TYPE file.txt | MORE to view long files one screen at a time.  Useful for quickly checking file contents without opening a separate application. 10. VER Command The VER command in Windows Command Prompt is used to display the version of DOS or Windows that is currently running on the computer. It helps you know the operating system version without opening system settings. Syntax: C:>VER press enter

This shows the current Windows version on the screen. Points to remember:  It does not change the system version; it only displays it.  Useful for troubleshooting or checking compatibility with software.

11. DATE Command The DATE command in Windows Command Prompt is used to display or set the system date of your computer. When used, it shows the current date and allows you to change it if needed. Syntax: C:>DATE press enter This displays the current system date and prompts you to enter a new date if you want to change it. Points to remember:  Press Enter without typing a new date to keep the current date.  Changing the system date can affect file timestamps and some software behavior.  Useful for checking or updating the system date directly from the command prompt. 12. TIME Command The TIME command in Windows Command Prompt is used to display or set the system time of your computer. When executed, it shows the current time and allows you to change it if needed. Syntax: C:>TIME press enter

 You can add directories to the path so that programs in those folders can be run from anywhere, e.g.,  PATH C:>ProgramFiles\MyApp;%PATH%  It helps the system locate executable files without needing to type the full path.  Changing the PATH affects command execution for the current session or permanently if set in system environment variables.

15. EXIT Command The EXIT command in Windows Command Prompt is used to close the Command Prompt window. It terminates the current command-line session safely. Syntax: C:>EXIT press enter This closes the Command Prompt immediately. Points to remember:  Any running commands will be stopped when you exit.  Useful for ending a command prompt session or closing batch files after execution.  Works in both normal and administrative command prompt windows. After entering exit command…… They are essential for performing basic operations in the DOS environment.

Q3: Introduction to Windows and Familiarity with Its Controls

Introduction to windows:

Windows is an Operating System developed by Microsoft. It is a graphical user interface (GUI) based system that allows users to interact with their computers and manage various tasks. It runs applications and provides a user-friendly interface that enables users to interact directly with the system to perform tasks. Windows OS offers distinctive features such as:  Users are allowed to run the software.  Users interact with the OS through visual elements, such as icons, windows, menus, and a mouse-driven pointer.  Users can view or store their files.  Users can create, delete, rename, and move files using the GUI or the CLI.

Basics of windows

Windows provides a Graphical User Interface (GUI) which makes computers easy to use. It allows users to interact through icons, menus, buttons, and windows instead of command typing. Functions of Windows:

1. User Interface The user interface of Windows OS is designed to provide ease of use and accessibility to users. The Start Menu, Taskbar, and Desktop are some of the key elements of the Windows