Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to tar all files in my trash bin for use in a shell script, but no files actually show up. Only empty subfolders appear.

What I have tried:

tar -cvf trash.tar.gz ~/.Trash/*

Result...

Extracting the contents of the trash.tar.gz file, it contains:
Users/(username)/{empty}
Posted
Updated 22-May-21 19:43pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900