How to launch Brackets from terminal with sudo privileges?

8,142

Use sudo:

sudo -i brackets

It will launch as a root instance. Make sure to use -i, it prevents root owning any of your home folder.

To launch in a certain directory, first cd to that directory, like this:

cd /path/to/folder

Then launch it with the same command:

sudo -i brackets
Share:
8,142

Related videos on Youtube

Tim
Author by

Tim

My name is Tim. I've graduated from the University of Nottingham with a First Class Computer Science BSc with Hons. In my spare time I do computer programming, often C or JavaScript, but also shell scripts, and answering questions on Stack Exchange. I used to spend most of my time on Ask Ubuntu; now I mostly browse the HNQ or Meta Stack Exchange. If you want to contact me it's [email protected] Do you need a reliable VPS? Try Digital Ocean. Sign up with this link for $10 free. One of my favourite sites is Kiva.org, a micro-funding organisation that allows people to lend money via the Internet to low-income entrepreneurs and students in over 80 countries. Kiva's mission is “to connect people through lending to alleviate poverty.” With just $25 you can make a difference - and 99% of loans are paid back in full - so you can lend again and again!

Updated on September 18, 2022

Comments

  • Tim
    Tim over 1 year

    How to launch Brackets from terminal with root privileges within some directory?

    • A.B.
      A.B. almost 9 years
      Why with sudo. That's a bad idea.
    • Adi Prasetyo
      Adi Prasetyo over 3 years
      please elaborate or provide a ref why that's a bad idea? Some of us, not a geek
  • Tim
    Tim almost 9 years
    He wants to run as root, let him, what's wrong with this?
  • Adi Prasetyo
    Adi Prasetyo over 3 years
    Neutrall-ed, with note using root with awareness, we can cause unnecessary problems but we are the owner of our PC.