| Monu |
Posted: May 21, 2008 12:53:11 AM |
Total Post: 26
Joined: Jan, 2008
|
hi all,
what is dot (.) and double dot (..) in linux, when we use ls -a
could any one explain it in brief?
Thanks. |
|
|
MSB |
| Posted: May 21, 2008 01:59:30 AM | |
|
Total Post: 19
Joined: May, 2008
|
$ ls -a
Shows you all files, even files that are hidden (these files begin with a dot "."). Those hidden files are normally system files.
And the double dot (..) indicates the parent directory.
/home/oracle $ pwd
/home/oracle
/home/oracle $ cd ..
/home $ pwd
/home
|
|
|
|
|
fozturk |
| Posted: May 21, 2008 02:01:39 AM | |
|
Total Post: 69
Joined: Sep, 2007
|
i am not an expert on linux but as far as i know two dots(..) is the parent folder of your current folder.
|
|
|
|
|
Murtuja |
| Posted: May 21, 2008 02:02:56 AM | |
|
Total Post: 857
Joined: Jan, 2006
|
The single dot represent the current directory, and double dot directory is the upper current directory.
Read from below site for more info
http://www.labtestproject.com/linuxcmd/cd_command.html
|
|
|
|
|
positive |
| Posted: Jun 27, 2008 02:17:12 PM | |
|
Total Post: 483
Joined: Jun, 2008
|
Hi
. - present working directory/current working directory - the directory in which the user is at present
.. - one directory before the current directory
ls -a - listing of hidden files in the current directory.Hidden files start with '.'prefix like .xauthority.
ls command doesn't list those files.So we can use ls -a command instead.
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |