You are not logged in.

#1 2020-11-14 14:25:32

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

[SOLVED] Error cp: -r not specified; omitting directory

Hello
I can not copy the theme I downloaded for plank here
Can you help?

[root@spy /]# cp /home/babak/Hdk/ /usr/share/plank/theme
cp: -r not specified; omitting directory '/home/babak/Hdk/'

Last edited by SPYAM (2020-11-14 15:18:11)


Only progress!

Offline

#2 2020-11-14 14:37:32

Irets
Member
Registered: 2019-02-01
Posts: 143

Re: [SOLVED] Error cp: -r not specified; omitting directory

The -r flag needs to be used when copying folders.
See the manual for cp for usage & examples.

Last edited by Irets (2020-11-14 14:46:20)

Offline

#3 2020-11-14 14:45:47

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: [SOLVED] Error cp: -r not specified; omitting directory

Irets wrote:

The -r flag needs to be used when copying folders.
See the manual for cp.

[root@spy /]# cp -r /home/babak/Hdk /usr/share/plank/theme
cp: cannot stat '/home/babak/Hdk': No such file or directory


Only progress!

Offline

#4 2020-11-14 14:58:36

Irets
Member
Registered: 2019-02-01
Posts: 143

Re: [SOLVED] Error cp: -r not specified; omitting directory

Did you have a typo when specifying the directory of where you're copying from?
If not, post the output of

file /home/babak/Hdk

(Assuming that this file/folder is your downloaded theme)

Last edited by Irets (2020-11-14 15:00:26)

Offline

#5 2020-11-14 15:04:10

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: [SOLVED] Error cp: -r not specified; omitting directory

Irets wrote:

Did you have a typo when specifying the directory of where you're copying from?
If not, post the output of

file /home/babak/Hdk

(Assuming that this file/folder is your downloaded theme)

I renamed this file but could not copy it again

[root@spy babak]# cat /home/babak/v11/
cat: /home/babak/v11/: Is a directory

[root@spy babak]# cp -r /home/babak/v11 /usr/share/plank/theme
cp: cannot overwrite non-directory '/usr/share/plank/theme' with directory '/home/babak/v11'

Only progress!

Offline

#6 2020-11-14 15:15:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,516
Website

Re: [SOLVED] Error cp: -r not specified; omitting directory

You should copy it to the director "themes" not the file "theme":

cp -r /home/babak/v11 /usr/share/plank/themes/

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2020-11-14 15:17:53

SPYAM
Member
From: IRAN
Registered: 2020-11-12
Posts: 156

Re: [SOLVED] Error cp: -r not specified; omitting directory

Trilby wrote:

You should copy it to the director "themes" not the file "theme":

cp -r /home/babak/v11 /usr/share/plank/themes/

Thanks resolved
Sorry, I did not notice that I was writing themes

Last edited by SPYAM (2020-11-14 15:18:40)


Only progress!

Offline

#8 2020-11-14 15:19:39

Irets
Member
Registered: 2019-02-01
Posts: 143

Re: [SOLVED] Error cp: -r not specified; omitting directory

Trilby wrote:

You should copy it to the director "themes" not the file "theme":

cp -r /home/babak/v11 /usr/share/plank/themes/

Good catch, I glanced over that & completely missed it.

Offline

Board footer

Powered by FluxBB