Eve Chen的菠萝格

Howdy my friend

怎样重建家目录里面的文件夹 Ubuntu

昨天把家目录里的所有东西误删了,原来的Downloads Templates Documents ….都没有了。。。下面是如何重新建立。。。

Create a new folder that you want to use as your folder,
e.g type mkdir ~/Desktop in a terminal (CTRL+ALT+T to open one) to create a folder named Desktop in your home directory.
Edit your configuration
Edit the file ~/.config/user-dirs.dirs. You can do this by opening a terminal, then enter
gedit ~/.config/user-dirs.dirs.
Change the entry for XDG_DESKTOP_DIR to your new desktop folder, or add it, if the entry does not exist. After your edit, the file should look like this:
XDG_DESKTOP_DIR=”HOME/DesktopXDGDOWNLOADDIR=HOME/Download”
XDG_TEMPLATES_DIR=”HOME/TemplatesXDGPUBLICSHAREDIR=HOME/Public”
XDG_DOCUMENTS_DIR=”HOME/DocumentsXDGMUSICDIR=HOME/Music”
XDG_PICTURES_DIR=”HOME/PicturesXDGVIDEOSDIR=HOME/Videos”`
Log out and then log in again and your desktop should show the specified folder.

来源

阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chenyiyue/article/details/51536572
文章标签: templates 终端 ubuntu
个人分类: Linux Ubuntu
上一篇5 More of the Best Icon Packs for Linux
下一篇关闭xdebug
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭