0% found this document useful (0 votes)
20 views5 pages

Verifying Nested Directory Creation

This document provides instructions for Lab 1 of the CSC3300 course. The objective is to introduce students to the Windows operating system and Command Prompt. Students will answer questions about their computer system and perform tasks in the Command Prompt such as viewing and navigating directories, copying, renaming, and deleting files, and creating and deleting directories. The lab is due in Week 2 and will be assessed based on ability to perform operating system tasks from a rubric ranging from very poor to excellent.

Uploaded by

214391
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views5 pages

Verifying Nested Directory Creation

This document provides instructions for Lab 1 of the CSC3300 course. The objective is to introduce students to the Windows operating system and Command Prompt. Students will answer questions about their computer system and perform tasks in the Command Prompt such as viewing and navigating directories, copying, renaming, and deleting files, and creating and deleting directories. The lab is due in Week 2 and will be assessed based on ability to perform operating system tasks from a rubric ranging from very poor to excellent.

Uploaded by

214391
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

CSC3300 Sem.

1 2023/2024

UNIVERSITI PUTRA MALAYSIA


FAKULTI SAINS KOMPUTER DAN TEKNOLOGI MAKLUMAT

LAB 1 – Individual

OBJECTIVE:
The main objective of this lab is to introduce the students to the Windows operating
system. Students will also be introduced to the Command Prompt.

DURATION:
1 week / 3 hours

DUE DATE OF SUBMISSION: WEEK 2


Submit your assignment to your demonstrator and also putraBlast.

PROGRAMME OBJECTIVE (PO):


PO2: Use the available software package with appropriate computer components.

RUBRIC:

LEVEL 1 LEVEL 2 LEVEL 3 LEVEL 4 LEVEL 5


CRITERIA
Very Poor Poor Good Very Good Excellent
The ability to Unable to Able to perform Able to perform Able to perform Able to perform
perform perform OS OS tasks with OS tasks with OS tasks with OS tasks with
operating system tasks or able to limited success some success (≥ considerable outstanding
(OS) tasks. perform OS (≥ 40%,< 60%). 60%, < 80%). success (≥ 80%, success (100%).
tasks with very < 100%).
limited success
(< 40%).

QUESTIONS:
Part A (Knowing about your computer)

1. Answer the following questions about the computer that you are using in this lab.

a) What is the version of the Windows OS in use?


b) What company manufactured the computer?
c) What is the speed of the processor and how much RAM (physical memory) is
in the computer?
d) How much data can you store on the C: drive and how much of the C: drive is
in use?
e) What is the name of the antivirus program used in the computer (if any)?

1
CSC3300 Sem. 1 2023/2024

2. On the computer which you are working, perform and list down a hardware and
software inventory of at least three hardware devices and three application
programs on the computer. List the vendor and product.

Part B (The Command Prompt)

Objectives:
• use DOS commands to view, navigate, create and delete directories
• use DOS commands to copy, rename, and delete files

Microsoft’s Disk Operating System (DOS), also called MS-DOS, is a collection of


programs and commands used to control the overall computer operations system. All
modern Windows versions support DOS commands from the command line.

1. Open a command line from Windows:


• Click the Start/Run button and type: cmd or command

1. What directory are you in? ________________


2. What does the prompt look like? ___________

2. Displaying Directory Contents: Dir


DIR command will list directories and various files. Directories are specified with
the<DIR> notation that precedes the file/directory. The DIR command also displays
the volume name, free space, and total files and directories present.

Show a list of the directories located on this drive.


• type: cd\ change to the root directory
• type: cd windows change to the windows directory
• type dir

What happened? ______________________________________

• type: dir /p Press enter to continue the list

How many directories do you have in the windows folder?


_____________________________

What does the /p switch do? _______________

2
CSC3300 Sem. 1 2023/2024

3. The absolute path and relative path


The commands related with file and directory allows two ways in specifying location
(for source or target), which are called the relative path and absolute path. A path is
the direction from the current directory or other specific location to the intended file or
directory (e.g. c:mydir\mysubdir\[Link]).

When you only specify a source or target without the parent directory name (e.g.
[Link]), the command will search the source/target in current directory. This is known
as relative path. But you may specify source/target located outside the current
directory by providing the absolute path (e.g. c:mydir\mysubdir\[Link]).

Absolute path will allow you to specify to any source/target when you run a command
from any location in the system/directory structure. There are also special sub
directories named ‘.’ and ‘..’ provided in all directories.

• Find out the content of your current directory (use DIR command)
Find out the content of the root/base directory e.g. c:\ (use DIR command)

• Type the following command -> dir .  don’t ignore the dot !
What is displayed on the screen? So what is the purpose of the dot (‘.’)?
_________________________

• Type the following command -> dir ..  don’t ignore the dots !
What is displayed on the screen? So what is the purpose of the dots (‘..’)?
_________________________

• What is the command to determine the existence of a file named ‘[Link]’ in the
current directory?
__________________________________________________________

• What is the command to determine the existence of a file named ‘[Link]’ in a


directory named ‘mydir’ in the upper level (1 level) above of the current directory?
__________________________________________________________

4. Create and change a directory


To create directories in DOS, use the md directory_name or mkdir directory_name
command.
To change directories use the cd directory_name command. To move up one level in
the directory structure, use the command cd…

Create an IT directory in the C drive


• type: cd change to the root directory
• type: md IT

Verify the creation of the directory

3
CSC3300 Sem. 1 2023/2024

• type: dir
Is the IT directory in the list? _______________________________

How to change to the IT directory? _____________________________

5. Managing Files: copy, ren, del


You can use the copy command to make a 2nd copy of a file, with a new name.

Save a file to IT directory (file name [Link])


How to verify whether [Link] file is in the IT directory?________________

Make a backup of the [Link] file with other name [Link]


• type: copy [Link] [Link]
• type: dir
Are the new backup file and the original there? __________________

To rename a file, you can use the ren command.

Rename [Link] to [Link]


• type: ren [Link] [Link]
• type: dir
Did the file renamed? ___________

Delete files in DOS by using the del command.


Delete [Link] file
• type: del [Link]
Is the file has been deleted? _____________
Why? _______________________________

6. Delete a directory
To delete a directory in DOS, use the rd directory_name or rmdir directory_name
command.

Delete the IT directory


• type: rd it
Is the folder deleted? _________
Why? _______

If your directories can’t be deleted, try this command:


• type cd\ to change to the c:\ drive
• type: rmdir IT /s

4
CSC3300 Sem. 1 2023/2024

• type Y to confirm the removal of the it directory and all its subdirectories
Verify directory removal
• type: dir
Is the directory still exists? _________

Questions end. However students are encouraged to search and practice other commands
that are provided by the command prompt shell to have more exposure to the shell.

Common questions

Powered by AI

Potential challenges include understanding command syntax, dealing with the case-sensitivity issues, and managing errors due to incorrect commands. New users might find it challenging to memorize commands or to interpret error messages caused by typographical errors. Addressing these challenges involves a gradual learning approach, using cheat sheets for command references, and practicing with real-world scenarios. Constructive feedback from the DOS environment through error messages can also guide users to resolve issues. Comprehensive tutorials and guided lab sessions, as illustrated in the objectives of the described lab exercise, also play a significant role in facilitating this learning process .

Ineffective use of directory management commands can lead to significant inefficiencies and potential errors in a command-line environment. Without proper navigation and directory organization skills, users risk executing commands in incorrect locations, causing file disorganization or loss, and potentially modifying or deleting vital data. This can lead to problems in script execution paths, redundancy in data entries, and increased time spent on manual corrections. Moreover, ineffective directory management can hinder collaboration in team environments, as poor organization negatively impacts project visibility and accessibility for others .

Understanding the distinction between absolute and relative paths is crucial because it affects the ability to efficiently navigate and manage directory structures. Absolute paths provide a complete roadmap from the root directory to the target, ensuring commands can be executed from any directory. Relative paths, on the other hand, are crucial for more contextual navigation as they provide flexibility and efficiency when working within a directory. They're useful when the current position relative to the target file is clear, minimizing the need for lengthy path specifications .

Error messages from incorrect command inputs provide immediate feedback that is crucial for learning in command-line environments. These messages guide users by pinpointing specific errors, such as command misspellings or improper syntax usage, offering a learning opportunity to correct and understand the mistake. This iterative process of error identification and correction reinforces command syntax rules and enhances the user's problem-solving skills. Additionally, the depth of understanding gained from resolving these errors integrates theoretical knowledge with practical application, thereby advancing the learner's command-line proficiency .

Understanding path specifications significantly impacts the efficiency of script automation tasks. Absolute paths ensure scripts function as intended from any directory context, reducing errors during execution. However, they can make scripts less portable and adaptable to dynamic environments. Relative paths, when used effectively, make scripts more flexible and easier to maintain, as they adjust according to the current working directory. This understanding allows developers to choose the most efficient pathing strategy for automation tasks, balancing the need for accuracy with flexibility, leading to more robust and adaptable scripts .

Using command prompt instructions to list directories enhances understanding of file system structure by allowing users to visually trace the hierarchical nature of files and directories. Commands such as 'dir' reveal directory contents, showing subdirectories and files in an organized manner. This exposure helps users internalize the concept of file hierarchy and directory nesting, which is fundamental to efficient file management and navigation. It also assists in differentiating between different types of files and directories and understanding their roles within the OS structure .

Command prompt exercises play a crucial role in deepening the understanding of computer hardware and software by providing direct interaction with the operating system. Such exercises encourage users to explore system directories, evaluate installed software, and inspect hardware configurations through commands. This hands-on approach facilitates learning by doing, which is critical for reinforcing theoretical knowledge. It enables learners to accurately assess computer capabilities and system limits, and to troubleshoot or optimize hardware and software usage effectively. The applied nature of command prompts further cements foundational principles of computer operations in practical scenarios .

The special directories ‘.’ and ‘..’ are pivotal in navigating file systems as they represent the current directory and the parent directory, respectively. Utilizing ‘.’ allows users to quickly reference the current directory without explicitly naming it, which can be useful in scripting and automation. Similarly, ‘..’ facilitates moving up the directory tree without needing the full path of the parent directory, making it valuable for relative path operations. These shortcuts increase the efficiency of file handling and navigation, reducing potential errors and command length .

Performing hardware and software inventories in a laboratory setting has numerous educational benefits. It provides students with practical, hands-on experience, enhancing their ability to efficiently analyze and understand computer specifications. This activity promotes critical thinking as students assess system configurations and the appropriateness of installed applications for specific tasks or performance goals. Furthermore, it prepares students for real-world scenarios where such evaluations are necessary. By bridging theoretical knowledge with practical application, these inventories cultivate a comprehensive understanding of operating systems and their interactions with hardware components .

The level of success in performing operating system tasks directly correlates with the rubric criteria ranging from Very Poor to Excellent. Each level of the rubric corresponds to a specific percentage of success in task performance: unable or limited task completion results in lower ratings (Level 1 or 2), while increased proficiency and mastery lead to higher ratings (Level 4 or 5). This criterion provides a measurable and standardized method of assessment, ensuring clear expectations and feedback for students regarding their operational abilities with the operating system .

You might also like