What is trash-cli FOR LINUX?


trash-cli


trash-cli is a command-line tool that acts as a trashcan for your Linux system. It complies with the freedesktop.org specs and seamlessly integrates with other tools. This versatile software preserves crucial details of all your deleted files, such as their name, original path, deletion date, and permissions. It also works harmoniously with KDE Trash!



How to Use trash-cli


If you wish to move a file named foo to the trash can, simply enter:


$ trash foo


Listing Files in the Trash


To explore the contents of your trash can, execute the following command:


$ list-trash

This command will display a list similar to this:


2007-08-30 12:36:00 /home/andrea/foo
2007-08-30 12:39:41 /home/andrea/bar
2007-08-30 12:39:41 /home/andrea/bar2
2007-08-30 12:39:41 /home/andrea/foo2


Searching for Files in the Trash


You can search for a specific file in the trash by using this command:


$ list-trash | grep foo

With this command, finding files named foo becomes effortless!



Restoring Deleted Files


If you accidentally deleted something important and want to recover it, run:


$ restore-trash

You will be presented with options like this:


0 2007-08-30 12:36:00 /home/andrea/foo
1 2007-08-30 12:39:41 /home/andrea/bar...

You can then choose the file to restore by entering its corresponding number.



Cleansing Your Trash Can


If you decide it's time to clear out all the trashed files, simply type:


$ empty-trash


Purging Old Files from Trash


To remove files that have been in the trash beyond a certain number of days, use this command:


$ empty-trash < days >

For example:


$ empty-trash 7

This action will eliminate all files older than seven days.



If you're eager to test out trash-cli, visit SoftPas.com. It offers a multitude of fantastic software choices!


How Download Works

Go to the Softpas website, press the 'Downloads' button, and pick the app you want to download and install—easy and fast!

SoftPas Safety Info
SoftPas

SoftPas is your platform for the latest software and technology news, reviews, and guides. Stay up to date with cutting-edge trends in tech and software development.

Recent

Help

Subscribe to newsletter


© Copyright 2024, SoftPas, All Rights Reserved.