SCIENTIFIC-LINUX-USERS Archives

March 2007

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Troy Dawson <[log in to unmask]>
Reply To:
Troy Dawson <[log in to unmask]>
Date:
Wed, 28 Mar 2007 08:16:48 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
Hi Ionnis,
What John wrote was correct, but I just want to make sure that you 
recognize what he said.
The current directory is  . (period in english)
The directory just above your directory is  .. (two periods)

So if you were in /from/path/dir/ and you did a
   cd .
You would still be in the same directory, and if you did a
   cd ..
You would then be in /from/path/
There is no ... if you were wondering.

You can actually see these periods by doing a

   ls -a
or a
   ls -la

Troy

John Hill wrote:
> cp /from/path/file .
> 
> will copy "file" into the current directory. More generally
> 
> cp /from/path/file ./file2
> 
> to change the file name.
> 
> Regards,
> 
> John
> 
> Ioannis Vranos wrote:
>> How may one specify the current directory as destination, for example 
>> to "cp", without
>> writing the full path?
>>
>>
>> Thanks.


-- 
__________________________________________________
Troy Dawson  [log in to unmask]  (630)840-6468
Fermilab  ComputingDivision/LCSI/CSI DSS Group
__________________________________________________

ATOM RSS1 RSS2