9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I don't know if it's just me being dense, but I can't seem to find a definitive location for deleted files in Debian, like the Trash folder in Ubuntu, any ideas where 'deleted' files go? (2 Replies)
Discussion started by: 3therk1ll
2 Replies
2. Shell Programming and Scripting
is there any other way for someone to see the history of my commands after i've nulled the .bash_history file?
i'm curious. i usually do this each time i want to prevent spies:
cat /dev/null > .bash_history
i work in an environment where multiple people have root access. meaning, we can... (1 Reply)
Discussion started by: SkySmart
1 Replies
3. Shell Programming and Scripting
Hi Friends
I am new to sed programming , i found that the below code can search for the $ToSearch and Replace it with $ToReplace ( $ToSearch and $ToReplace are my variables in my script )
sed "s/$ToSearch/$ToReplace/" $file > $output
mv $output $file
In testing the script i found that... (3 Replies)
Discussion started by: rakeshkumar
3 Replies
4. Solaris
one quick question please.. is Solaris have a RECYLE BIN,or TRASH to retrive deleted files accidently ? (0 Replies)
Discussion started by: Sojourner
0 Replies
5. Shell Programming and Scripting
I'm trying to write a script that will empty all contents in a set of files in a directory - without deleting the files themselves.
I know the command (at BASH prompt) is: > (filename)
I'm iterating over all files in the directory and calling the > command thus :
FILES=*.log
for f in... (6 Replies)
Discussion started by: SixSigma1978
6 Replies
6. AIX
In our operating procedures, if a workstation has a space problem in the /var filesystem, one of the most frequent case we were told is the size of the /var/adm/wtmp file.
Someone once told me it is dangerous to do this. Is it ?
I cannot say for certain that whomever wrote that procedure is... (2 Replies)
Discussion started by: Browser_ice
2 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I deleted a file accidentally using rm-f inside a folder. Is there any option/command to retrive the file or is it possible to recover from trash? or once the file is deleted, it is gone completely?? (2 Replies)
Discussion started by: sydney2008
2 Replies
8. Shell Programming and Scripting
Hi,
I have a log file which is constantly being written to by some process. I need to clear that log file on a daily basis.
The problem is that when I issue this command:
echo "" > logfile.log
the file gets filled with nulls thus increasing the size of the file.
Is there a way to... (2 Replies)
Discussion started by: kasie4life
2 Replies
9. Linux
Hello
i am trying to empty the trash using rm or rmdir command . Any idea how to delete the folders and subfolders using one of the above commands?
Thank You (2 Replies)
Discussion started by: exhumation
2 Replies
gvfs-trash(1) User Commands gvfs-trash(1)
NAME
gvfs-trash - move a directory entry to the trash using the VFS system
SYNOPSIS
gvfs-trash URI
DESCRIPTION
gvfs-trash moves a directory entry to the trash using the VFS system.
OPERANDS
The following operands are supported:
URI Specifies the file location in standard URI format.
EXAMPLES
Example 1: Move a local file to the trash
example% gvfs-trash file:///tmp/example
Example 2: Move a remote object to the trash
example% gvfs-trash smb://server/dir/example
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables: NLSPATH.
EXIT STATUS
The exit value 0 is returned regardless of success or failure.
FILES
The following files are used by this application:
/usr/bin/gvfs-trash Executable to move a directory entry to the trash using the VFS system
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-gvfs |
+-----------------------------+-----------------------------+
|Interface stability |Volatile |
+-----------------------------+-----------------------------+
SEE ALSO
gvfs-copy(1), gvfs-info(1), gvfs-less(1), gvfs-ls(1), gvfs-mkdir(1) gvfs-monitor-dir(1), gvfs-monitor-file(1), gvfs-mount(1), gvfs-move(1),
gvfs-rename(1), gvfs-open(1), gvfs-cat(1), gvfs-save(1), gvfs-trash(1), gvfs-tree(1), attributes(5), environ(5)
NOTES
Written by Alvaro Lopez Ortega, Sun Microsystems Inc., 2008.
SunOS 5.11 25 Mar 2008 gvfs-trash(1)