[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: 3 questions



The command cd .  (single period)  is described in one of my resources as
'change directory to current directory' . Why use such a command?  Nothing
in my man cd page about this.   


 

The dot '.' is an alias for the current directory, therefore cd . is a valid
command which will change to the current directory. This is, of course,
useless, although dot isn't - it's quite handy in commands such as cp

 

i.e. cp /root/log1 .

cheers,

Dave 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]