0

I am using Ubuntu 17.10, I want to make a folder in opt folder/directory and paste something but when I open the opt folder and right click on it the new folder option is unhighlighted and also the paste option I tried to make the folder in opt folder using terminal by mkdir command but it shows Permission denied.

Plz tell me how to do it?

muru
  • 207,228

1 Answers1

2

Basically, you require root permission. In case you have the root password, in terminal do the following:

cd  /opt
sudo mkdir name-of-the-folder
cd name-of-the-folder
sudo cp path-of-file-to-be-copied/file-to-be-copied . 

Don't forget the Dot (.) at the end of the last command.

Jay
  • 2,370