|
Can we undo operations done in a terminal, for example, file deletion through rm ?
Solutions Obtained:
1. Aliasing 2. Undelete Utilities 3. Backup Utilities 4. [LibCrash][1] 5. Versioning (FUSE)
Started by cdb on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at superuser):
You could try some of the various undelete utilities using rm you will....
In terminal to your recycle bin (on KDE and Gnome):
alias trsh='mv --target-directory=$HOME/.Trash'
There is no recycle bin for the command line.
|
|
As requested, here is your sticky for trading scripts.
**CAVEAT EMPTOR: Use these scripts at your own risk. Minimal knowledge of shell/perl scripting should be considered a prerequisite to using these scripts. Know what the script is doing before you ...
Started by SickBoy on
, 20 posts
by 10 people.
Answer Snippets (Read the full thread at overclockers):
Features:
recycle ("recycle" file), this moves the file to the bin, when it does though and the compressed....
It is acutally 4 scripts, and I think it is a bit big to post browser .
I made a "recycle bin" script (bash).
|
|
On Thu, 1 Jul 2010 14:24:37 -0700, Slide <slide.o.mix@gmail.com
I am seeing a VERY odd problem. If I run "/usr/bin/rm -rf
//computer/share/path/to/dir" to remove a directory on a network
share. I get some directories created with names like
.XXXfffff...
Started by Slide on
, 13 posts
by 4 people.
Answer Snippets (Read the full thread at omgili):
Remote shares
usually don't have a recycle bin and for the unlink() mechanism I
decided [main] rm 9536 Program....
It utilizes the
recycle bin directory of local drives for this mechanism.
You say *only* for local drives.
|
Ask your Facebook Friends
|
On Sat, 10 May 2008 12:49:32 +0100, Stephen Kennedy <steve@sdkennedy.com
I've searched the mailing list so believe this isn't a FAQ; apologies if
it is.
There have been several threads on the mailing list about replicating
Windows' recycle bin...
Started by Stephen Kennedy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at omgili):
The bin is just a convenient place to move files, not tested.)....
Echo ' -i prompt before every removal'
echo ' --help display this help and exit from the recycle bin functionality in
the Explorer GUI.
Recycle Bin.
|
|
Suppose that you have two huge files (several GB) that you want to concatenate together, but that you have very little spare disk space (let's say a couple hundred MB). That is, given file1 and file2 , you want to end up with a single file which is the...
Started by Adam Rosenfield on
, 16 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
Probably only of use > file3 rm file1 rm file2 gunzip file3
"fiemap"
http://www.mjmwired.net/kernel/Documentation.
Virtual memory, "recycle bin" or similar).
Used by OS functionality (e.g.
|
|
On my Mac and any other Unix machine, when I delete a file by any of the several available methods ( rm on the command line, drag to trash, press delete key) it usually happens instantly. Occasionally it takes a few seconds if it's a huge file.
On Windows...
Started by Ethan on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
And you ....
You can permanently bypass the Recycle Bin by changing the configuration of the Recycle Bin.
Emptying the bin will solve the problem.
Might be slow if you keep many files in your Recycle Bin .
|
|
Hi,
Just deleted my ~/.xsession-errors bigger than 8G bytes. The new file keeps growing by appending the "fDischargeMeanRate" message. What's happening?
(Linux 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010 x86_64 GNU/Linux)
Started by yvsong on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at ubuntuforums):
A simple....
Code: #!/bin/bash rm ~/.xsession-errors ln -s /dev/null ~/.xsession-errors bin manually.
Code: #!/bin/bash rm ~/.xsession everything written to it.
To /dev/null , effectively discarding everything written to it.
|
|
To keep my desktop tidy I create a folder called Tidy and dump stuff in there.
What are the best tools (Mac, windows or Linux) and or tricks to keep your desktop tidy?
Started by Bruce McLeod on
, 17 posts
by 16 people.
Answer Snippets (Read the full thread at superuser):
The article used to be at this address , but at the moment it seems: Instant Clean Desktop
Being... .
On Windows, have just two icons on the desktop: My Computer and Recycle Bin at the top left and bottom to a Windows or Linux system.
|
|
I had a user with more that 100,000 files in a single directory. The machine locks up and become unusable for a long time whilst the Explorer fills up memory and the machine can crash. Is there a simple way of dumping the directory and contents? We tried...
Started by David Allan Finch on
, 15 posts
by 15 people.
Answer Snippets (Read the full thread at serverfault):
Rinse, repeat :)
Reboot using a 'Live' Linux CD, the rm (explorer is trash) and....
Not sure (if you can), and then do the delete again .
Cut-and-paste it into the recycle bin, it should bypass trying to move every single file.
|
|
On Sat, 06 Jun 2009 11:37:50 -0400, Ellen <ellen@nospam.com.invalid
Thanks for all the creative and practical advice!
I haven't been able to log on to the newsgroup before now because
deltree effectively took out my net connection. After I ran...
Started by Ellen on
, 6 posts
by 3 people.
Answer Snippets (Read the full thread at omgili):
When logged into the ....
rm -r -f {the full drive and path} {look in media for the drive if
you need to} or
2.
Corrupted directory],
rm -r -f {the directory} (this may not work as Linux works from the
root would look like:
1.
|