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?

2
  • Your user account does not have permission to write to the /opt directory. Could you edit your question and explain why you want to put something in there? I'd rather understand what you are doing before giving you an answer that could potentially be a bit dangerous. Commented Jan 15, 2018 at 13:29
  • sudo chmod +w /opt should do the trick. Commented Jan 15, 2018 at 13:30

1 Answer 1

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.

1
  • Comments are not for extended discussion; this conversation has been moved to chat. Commented Jan 15, 2018 at 17:33

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.