Windows Command Prompt

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By PremierGaou
P
PremierGaou
Community Contributor
Quizzes Created: 3 | Total Attempts: 57,675
| Attempts: 4,870 | Questions: 25
Please wait...
Question 1 / 25
0 %
0/100
Score 0/100
1. Which command do you use to clear the prompt screen?

Explanation

cd will change the directory. clear is the Linux command for clearing the screen. clean is not a valid command

Submit
Please wait...
About This Quiz
Windows Command Prompt - Quiz

The windows command prompt is essential to the functioning of a computer. It might not be as simple or complex as you think so just try it out... see moreand see for yourself. All the best as you attempt. see less

2. Which command do you use to relocate a file to another folder?

Explanation

The mv command is used to move or rename files and directories in Linux and other Unix-like operating systems. To relocate a file to another folder, you would use the mv command followed by the source file and the destination directory. For example, to move a file named myfile.txt from the current directory to a folder named myfolder, you would use the command mv myfile.txt myfolder/.

Submit
3. What does the CMD command do?

Explanation

The CMD command in Windows is used to start a new command shell. It opens a new instance of the command prompt, allowing users to execute various commands and perform tasks within the command-line interface. This command is commonly used to access and navigate through the file system, run programs, and perform administrative tasks on the computer.

Submit
4. What does the hostname command do?

Explanation

The hostname command is used to display the name of the computer. It provides the user with the information about the specific name assigned to the computer system. This can be useful when identifying and connecting to a particular computer on a network or when troubleshooting network-related issues.

Submit
5. Which command will search for a text string in a file?

Explanation

find is for searching for a file. grep is the linux command for searching for a text string in a file. awk is the linux command for Ffinding and replacing text in a file

Submit
6. What does the echo command do?

Explanation

type will display the contents of a text file. copy will copy a file to another location. more will display output one screen at a time

Submit
7. Which of the following commands will display the current date and time?

Explanation

echo will display a message. logtime will log the date and time in a file. date will set the system date

Submit
8. Which of the following commands would be used to set a file to read-only? 

Explanation

attrib -r will remove read-only attribute. cacls /r will revoke specified user's access rights. chmod 444 is the linux command for setting read permissions for all users.

Submit
9. Which of the following commands will shutdown a computer with no time-out or warning?

Explanation

shudown /r and psshutdown will shutdown and restart. poweroff is not a CMD command

Submit
10. Which of the following will display all hidden files in a folder?

Explanation

dir /a:a will display all archive files in a folder. ls -h will print sizes in human readable format. dir -ah is not a valid command

Submit
11. What does the fc command do?

Explanation

The fc command is used to compare two files. It allows users to identify the differences between the contents of two files and displays them side by side. This can be useful for verifying if any changes have been made to a file or for troubleshooting purposes.

Submit
12. Which of the following is NOT a file system?

Explanation

NTFS is New Technology File System, a file system that replaced FAT (FIle Allocation Table). UDF is Universal Disk Format used for optical media. FTP is File Transport Protocol.

Submit
13. Which of the following will execute a program under another user account?

Explanation

su will switch user. Sudo is the linux command for executing a program as another user. psexec will execute process remotely.

Submit
14. Which command is used to import registry settings?

Explanation

regini will change registry permissions. regsvr32 will register or unregister a DLL. reg will read, set, export, delete keys and values.

Submit
15. Which command do you use to schedule a task?

Explanation



The command used to schedule a task in Unix-like operating systems is at. The at command allows you to schedule a one-time execution of a command or script at a specified time in the future.
Submit
16. What is the SC command?

Explanation

The SC command refers to the service control command. This command is used in Windows operating systems to manage and control installed services. It allows users to start, stop, pause, resume, or query the status of a service. By using the SC command, administrators can easily manage and control various services running on their system, making it a crucial tool for system administration.

Submit
17. Which command do you use to change file extensions?

Explanation

cacls will change file permissions. attrib will change file attributes. ftype will display or change the link between a FileType and an executable program.

Submit
18. Which command will change account passwords?

Explanation

In Unix-like operating systems, passwd is used to change user passwords. Here’s a brief overview of the commands:

pspasswd: This is not a standard command for changing passwords.

net user: This command is used in Windows to manage user accounts, including changing passwords, but it is not specifically used for changing passwords.

passwd: This is used to change a user’s password in Unix-like systems.

chgrp: This command changes the group ownership of files and directories, not passwords.

Submit
19. Which command will delay execution for 5 seconds?

Explanation

waitfor is used to synchronize events between one or more networked computers. at is used to schedule a command at specific time. start is used to start a program

Submit
20. Which of the following are valid file attributes?

Explanation

Read, write, execute are LInux permissions. Full control, read & execute, modify, special permissions are Windows permissions. Owner, group, other are Linux file owner types

Submit
21. Which command do you use to change file permissions?

Explanation

chmod is the LInux command for changing file permissions. dir will display directory contents. perms will show permissions for a user

Submit
22. What command do you use to delete folders?

Explanation

The command rmdir is used to delete empty directories (folders) in most operating systems like Windows and Linux. It stands for "remove directory." However, if the folder contains files, you need to use other commands or options to first delete the files inside it. In Windows, rd is also commonly used to remove directories. The del command is used for deleting files, and rm is used primarily in Linux and Unix-based systems for deleting both files and directories (with the appropriate flags).

Submit
23. Which registry stores file associations?

Explanation

HKEY_CURRENT_CONFIG contains information gathered at runtime. HKEY_CURRENT_USER stores settings that are specific to the currently logged-in user. HKEY_LOCAL_MACHINE stores settings that are specific to the local computer

Submit
24. Which command will list system information?

Explanation

The systeminfo command displays detailed system information in Windows, including the operating system version, system architecture, memory, network adapter details, and other hardware and software configurations. This command is useful for diagnosing system issues or checking system specifications.

Submit
25. Which of the following changes folder permissions?

Explanation

cacls is for changing file permissions. attrib changes file attributes. chmod is the linux command for changing file permissions

Submit
View My Results

Quiz Review Timeline (Updated): Jan 6, 2025 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jan 06, 2025
    Quiz Edited by
    ProProfs Editorial Team
  • Jan 13, 2014
    Quiz Created by
    PremierGaou
Cancel
  • All
    All (25)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which command do you use to clear the prompt screen?
Which command do you use to relocate a file to another folder?
What does the CMD command do?
What does the hostname command do?
Which command will search for a text string in a file?
What does the echo command do?
Which of the following commands will display the current date and...
Which of the following commands would be used to set a file to...
Which of the following commands will shutdown a computer with no...
Which of the following will display all hidden files in a folder?
What does the fc command do?
Which of the following is NOT a file system?
Which of the following will execute a program under another user...
Which command is used to import registry settings?
Which command do you use to schedule a task?
What is the SC command?
Which command do you use to change file extensions?
Which command will change account passwords?
Which command will delay execution for 5 seconds?
Which of the following are valid file attributes?
Which command do you use to change file permissions?
What command do you use to delete folders?
Which registry stores file associations?
Which command will list system information?
Which of the following changes folder permissions?
Alert!

Advertisement