WorksheetsCommand CLI for Files in Windows 10
Total questions: 25
Worksheet time: 50mins
Makes a directory (folder). The MKDIR command also works here.
MD
RD
CD
DIR
DEL
Removes a directory. RMDIR will also work. Two important switches for this command are:
/s: Removes subdirectories. This switch must be used if there are files and/or folders in the directory one is trying to remove.
/q: Removes directories without prompting the user for confirmation.
MD
RD
CD
DIR
DEL
Changes the directory one is working in. CHDIR also works here.
Some ways to use this include:
__..: Moves up a folder in a folder structure. For example, when focused on C:\HR\Docs
__\: Moves back to the root of the drive (C: for example)
MD
RD
CD
DIR
DEL
Lists the contents of a folder. Wildcards can be used to filter a file list.
MD
RD
CD
DIR
DEL
Deletes individual files. Wildcards can be used to delete multiple files. Some important switches include:
/p: Prompts before deletion.
/f: Forces deletion of read-only files.
/s: Deletes file in all subdirectories.
/q: Suppresses confirmation when using wildcards. For example, the DEL . /q command removes all files in a folder without confirmation.
MD
RD
CD
DIR
DEL
How do I go to Desktop from Admin folder?
Desktop
cd..
cd Desktop
mkdir desktop
How do I look around?
cls
cd
cd..
dir
How do I make a folder called Waffles?
cd Waffles
mkdir Waffles
cd.. Waffles
notepad Waffles
how do I go back one step (directory)
cd..
cd \
cd back
with my left foot?
how do I go to the C drive in one command?
cd \
cd..
cd back
mkdir C drive
Which command is used to create a directory called `Projects` in the `C:\Users\Documents` path?
mkdir Projects C:\Users\Documents
mkdir C:\Users\Documents\Projects
create C:\Users\Documents\Projects
dir C:\Users\Documents Projects
What does the `dir` command do in the Windows Command Prompt?
Displays a file's content
Lists the contents of the current directory
Changes the current directory
Deletes a directory
What is the command to copy files in the Windows Command Prompt?
move
cp
copy
duplicate
According to the text, what is the original name for 'folder'?
Directory
File
Container
Archive
What is one advantage of using the command line over the GUI, as mentioned in the text?
It is more visually appealing.
It is faster if you can type quickly.
It has more features.
It is easier to use.
Which command would you use to change the current position to the Pinball directory from C:\Office?
cd c:\games\pinball
md c:\games\pinball
rd c:\games\pinball
ls c:\games\pinball
How would you create a directory called 'documents' within 'Word'?
cd c:\office\word\documents
md c:\office\word\documents
rd c:\office\word\documents
ls c:\office\word\documents
Assume you have files within the 'pinball' directory and want to remove the directory. What command will you use?
cd c:\games\pinball
del c:\games\pinball
rd c:\games\pinball
rd /s c:\games\pinball
Assume the directory "test1" is located at the root of the "F" drive. Which command would you use to change to the test1 directory in the F: drive from the C: drive?
cd F:\test1
md F:\test1
rd F:\test1
dir F:\test1
Which command would you use to copy a file named 'test.txt' from the office directory to the excel directory?
copy \office\test.txt \excel\
xcopy \office\test.txt \excel\
robocopy \office\test.txt \excel\
del \office\test.txt \excel\
What does robocopy do differently compared to xcopy?
It copies individual files.
It can tolerate network interruptions, skip past junctions, and preserve data attributes and timestamps.
It deletes files once the copy completes.
It only works when users are logged on to a system and therefore requires authenticated user accounts.
What is the primary use of the shutdown command?
To update system policies
To turn off a computer
To display system information
To install software
It offers graphical icons and visual indicators based interface.
Graphical User Interface
Command Line Interface
Character User Interface
Virtual Keyboard
What is a User Interface (UI)?
A type of software that runs in the background
A way for users to interact with a computer system or software
A hardware component of a computer
A programming language
