在 Ubuntu 桌面中使用文件和文件夹
Ubuntu 桌面
![](/data/attachment/album/202005/08/224609chff5qn5ccah56af.jpg)



> 
> 此初学者教程讨论了在 Ubuntu 桌面上添加文件和文件夹时可能遇到的一些困难。
> 
> 
> 


我认识一些习惯将所有重要/常用文件放在桌面上以便快速访问的人。


![](/data/attachment/album/202005/08/224831vhshoxzgypgmmwpg.jpg)


我不喜欢杂乱的桌面，但是我可以想象它实际上可能对某些人有所帮助。


在过去的几个版本中，很难在 Ubuntu 的默认 GNOME 桌面上添加文件。这并不是 Ubuntu 的错。


[GNOME](https://www.gnome.org/) 的开发者认为，桌面上没有图标和文件的存身之地。当你可以在菜单中轻松搜索文件时，无需将文件放在桌面上。这在部分情况下是事实。


这就是为什么 [GNOME 的文件管理器 Nautilus](https://wiki.gnome.org/Apps/Files) 的较新版本不能很好地支持桌面上的图标和文件的原因。


也就是说，在桌面上添加文件和文件夹并非没有可能。让我告诉你如何做。


### 在 Ubuntu 的桌面上添加文件和文件夹


![](/data/attachment/album/202005/08/224640b93fvzzeebdkfvrv.png)


我在本教程中使用的是 Ubuntu 20.04。对于其他 Ubuntu 版本，步骤可能会有所不同。


#### 将文件和文件夹添加到“桌面文件夹”


如果打开文件管理器，你应该在左侧边栏或文件夹列表中看到一个名为“桌面”的条目。此文件夹（以某种方式）代表你的桌面。


![Desktop folder can be used to add files to the desktop screen](/data/attachment/album/202005/08/224650siw0t0fsp0izaa09.png)


你添加到此文件夹的所有内容都会反映在桌面上。


![Anything added to the Desktop folder will be reflected on the desktop screen](/data/attachment/album/202005/08/224653qkz1j5mm50fsa00s.jpg)


如果你从“桌面文件夹”中删除文件，那么文件也会从桌面中删除。


#### 将文件拖放到桌面不起作用


现在，如果你尝试从文件管理器往桌面上拖放文件，它会不起使用。这不是一个 bug，它是一个使很多人恼火的功能。


一种临时方案是打开两个文件管理器。在其中一个打开“桌面”文件夹，然后将文件拖放到该文件夹​​中，它们将被添加到桌面上。


我知道这并不理想，但是你没有太多选择。


#### 你不能使用 Ctrl+C 和 Ctrl+V 在桌面上复制粘贴，请使用右键单击菜单


更恼人的是，你不能使用 `Ctrl+V`（著名的键盘快捷键）将文件粘贴到桌面上。


但是，你仍然可以使用右键单击，然后选择“粘贴”，将文件复制到桌面上。你甚至可以通过这种方式创建新文件夹。


![Right click menu can be used for copy-pasting files to desktop](/data/attachment/album/202005/08/224653wsj8q8f8b8fbp8s1.jpg)


是否有意义？对我来说不是，但这就是 Ubuntu 20.04 的方式。


#### 你无法使用 Delete 键删除文件和文件夹，请再次使用右键菜单


更糟糕的是，你无法使用 `Delete` 键或 `Shift+Delete` 键从桌面上删除文件。但是你仍然可以右键单击文件或文件夹，然后选择“移至回收站”来删除文件。


![Delete files from desktop using right click](/data/attachment/album/202005/08/224709cg2hh5hiz3gjggrg.jpg)


好了，你现在知道至少有一种方法可以在桌面上添加文件，但有一些限制。不幸的是，这还没有结束。


你无法在桌面上用名称搜索文件。通常，如果你开始输入 “abc”，那么以 “abc” 开头的文件会高亮显示。但是在这里不行。


我不知道为什么在桌面上添加文件受到了如此多的限制。值得庆幸的是，我不会经常使用它，否则我会感到非常沮丧。


如果有兴趣，你也可以阅读[在 Ubuntu 桌面上添加应用快捷方式](https://itsfoss.com/ubuntu-desktop-shortcut/)这篇文章。




---


via: <https://itsfoss.com/add-files-on-desktop-ubuntu/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

I know a few people who are habitual of putting all the important/frequently used files on the desktop screen for quick access.

Yes, it is a convenient way of file access for some 😎

![An Ubuntu Desktop with many icons placed](https://itsfoss.com/content/images/2024/01/desktop-with-icons.webp)

I am not a fan of a cluttered desktop screen, but it saves time, I'm sure.

With initial GNOME versions, it was difficult to add files on the desktop screen. However, that has changed now with support for files on the desktop.

So, it’s not impossible to add files and folders on the desktop. Let me show you how you can do it.

**Suggested Read 📖**

[7 Tips to Get More Out of GNOME Search in LinuxYou are missing out on lots of built-in search features in the GNOME desktop environment. Learn something new.](https://itsfoss.com/gnome-search/)![](https://itsfoss.com/content/images/2023/08/gnome-search-tips.png)


![](https://itsfoss.com/content/images/2023/08/gnome-search-tips.png)

## Desktop Icons NG (DING) GNOME Extension

As said above, GNOME does not provide a way to add files/folders to the desktop by default. We rely on this extension, called Desktop Icons NG for the purpose.

If you are using any other distro that comes with GNOME, install this from the GNOME Shell Extensions page, or you can [use the GNOME Shell Extension Manager](https://itsfoss.com/extension-manager/) application.

![Install Desktop Icons NG extension using GNOME Shell Extension Manager Application](https://itsfoss.com/content/images/2024/01/install-desktop-icons-extension-from-extension-manager-app.png)

Once you are done installing the extension, you are good to go now!

## Adding files and folders on the desktop screen in Ubuntu

I am using **Ubuntu 22.04 LTS** in this tutorial. The steps may or may not vary for other Ubuntu versions.

### Add the files and folders to the “Desktop folder”

If you open the file manager, you should see an entry called Desktop in the left sidebar or in the folders list. This folder represents the storage location of your desktop screen.

![Desktop Folder in Nautilus File manager sidebar and HOME directory.](https://itsfoss.com/content/images/2024/01/desktop-folder-in-nautilus.png)

Anything you add to this folder will be reflected on the desktop screen.

![Folders moved to the Desktop will be available on the Desktop Screen and Desktop Folder, and both are the same.](https://itsfoss.com/content/images/2024/01/desktop-folder-and-dekstop.png)

If you delete files from this ‘Desktop folder’, it will be removed from the desktop screen as well.

### Drag and drop files to desktop screen

Now, if you drag and drop files from the file manager to the desktop, it will **“move”** that file or folder to the `~/Desktop`

folder. It will be visible on the desktop as well.

![Right-click on a folder/file on the desktop to access its context menu actions.](https://itsfoss.com/content/images/2024/01/desktop-folder-actions.png)

Here, you can do all sort of things that you actually do in any other locations.

## Desktop Icons Appearance Settings in Ubuntu

On Ubuntu, you can tweak the appearance of desktop icons. For this, first open Settings and then go to Appearance.

![On the Ubuntu Settings Application, the desktop icon settings can be found under the Appearance tab.](https://itsfoss.com/content/images/2024/01/appearance-setttings-of-desktop-icons.png)

You can also go to these settings directly from the desktop. Right-click on the desktop and select “Desktop Icon Settings”.

![Right-click on an empty space on the desktop and select “Desktop Icons Settings” to reach the Desktop Icons Settings page of the Ubuntu Settings Application.](https://itsfoss.com/content/images/2024/01/right-cick-and-select-desktop-icon-settings.png)

Here, you can change the size of desktop icons, to four different levels, as shown below.

![Change the Desktop Icons appearance size](https://itsfoss.com/content/images/2024/01/desktop-icon-size-in-ubuntu-settings.png)

By default, in newer Ubuntu releases, the Desktop icons appear on the bottom-right of the screen. You can change this to another area if it suits you.

![Change the position of Desktop icons on the desktop screen.](https://itsfoss.com/content/images/2024/01/position-of-new-icons.png)

Or, show the Personal Folder, that is `/home/$USER/`

folder.

## Tweak the Desktop Icons Using the Extension

The extension provides customizable options to fiddle with. You need to access the extension settings, preferably using the extension manager.

Here's how it looks like:

Head to the GNOME Shell Extension Manager application and then select the Gear icon corresponding to the Desktop Icons extension.

![Click on the gear icon corresponding to the Desktop Icon extension to open its settings.](https://itsfoss.com/content/images/2024/01/open-desktop-icon-settings.png)

[GNOME extension called “Extension List”](https://extensions.gnome.org/extension/3088/extension-list/?ref=itsfoss.com)for quick access to extensions. This will help you access all the extensions you have installed on your system from the top panel.

You can access the settings for each extension from here easily.

This will open the settings menu. Most of the tweaks are straightforward so that you can understand easily. A couple of interesting tweaks will be listed here.

You can show the Trash icon, External Drives, Network Drives, etc., on your desktop, by enabling the respective toggle switches.

![Enable the visibility of additional locations on the desktop](https://itsfoss.com/content/images/2024/01/show-other-drives-on-desktop.png)

If you are using a very bright wallpaper, it will be good to show the labels in a dark color. Just enable the toggle button as shown in the screenshot below.

![Make the label text of desktop icons dark color for better visibility in light backgrounds.](https://itsfoss.com/content/images/2024/01/show-a-dark-text-for-labels.png)

If you have [Nemo file manager installed](https://itsfoss.com/install-nemo-file-manager-ubuntu/), you can open the folder on the desktop in Nemo by enabling it in the settings.

![Use Nemo File manager to open folders from the desktop instead of Nautilus File Manager.](https://itsfoss.com/content/images/2024/01/use-nemo-to-open-folders.png)

**Suggested Read 📖**

[Top 20 GNOME Extensions to Enhance Your ExperienceYou can enhance the capacity of your GNOME desktop with extensions. Here, we list the best GNOME shell extensions to save you the trouble of finding them on your own.](https://itsfoss.com/best-gnome-extensions/)![](https://itsfoss.com/content/images/wordpress/2022/03/best-gnome-extensions-ft.png)


![](https://itsfoss.com/content/images/wordpress/2022/03/best-gnome-extensions-ft.png)

## Wrapping Up

For the most part, you do not need access to the extension settings. If you are new to the Linux world, do not worry about the customization options through the extension settings. The toggle buttons work as expected.

If interested, you may read about [adding application shortcuts on Ubuntu desktop](https://itsfoss.com/ubuntu-desktop-shortcut/) as well.

[How to Add Desktop Shortcut on Ubuntu LinuxIn this quick tutorial, you’ll learn how to add application shortcuts on the Ubuntu desktop and other distributions that use the GNOME desktop.](https://itsfoss.com/ubuntu-desktop-shortcut/)![](https://itsfoss.com/content/images/2023/11/add-application-shortcut-on-ubuntu.png)


![](https://itsfoss.com/content/images/2023/11/add-application-shortcut-on-ubuntu.png)

Moreover, you can improve your workflow with the files/folders if you know how to use the Nautilus File Manager features efficiently:

*💬What are your thoughts on having files/folders on the desktop? *