In ubuntu server when i ls a newly created user i cannot find directories such as desktop, documents, downloads etc.
Asked
Active
Viewed 1,246 times
0
-
I guess they will be created automatically once the new user logs in to GNOME session. – raj Jan 04 '21 at 21:56
-
2On a SERVER you should stay away from /home/$USER/ and create a dedicated partition to store user data. Preferably on a different disk: easy backup, restore and maintenance. You do not want users to mess up their home: they are 1 control-h away from deleting files they should not delete :) – Rinzwind Jan 04 '21 at 22:18
-
In particular: https://askubuntu.com/a/713708/158442 – muru Jan 05 '21 at 01:41
1 Answers
2
Directories like Desktop, Documents, Music, etc. are a desktop (not server) convention.
Those directories are automatically created on an Ubuntu Desktop system, but not on an Ubuntu Server system.
If you want those directories on a server, you can easily make them yourself. There's nothing special about them:
mkdir ~/Documents ~/Downloads ~/Music ~/Pictures ~/Videos
Warning: Desktop Trash won't work outside of a Desktop Environment.

user535733
- 62,253