[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help! Accidentally started deleting /usr



> mv will NOT move stuff across filesystems ( partitions )

What do you mean? take a look of info mv:

------------------------------------------------------------------
 `mv' can move any type of file from one filesystem to another.
Prior to version `4.0' of the fileutils, `mv' could move only regular
files between filesystems.  For example, now `mv' can move an entire
directory hierarchy including special device files from one partition
to another.  It first uses some of the same code that's used by `cp -a'
to copy the requested directories and files, then (assuming the copy
succeeded) it removes the originals.  If the copy fails, then the part
that was copied to the destination partition is removed.  If you were
to copy three directories from one partition to another and the copy of
the first directory succeeded, but the second didn't, the first would
be left on the destination partion and the second and third would be
left on the original partition.
------------------------------------------------------------------------

> so the "myrm" shown below will NOT work "properly"...

It will.

> 	- it'd make things worst ... half is still stuck in /usr
> 	and the files that were moved is ins $backup_dir

Just an opinion. 

Anyway if you dont like mv(1) just use gzip tar and cp they will make a
better work..

For better information take a look at Stevens about how the mv(1) command
uses to work... it is very efficient.. 

Regards

Roberto

------------------------------------------------------------------------
Roberto Diaz <rdiazmartin@vivaldi.dhis.org>
http://vivaldi.dhis.org
Powered by GNU running on a Linux kernel.
Powered by Debian (The real wonder)

Concerto Grosso Op. 3/8 A minor
Antonio Vivaldi (so... do you need beautiful words?)
------------------------------------------------------------------------



Reply to: