Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hello I would like to enter a text file with some code in this directory(etc/usb_modswitch.d). How can I do this? please help me. I have try to do this by just move the file but it's a root directory so I got the message permission denied! So How can I become the root and able to copy paste a file there or is it possible to to do this changes by using terminal? Thanks. My os is ubuntu 11.10 version.

share|improve this question

Open a terminal by pressing ctrl+alt+t (don't worry, you'll use it only to invoke the text editor with sudo privileges).

On the terminal type:

sudo gedit

press enter and input your password when prompted.

Presto, the gedit editor should be running with root permissions!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.