Which command would you use to create a directory named 'projects'?

Prepare for the AP Networking Test. Study with flashcards and multiple choice questions, each question includes hints and explanations. Boost your confidence and get ready for success!

Multiple Choice

Which command would you use to create a directory named 'projects'?

Explanation:
Creating a new directory is done with the mkdir command. It tells the system to make a new folder in the filesystem. To create a directory named 'projects' in the current directory, you would run: mkdir projects. If you need to create multiple levels of directories at once, you can use mkdir -p path/to/projects. The other commands perform different tasks: cp copies files, mv moves or renames items, and ls lists what's in a directory. Since the goal is to create a directory, mkdir is the appropriate tool.

Creating a new directory is done with the mkdir command. It tells the system to make a new folder in the filesystem. To create a directory named 'projects' in the current directory, you would run: mkdir projects. If you need to create multiple levels of directories at once, you can use mkdir -p path/to/projects. The other commands perform different tasks: cp copies files, mv moves or renames items, and ls lists what's in a directory. Since the goal is to create a directory, mkdir is the appropriate tool.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy