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

Study for the AP Networking Test. Use flashcards and multiple-choice questions for effective learning. Equip yourself with hints and explanations to ensure exam success. Get ready to excel!

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 Passetra

You can unsubscribe at any time. Read our privacy policy