|
Posted by Chris F.A. Johnson on 07/31/06 07:27
On 2006-07-31, Toby Inkster wrote:
[snip]
> Anyone who knows a little about UNIX (and indeed Windows) directory
> structure should know that every directory (except the root one) contains
> two special subdirectories:
>
> . (a reference back to itself)
> .. (a reference to its parent)
>
> so "cd ." does nothing, as does "cd ././.". (The root directory doesn't
> contain "..", but does still contain ".".)
The systems I use have .. in the root directory, e.g.:
$ ls -la /
total 92
drwxr-xr-x 24 root root 4096 Jul 30 04:02 .
drwxr-xr-x 24 root root 4096 Jul 30 04:02 ..
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Navigation:
[Reply to this message]
|