Results 1 to 3 of 3
Hi everybody.
I've been messing with options for ls and started using the -d option ( how very useful it is too) but if i use it as a single ...
- 03-28-2007 #1
ls -d
Hi everybody.
I've been messing with options for ls and started using the -d option ( how very useful it is too) but if i use it as a single option on a directory ie....
i'll get a dot (.) displayed and thats all. So i i guess this is the config file from within the directory but why does it give me this? And what exactly is in the . and .. directories anyway?ls -d /my directory
" I didn't know it was a picture of his wife! I thought it was a publicity shot form Planet Of the Apes."
- 03-28-2007 #2
A single dot is an alias for the current directory; two dots represent the parent directory.
Try just "ls ." and see how the output compares to "ls" or even "ls $PWD".Stand up and be counted as a Linux user!
- 03-28-2007 #3
You can also do 'cd ..' and it will go one directory up. Pretty useful.


Reply With Quote