Common exceptions and solutions in the use and development of Ubuntu system

Article Directory###

1. Erroneously delete the system's own folders such as Desktop, Downloads, etc. in the Ubuntu home directory#

During the development process, the current user’s Desktop, Downloads, Music and other folders were accidentally deleted in the terminal.
solution:
Re-specify the system folder by modifying XDG_DESKTOP_DIR in ~/.config/user-dirs.dirs:

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
# 
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Template"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

If these folders do not exist in the home directory, you can execute mkdir xxx in the terminal to create the corresponding folder, and then restart to match the corresponding system folder.

Recommended Posts

Common exceptions and solutions in the use and development of Ubuntu system
Common exceptions and solutions for Ubuntu system installation and configuration
Detailed explanation of the installation and use of SSH in the Ubuntu environment
Use Ubuntu and windows system in virtual machine
Introduction to the use of Hanlp in ubuntu
Installation and use of SSH in Ubuntu environment
Use of Anaconda in Ubuntu
Installation and use of GDAL in Python under Ubuntu
The difference between CentOS and Ubuntu in Linux system
CentOS common exceptions and solutions
Use of Pandas in Python development
Common errors and solutions in python
Use of numpy in Python development
Overview of the Ubuntu file system
Ubuntu basic settings: introduction to the installation and use of openssh-server
Installation and deployment of Nginx in Ubuntu
Installation and use of Win10 subsystem Ubuntu
Installation and configuration of JDK in CentOS 7 system
Python realizes the development of student management system
Summary of Ubuntu system and privacy cleaning tools
The basic configuration and interface beautification of Ubuntu
How to use dpkg command in Ubuntu system
The meaning and usage of lists in python
How to open the ubuntu system in win10
The use of crontab for ubuntu scheduled tasks
The consequences of uninstalling python in ubuntu, very
Turn off and turn on the firewall in ubuntu
Installation, configuration and uninstallation of GitLab in Ubuntu19.1
Use supervisor in ubuntu
Modify the default root password of the Ubuntu operating system
Installation and simple practice of MySQL in ubuntu environment (1)
How to modify time zone and time in ubuntu system
Talk about | Install and use Linux system Ubuntu under Win10
How to control the ubuntu system in win10 through ssh
The process of solving the problem of installing ImageMagick under Ubuntu system
Encountered in the process of building a virtual environment in ubuntu
Use of mediawiki under ubuntu
ubuntu builds common development environment
How to extend the root directory of LVM under Ubuntu system
How to fix the problem of missing system settings on Ubuntu 14.04
Install the latest version of Thunderbird and exchange plugins under ubuntu
The usage of wheel in python
Happy installation of Jenkins in ubuntu
How to use hanlp in ubuntu
The difference between CentOS and Ubuntu
Use disk quota in ubuntu multi-user
Deploy the mail system under Ubuntu 19.10
Detailed use of nmcli in CentOS8
Install and configure Docker in Ubuntu
What is the use of Python
Ubuntu16.04 configuration OpenCV3.4.2 and basic use
Ubuntu upgrade software and ubuntu upgrade system commands
Ubuntu common instructions and usage details
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
The usage of tuples in python
Detailed explanation of the use of pip in Python | summary of third-party library installation