It will show the shell as well as the the path from home
directory to the current directory.
eg: say we are in diretory swaroopa and swaroopa is there in
the home directory here is the o/p
bash: /home/swaroopa/..: is a directory
Swaroopa kalgi
It will list the files and directories of the current user
parent's login directory
i.e.
If the current user smith login directory is "/home/smith",
then the parent's login directory is "/home"
In this example, the files and directories in "/home" are
listed.
It will list the files and directories of the current user
parent's login directory
i.e.
If the current user smith login directory is "/home/smith",
then the parent's login directory is "/home"
In this example, the files and directories in "/home" are
listed.
It prints the directories and file which is in your parent
directory.
If u are logged in root ..it will show contents of /
directory.
If u are logged in /home/sandesh ....it will show contents
of /home directory .
~/ means the user login directory.
it will list all the contents of the root directory.
doesn't matter in which section of the file or directory
you are working in whenever you will give this command it
will always list the contents of the root directory.