Linux Installation Recycle Bin tool __linux

Source: Internet
Author: User
Tags git clone

On Linux mistakenly deleted files is a very scary thing, but there are trash-cli is not afraid of 1. Determine if Git is installed on the system

[Root@localhost ~]# git--version
git version 1.7.1
[Root@localhost ~]#

Install git if not installed

[Root@localhost ~]# Yum Install Git-core
2. Cloning trash-cli to local [Root@localhost local]# git clone https://github.com/emanon-was/trash-cli.git/usr/local/trash-cli
3. Configure Environment Variables [Root@localhost local]# export path=/usr/local/trash-cli/bin: $PATH
4. Common commands Delete files trash-put xxx.txt view Recycle Bin trash-list Restore files trash-restore empty Recycle Bin trash-empty Delete files in Recycle Bin Trash-remove
5. Create aliases for RM, delete files and go to Recycle Bin [Root@localhost ~]# alias rm= ' Trash-put '
[Root@localhost ~]# alias RM
Alias rm= ' Trash-put '
[Root@localhost ~]#

Later delete the file can use RM xxx.txt directly to the Recycle Bin, is not very convenient to test a wave:

Finally thank the author "Emanon-was" to provide tools for more information see HTTPS://GITHUB.COM/EMANON-WAS/TRASH-CLI

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.