How to send a file to the root folder in ubuntu?

I created a txt file and I need to move it to a folder called root,but since it is a system folder, I have a little doganyaesh not like me to throw.On the screenshots you can see that admin rights I included but to get to the folder and how to throw the created file I don't know.Please help to understand this issue.5bbc9cb79f121507690978.png5bbc9cbf14266957386639.png
March 12th 20 at 07:58
2 answers
March 12th 20 at 08:00
Solution
sudo cp file /root
5bbcb7a2f1251818123212.png - Isabella.McDermott85 commented on March 12th 20 at 08:03
5bbcb8094e2b9447577625.png - Isabella.McDermott85 commented on March 12th 20 at 08:06
@Isabella.McDermott85, it's either a great joke or you three times did not see the gap. - aryanna.Ryan commented on March 12th 20 at 08:09
March 12th 20 at 08:02
If you need to throw a file into the directory in the screenshot then
sudo cp /path/to/file.txt /file.txt
5bbcb896a6983417011928.png - Isabella.McDermott85 commented on March 12th 20 at 08:05
/path/to/file - literally translated as a file path, meaning the path to Your file you want to copy. - Berenice.Johns commented on March 12th 20 at 08:08

Find more questions by tags UbuntuCommand lineLinux