关闭

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

标签: templates终端ubuntu
615人阅读 评论(0) 收藏 举报
分类:

昨天把家目录里的所有东西误删了,原来的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.

来源

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:46967次
    • 积分:895
    • 等级:
    • 排名:千里之外
    • 原创:39篇
    • 转载:8篇
    • 译文:2篇
    • 评论:12条
    最新评论