[Novalug] Elementory command line question

Nino Pereira pereira at speakeasy.net
Sun Feb 21 09:07:06 EST 2010



cmhowe at patriot.net wrote:
> List,
> 
> Whst's my mistake?
> 
> I verify, using
> 
>   ls -l ./chasmhowe/*
> 
> that my files are all there, and I also verify, using
> 
>   vi ./chasmhowe/particular-file
> 
> that particular-file is intact. But I can't put it in the obvious place by
> doing
> 
>   cp ./chasmhowe/particular-file /chasmhowe/
> 
> I know this because doing so generates the warning
> 
>   cp: target '/chasmhowe/' is not a target
> 
> What should I do? 

You can avoid a lot of typing by doing those commands
from the directory that the files are in, not from another directory.
Your commands are done from the directory '/home', not from your home
directory which is '/home/chasmhowe'. Your 'particular file' is already
in its obvious place, viz., the home directory.

So, do this:

cd
(this command should put you into your home directory: verify with ls -l)

then do

vi particular-file
(verify that the file is still the same).

Now, I'd suggest not to leave the file in your home directory, but to make
another directory where you put all the files of this particular type, with
this particular content, or however you want to organize things. Say, you want
to call this new directory 'stuff'.

You do:

mkdir stuff
cp particular-file stuff
ls -l stuff

and you should see your 'particular-file' in the directory stuff.

HTH,

Nino

called ' Bonus points for explaining why.
> 
> Charlie the Perpetual Newbie
> 
> 
> 
> 
> _______________________________________________
> Novalug mailing list
> Novalug at calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug
> 
> 



More information about the Novalug mailing list