I am brand new to ubuntu and I am trying to create a new folder inside my /
directory.
I have read many posts here that talk about giving myself ownership of files but when I try and do it with /
, I get permission denied.
- How do I freely create folders/files in root?
- Can I make my user the root user?
Question Clarification
My question above is not clear because I didn't understand the scope of the Ubuntu file system.
I didn't want to create folders in root. What I wanted to know is: Where is the best place to put my personal files (like my .dotfiles) in the Ubuntu file system.
For newer Ubuntu/linux users like me, the comments below clarify the thinking with linux fliesystem.
/
and an even worse idea to make your user the root user, especially if you are a new user. This feels like an XY problem. If you tell us why you want this, what your final objective is, we should be able to give you a better solution. – terdon May 10 '22 at 11:54Maybe there is a better place to put it?
FYI - I have installed ubuntu on a i7 windows machine (duel boot).
– Vinn May 10 '22 at 12:04/
unless you really know what you are doing. Everything that is only for your user should be in your$HOME
and not in/
. – terdon May 10 '22 at 12:08/home
directory, it's the/home/vinn
(or whatever your user name is) directory. That's where the programs you run will expect to find their configurations for your user. And you're welcome :) – terdon May 10 '22 at 12:23https://refspecs.linuxfoundation.org/fhs.shtml
, or readman hier
.It explains where things go.
– waltinator May 10 '22 at 12:56