GVFS-TRASH(1) User Commands GVFS-TRASH(1)NAME
gvfs-trash - Move files or directories to the trash
SYNOPSIS
gvfs-trash [OPTION...] [LOCATION...]
DESCRIPTION
gvfs-trash sends files or directories to the "Trashcan". This can be a different folder depending on where the file is located, and not all
file systems support this concept. In the common case that the file lives inside a users home directory, the trash folder is
$XDG_DATA_HOME/Trash.
Note that moving files to the trash does not free up space on the file system until the "Trashcan" is emptied. If you are interested in
deleting a file irreversibly, see gvfs-rm.
Inspecting and emptying the "Trashcan" is normally supported by graphical file managers such as nautilus, but you can also see the trash
with the command gvfs-ls trash://.
OPTIONS
The following options are understood:
-h, --help
Prints a short help text and exits.
-f, --force
Ignore nonexistent and non-deletable files.
--empty
Empty the trash.
EXIT STATUS
On success 0 is returned, a non-zero failure code otherwise.
SEE ALSO ls(1), gvfs-rm(1), Desktop Trash Can specification[1]
NOTES
1. Desktop Trash Can specification
http://freedesktop.org/wiki/Specifications/trash-spec
gvfsGVFS-TRASH(1)
Check Out this Related Man Page
TRASH(1) General Commands Manual TRASH(1)NAME
trash - Command line trash utility.
SYNOPSIS
trash [arguments] ...
DESCRIPTION
Trash-cli package provides a command line interface trashcan utility compliant with the FreeDesktop.org Trash Specification. It remembers
the name, original path, deletion date, and permissions of each trashed file.
ARGUMENTS
Names of files or directory to move in the trashcan.
EXAMPLES
$ cd /home/andrea/
$ touch foo bar
$ trash foo bar
BUGS
Report bugs to http://code.google.com/p/trash-cli/issues
AUTHORS
Trash was written by Andrea Francia <andreafrancia@users.sourceforge.net> and Einar Orn Olason <eoo@hi.is>. This manual page was written
by Steve Stalcup <vorian@ubuntu.com>. Changes made by Massimo Cavalleri <submax@tiscalinet.it>.
SEE ALSO trash-list(1), trash-restore(1), trash-empty(1), and the FreeDesktop.org Trash Specification at http://www.ramendik.ru/docs/trashspec.html.
Both are released under the GNU General Public License, version 2 or later.
TRASH(1)
I've got a small script that deletes all the trash from mailusers Trash directory. I run this script once in a while to make some space. (We have lots of IMAP users, who keep their mail on server!) Occansionaly, the users create directories with space in the name (e.g. "My Mail"). And sometimes... (5 Replies)
I need to know how I would be able to clean out the trash can of a single "dumb" user every time the MAC is turned on.
Back ground.
OS 10.3x
G3 Mac
Two users configured...
1) Root or Admin (superuser)
2) student (Simple no access to anything but shared folder for files etc.)
The problem... (4 Replies)
Can you please tell me how to find a file in a directory and then if it exists i need to place it in a different folder?
I have to use "ls -lt" command
I mean this command is something existing one . can you please tell me how i set the directory path. Like
dir1/dir2/filename.csv to... (8 Replies)
Hi I'm new to Linux, and I'm trying to write a shell script where I remove a specific file (i.e file1 or file1.txt), but i don't actually remove it, i move it to a directory called 'trash' - in vi I created a file with the path /usr/bin/del and in it I have:
mv $file /home/trash, but I'm getting... (24 Replies)
I want a file I create to not be deletable by other users so I created a sticky bit by chmod 1644 on the file. chown'd it to root and then tried to delete (via GUI drag to trash and empty) as a non root user and it let me. is sticky bit only good for terminal deletes or something? (4 Replies)
Hello,
I am new to Unix and I would like to know how can I see my files from Windows desktop. When I type ls, I can see a list of files-directories including Desktop, but when I cd Desktop, and then ls there is a message 'Link to old Desktop'. (The big picture is to build a sundials library but... (4 Replies)
How could I go about creating some trash files to use for testing. All I need is for files to exist and the data in them really doesn't matter.
I need to do some work and testing with scripts and I don't want to mess with real data in my testing.
So I would like to generate say 10,000 files... (10 Replies)
My first post :)
I deleted all the files within /system/library/startupitems to the trash bin. Now my mac snow leopard won't boot at all. All I got is the gray screen, apple logo and the spinning wheel...just spinning forever. I was able to boot in single-user mode. I'm trying to copy cp command... (14 Replies)
Hey,
weird story, dunno if this is actually possible, but here's what happened: My dad's PC (Windows) is completely full of trash, the hard drive is completely full. After the last Windows update he wasn't able to boot anymore, even from a WindowsCD it didn't seem to work. That's at least what... (7 Replies)
I am doing a simple "recycle bin" script. It is to check and see if the directory .TRASH exists within the home directory. If not then it makes the directory then appends a date and time to file and then finally moves the file in. However, when I run this script, it is not making the directory as... (5 Replies)
If there were 3 files put in a folder on /Desktop/Test then transferred to a site.
would
gzip -r /Desktop/Test zip them so that
wget --http-user cmccabe --http -passwd xxxx*** https://something.sharefile.com/login.aspx -O - | tar -zxf - could be used to connect to the site, login,... (6 Replies)
I use a Mac running OSX El Capitan = UNIX user the hood. After rearranging files on an external hard drive, I ended up with a folder in the trash containing a file called "~INITPicker 2.0". I cannot empty the trash, and so delete the file. I even tried terminal, using the rm file command and... (38 Replies)
Hi All,
I have directory and it has multiple sub directories and all these sub directories contains many files. i want to move all these files to one different directory. But after moving files i should be able to recognize which file belongs to which directory.
Is there any way to achieve... (6 Replies)
Hi there,
I am using the xfce4 is already the newest version (4.12.5).
thunar is already the newest version (1.8.4-1).
The distribution is Linux kali 4.19.0-kali1-amd64 #1 SMP Debian 4.19.13-1kali1 (2019-01-03) x86_64 GNU/Linux
However, the problem is:
When I when I click on any program to... (2 Replies)