I'm trying to get a small folder (/test) with a couple small text files to a folder that I don't have write permissions for. I'm the sole user on this account and I don't know why I wouldn't have access.
My first attempt was to use the gui to create a folder but it is not a selectable option when I right click. When I look at the permissions for the folder I want to place my new folder it it the root's and in the root group.
I then tried writing the folder in the terminal which worked.
sudo mkdir /opt/shiny-server/test
So I tried writing the files to the folder but it seems there are many ways to do this and I am confused on what to do. Assume I want to write a very simple text file that might have quotes, less than symbols and other characters in it.
Then I thought the easiest solution might be to just move a directory over using the command line.
sudo mv /Home/Documents/test opt/shiny-server/
But there is "no such directory" for test folder even though I can see it in the gui.
So this is a call for help to learn ubuntu...
- I want to know how can I change the permission on this folder to write files and folders.
- What is the best way to write text file in a single instance in terminal using a cut paste approach?
- What is wrong with my method for trying to move folders?
Thanks! Working with 12.04 here.