9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] mv vs cp
@ 2001-10-07  6:29 Lucio De Re
  2001-10-07  6:42 ` Quinn Dunkan
  0 siblings, 1 reply; 5+ messages in thread
From: Lucio De Re @ 2001-10-07  6:29 UTC (permalink / raw)
  To: 9fans mailing list

Am I being utterly obtuse, or does it really make sense to duplicate
then delete files when moving them to another directory?

I had the distribution archives in /dist under "kfs" and decided to do
the following:

	% cd /dist
	% mkdir plan9
	% mv *.9gz plan9

the machine is still busy copying plan9.9gz :-(

In this case, a "rename" would have been appropriate.  Is it not
possible to determine whether it would work and resort to cp+rm if
it doesn't?

In fact, a rename command would be an adequate compromise.  I see
there's a "kfs" command called "rename" but the man page does not
specify its actual scope.  Should I have used that (one file at the
time) instead?

++L


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [9fans] mv vs cp
@ 2001-10-11  1:06 okamoto
  2001-10-11  8:40 ` Re[2]: " Matt
  0 siblings, 1 reply; 5+ messages in thread
From: okamoto @ 2001-10-11  1:06 UTC (permalink / raw)
  To: 9fans

>Before you start saying that shared /tmp or all-mighty root are bad ideas,

I hate all-mighty root user because s/he can read my mail box.

Kenji



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-10-11  8:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-07  6:29 [9fans] mv vs cp Lucio De Re
2001-10-07  6:42 ` Quinn Dunkan
2001-10-07  9:17   ` Lucio De Re
2001-10-07  9:26     ` Re[2]: " Matt
2001-10-11  1:06 okamoto
2001-10-11  8:40 ` Re[2]: " Matt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).