Description
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!
User Reviews for trash-cli FOR LINUX 7
-
trash-cli is a powerful CLI trashcan tool compliant with freedesktop.org specs. Handy commands for trashing, listing, and restoring files.
-
Trash-cli is a fantastic tool for managing deleted files from the command line. It's efficient and easy to use!
-
I love how trash-cli complies with freedesktop.org specs! It makes file management so much simpler.
-
This app has revolutionized my workflow! It's seamless to restore files and keep track of what's in the trash.
-
Trash-cli is a must-have for anyone who works in the terminal. Quick commands and great functionality!
-
Absolutely love this app! It’s reliable, compliant with standards, and keeps my file management tidy!
-
A brilliant command-line tool! Trash-cli makes it super easy to manage trashed files. Highly recommended!