A technician is performing system cleanup on a Windows server. They need to remove an empty directory named 'Temp_Logs' using the command line to keep the file structure tidy. Which of the following commands is the most appropriate for this task?
rmdir - This is correct. The rmdir command (short for remove directory) is used in the Windows command line to delete a directory. It is specifically designed for this purpose and will successfully remove an empty directory.
del - This is incorrect. The del command is used to delete one or more files, not entire directories. Attempting to use it on a directory will result in an error.
move - This is incorrect. The move command is used to relocate or rename files and directories, but it does not delete them.
chkdsk - This is incorrect. The chkdsk (Check Disk) command is a utility used to scan for and repair file system errors on a disk drive. It does not remove directories.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
How does rmdir handle directories that are not empty?
Open an interactive chat with Bash
What is the difference between del and rmdir commands?