moving files using Konsole.

Hi all,

Now that I am starting to get more comfortable with Opensuse, I am starting to open the Konsole more and reading how to install applications.

Now, I would like to start to learn how to copy/move files and folders through command line.

What are some of the commands to copy/move files and folders?

Thanks,

Heeter

man cp & man mv are very interesting reads :wink:

Andy

Wow,

Right on,

Thanks deltaflyer, didn’t know about man.

Can I mv folders as well as files with same command? It just says files in man.

Thanks again,

Heeter

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes.

Good luck.

Heeter wrote:
> Wow,
>
> Right on,
>
> Thanks deltaflyer, didn’t know about man.
>
> Can I mv folders as well as files with same command? It just says files
> in man.
>
> Thanks again,
>
> Heeter
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI91rp3s42bA80+9kRAnM1AJ4hU75rvTNmXzdfyIYm1wzZc38CqQCcDeMl
AIVCjuOVVnJosFhmxizT+ag=
=/9mk
-----END PGP SIGNATURE-----

Heeter wrote:

> Now that I am starting to get more comfortable with Opensuse, I am
> starting to open the Konsole more and reading how to install
> applications.
>
> Now, I would like to start to learn how to copy/move files and folders
> through command line.
>
> What are some of the commands to copy/move files and folders?

Try mc. :slight_smile:

When you move a folder, you have to use -r (recursive) otherwise SuSe won’t know if it’s supposed to move everything within the folder.

Like this:

mv -r test /somewhere/here

or

cp -r test /somewhere/here

Actually, ‘mv’ doesn’t have a ‘-r’ flag. only ‘cp’. It is required with ‘cp’ when you want to copy directories.

g

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

No, that is completely untrue.

Good luck.

chyrania wrote:
> Heeter;1883919 Wrote:
>> Wow,
>>
>> Right on,
>>
>> Thanks deltaflyer, didn’t know about man.
>>
>> Can I mv folders as well as files with same command? It just says files
>> in man.
>>
>> Thanks again,
>>
>> Heeter
>
> When you move a folder, you have to use -r (recursive) otherwise SuSe
> won’t know if it’s supposed to move everything within the folder.
>
> Like this:
>
> mv -r test /somewhere/here
>
> or
>
> cp -r test /somewhere/here
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI+L8t3s42bA80+9kRAkP9AJ9CwSAXwZT+mNxfOWhiDfXkyl3lhgCfRPZW
Gqu9d8aKUDp3kNR1plljfnY=
=ja8n
-----END PGP SIGNATURE-----

I had no idea mv didn’t have an -r flag.

Thanks for that.