PDA

View Full Version : [SOLVED] Stuck at "cp File1 directory"



drofart
October 5th, 2011, 06:59 PM
kitten@mistress-s-kitten:/media/9450402750401302/document/EBOOKS$ cp palm*.pdf viirus
cp: target `viirus' is not a directory
kitten@mistress-s-kitten:/media/9450402750401302/document/EBOOKS$ cp palm*.pdf msc
cp: target `msc' is not a directory
kitten@mistress-s-kitten:/media/9450402750401302/document/EBOOKS$ cp palm*.pdf misc
cp: target `misc' is not a directory
kitten@mistress-s-kitten:/media/9450402750401302/document/EBOOKS$ cp palm*.pdf /misc
cp: target `/misc' is not a directory
kitten@mistress-s-kitten:/media/9450402750401302/document/EBOOKS$


I want a lil help here. Any one plz help me out ! where is the problem?

nothingspecial
October 5th, 2011, 07:05 PM
The attachment is difficult to read but it doesn't look like thr subdirectories you are trying to move your files into exist.

nothingspecial
October 5th, 2011, 07:13 PM
From what I can tell your viirus directory is 2 levels up in the tree, so


cp palm*.pdf ../../viirus

drofart
October 5th, 2011, 07:16 PM
The attachment is difficult to read but it doesn't look like thr subdirectories you are trying to move your files into exist.
thank u dear for reply . I m not sure how cp command act on which directory i hav to put command at destination dir. or source dir. or from root i thought from root i can't plz tell me where i shoud i give cp command . & if i can only cp my files to a sub dir. ?

nothingspecial
October 5th, 2011, 07:17 PM
Try the command above

drofart
October 5th, 2011, 07:22 PM
From what I can tell your viirus directory is 2 levels up in the tree, so


cp palm*.pdf ../../viirus
Thank u i got it a lil. would u plz tellme where can i ger more described documentation abt it?

nothingspecial
October 5th, 2011, 07:30 PM
Well it's not the cp command so much as bash and the directory structure.

Try

http://mywiki.wooledge.org/BashGuide

drofart
October 5th, 2011, 07:32 PM
Try the command above
Thank u again it works .ok if "../" is for up the tree what for down the tree? please this last one.

nothingspecial
October 5th, 2011, 07:37 PM
It's not as simple as that because there can be only one parent directory but many child directories.

drofart
October 5th, 2011, 07:41 PM
Well it's not the cp command so much as bash and the directory structure.

Try

http://mywiki.wooledge.org/BashGuide
thank u for ur help & valuable time.

drofart
October 5th, 2011, 07:43 PM
It's not as simple as that because there can be only one parent directory but many child directories.
ya i m now on "learning shell" by William Shotts , Just tring to migrate to linux.