When creating a directory, which of the following is true?

  1. You use the pico Unix command to create a directory

  2. The default permissions are: r w x - - - - - -

  3. You must be in your home directory

  4. The directory name must end in _html


Correct Option: C

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) You use the pico Unix command to create a directory - This option is incorrect because the pico command is used for creating or editing text files, not directories.

Option B) The default permissions are: r w x - - - - - - - This option is incorrect because the default permissions for a newly created directory are typically "rwxr-xr-x" or "755". The permissions you listed, "rwx------", would give full access to the owner of the directory but no access to any other users.

Option C) You must be in your home directory - This option is correct because when creating a directory, you can do it from any location, including your home directory, or any other directory where you have write permissions.

Option D) The directory name must end in _html - This option is incorrect because there is no requirement for a directory name to end in "_html". The name can be anything you choose.

The correct answer is C) You must be in your home directory. This option is correct because you can create a directory from any location, including your home directory or any other directory where you have write permissions.

Find more quizzes: