COMPUTER SCIENCE AND ENGINEERING
UNIX
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Sometimes we are unable to create a directory because ____
|
the directory may already exist in the current directory
|
|
there may be an ordinary file by the same name in the current directory
|
|
the permissions set for the current directory does not allow the creation
|
|
the directory may exist, there may be an ordinary file, the permissions set for the current directory does not allow the creation
|
Explanation:
Detailed explanation-1: -If you receive an error telling you that you do not have permissions to create a directory or to write a file to a directory, this is likely an indication that your script is attempting to write to a directory that you do not own.
Detailed explanation-2: -You can directory use mkdir with-p option to create a directory. It will check if the directory is not available it will.
Detailed explanation-3: -You need to have root permission to create document. Your current user doesn’t have root privileges. You can use $sudo mkdir /etc/wiki to create folder.
There is 1 question to complete.