📅  最后修改于: 2023-12-03 15:33:25.886000             🧑  作者: Mango
PCManFM Recycle Bin is a command-line tool for managing files that have been deleted from your computer. When files are deleted, they are not immediately removed from your hard drive; rather, they are moved to a special folder called the Recycle Bin. This allows you to recover the files if you accidentally deleted them or if you later decide that you need them.
PCManFM Recycle Bin is pre-installed on many Linux distributions, such as Ubuntu, Debian, and Fedora. To check if it's installed on your system, open a terminal and type:
pcmanfm --version
If PCManFM is installed, you should see a version number. If it's not installed, you can install it from your distribution's package manager.
To use PCManFM Recycle Bin, you first need to open a terminal. To do this, press the Ctrl+Alt+T keyboard shortcut. Once the terminal is open, you can use the following commands:
To list all the files that have been deleted and are currently in the Recycle Bin, type:
pcmanfm trash:///
This will display a list of all the files and directories that have been deleted, as well as some information about each file (such as the size and the date it was deleted).
To restore a file that has been deleted and is in the Recycle Bin, you need to know the name of the file. Once you know the name of the file, type:
pcmanfm restore ~/.local/share/Trash/files/<filename>
This will restore the file to its original location.
To delete a file permanently from the Recycle Bin, type:
pcmanfm emptytrash
This will permanently delete all the files in the Recycle Bin.
PCManFM Recycle Bin is a useful tool for managing deleted files on your Linux system. By using the commands outlined in this guide, you can easily view, restore, and permanently delete files that are in the Recycle Bin.