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
TRASH-EMPTY(1) General Commands Manual TRASH-EMPTY(1)
NAME
trash-empty - Empty for Command line trash utility.
SYNOPSIS
trash-empty [arguments]
DESCRIPTION
Remove for ever any trashed file and trashed directory. This command is a part of trash-cli package that provides a command line interface
trashcan utility compliant with the FreeDesktop.org Trash Specification. It remembers the name, original path, deletion date, and permis-
sions of each trashed file.
ARGUMENTS
To remove all trashed files, use 'emtpy-trash'.
To remove files that have been in the trash more than a given number of
days, use 'trash-empty x', 'x' representing the number of days.
EXAMPLES
$ date
Tue Feb 19 20:26:52 CET 2008
$ trash-list
2008-02-19 20:11:34 /home/einar/today
2008-02-18 20:11:34 /home/einar/yesterday
2008-02-10 20:11:34 /home/einar/last_week
$ trash-empty 7
$ trash-list
2008-02-19 20:11:34 /home/einar/today
2008-02-18 20:11:34 /home/einar/yesterday
$ trash-empty 1
$ trash-list
2008-02-19 20:11:34 /home/einar/today
$ trash-empty
$ trash-list
<none>
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-put(1), trash-restore(1), trash-list(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-EMPTY(1)