Sir,
I don't see any difference between ls and ls -A.
The output of both the commands are same.
If there is any difference what is that?
I didn't understand the man page of ls -A
What is ls -A ?
Sir,
I don't see any difference between ls and ls -A.
The output of both the commands are same.
If there is any difference what is that?
I didn't understand the man page of ls -A
What is ls -A ?
Hi
The "ls" command by default ignores files where the name starts with a period (.) and they don't appear in the listing. The "-a" option lists all files, including those with filenames starting with a period. This includes the filenames for the current directory (.) and the parent directory (..). The "-A" option lists almost all the files by omitting the (.) and (..) entries.
Hope that helps.
Why the parent directory file is kept in the current directory?
".." is a link to the parent directory. The command "cd .." navigates from the current directory to its parent.
No,
It is now shown as a link.
It is still shown as a directory by the ls command.
WHY?
What?
. and .. are directories. What do you mean ".." is shown as a link?
http://xkcd.com/293/
There are 10 kinds of people in this world: Those who understand ternary, those who don't, and those who confuse it with binary.
Dont miss anything even it is small. one small pin is enough to bring down a man.
Why the current directory contains a parent directory?
Because if it didn't, how would you navigate? You'd only be able to go one way through the filing system.
http://xkcd.com/293/
There are 10 kinds of people in this world: Those who understand ternary, those who don't, and those who confuse it with binary.
Bookmarks