I put ubuntu for the first time, then lamp server for php. You need to create a file in / var / www /. But neither the manual nor the terminal allows the system to do this. Then I wrote the sudo -i command in the terminal, assigning myself superuser rights. Now I can create a file in the terminal using the touch command.
The question remains - why can not I manually create a file, i.e. corny right-click, as in windows, to create a file. What is needed for this? How to assign yourself the right to permanent any actions with folders and files?