How to launch Brackets from terminal with sudo privileges?
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
Related videos on Youtube
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, 2022Comments
-
Tim over 1 year
How to launch Brackets from terminal with root privileges within some directory?
-
A.B. almost 9 yearsWhy with
sudo
. That's a bad idea. -
Adi Prasetyo over 3 yearsplease elaborate or provide a ref why that's a bad idea? Some of us, not a geek
-
-
Tim almost 9 yearsHe wants to run as root, let him, what's wrong with this?
-
Adi Prasetyo over 3 yearsNeutrall-ed, with note using root with awareness, we can cause unnecessary problems but we are the owner of our PC.