This is a noobie linux question.
I cannot seem to find a simple linux command to do the following:
mv /one/long/path/on/a/partition/file
/another/path/on/another/partition/file
i.e. simply move a file around across directories and partitions. The
names and paths are not necessarily the
logical american website.read...@gmail.com writes:
So far all that I have been able to do is
mkdir /another
cd another
mkdir path
cd path
mkdir on
cd on
mkdir another
cd another
mkdir partition
cd partition
cp /one/long/path/on/a/partition/file .
mkdir -p
logical american wrote circa 10-09-29 04:38 PM:
This is a noobie linux question.
I cannot seem to find a simple linux command to do the following:
mv /one/long/path/on/a/partition/file
/another/path/on/another/partition/file
[...]
Isn't there an easy way to do this?
How about:
$
On Wed, Sep 29, 2010 at 04:51:24PM -0700, glen e. p. ropella wrote:
logical american wrote circa 10-09-29 04:38 PM:
This is a noobie linux question.
I cannot seem to find a simple linux command to do the following:
mv /one/long/path/on/a/partition/file
On Wed, Sep 29, 2010 at 05:17:02PM -0700, Michael Rasmussen wrote:
On Wed, Sep 29, 2010 at 04:51:24PM -0700, glen e. p. ropella wrote:
logical american wrote circa 10-09-29 04:38 PM:
This is a noobie linux question.
I cannot seem to find a simple linux command to do the following:
mv /one/long/path/on/a/partition/file
/another/path/on/another/partition/file
mkdir -p /another/path/on/another/partition
mv /one/long/path/on/a/partition/file /another/path/on/another/partition/file
--
Hal Pomeranz, Founder/CEO Deer Run Associates h...@deer-run.com
Computer
On Wed, Sep 29, 2010 at 5:47 PM, logical american
website.read...@gmail.com wrote:
So there really isn't one single command, is there?
I don't believe there is, but I think it's an easy script to write.
Something like this should do:
--Rogan
#!/bin/bash
#
# this has only been *very*
Michael Rasmussen wrote:
$ mkdir -p /another/path/on/another/partition/
$ mv /one/long/path/on/a/partition/file !!$
!!$ can be shortened to !$
--
Galen Seitz
gal...@seitzassoc.com
___
PLUG mailing list
PLUG@lists.pdxlinux.org
On Wed, Sep 29, 2010 at 05:47:48PM -0700, logical american wrote:
either
$ mkdir -p /another/path/on/another/partition/ mv
/one/long/path/on/a/partition/file /another/path/on/another/partition/
or
$ mkdir -p /another/path/on/another/partition/
$ mv
You are wanting to do two things:
make a new directory
copy something into it
Why should there be a single command for it?
Actually I was looking at this from a C++ point of view. You have a
simple file.open() command for source and destination. This command
includes the path +
To all:
Thanks for your suggestions, I went ahead and looked at the cp source
code and some C++ programming references and created a copy command
which does have the full path in both the source and destination files.
The tricky part is getting a suitable size read buffer, particularly
when
On 09/29/2010 06:58 PM, Galen Seitz wrote:
Michael Rasmussen wrote:
$ mkdir -p /another/path/on/another/partition/
$ mv /one/long/path/on/a/partition/file !!$
!!$ can be shortened to !$
I'm not sure if anyone has explained yet that these !-variables have to
do with bash's history.
12 matches
Mail list logo