Sample Header Ad - 728x90

Why ./home/Desktop is incorrect and ./Desktop is correct?

2 votes
4 answers
2833 views
I'm learning about Linux, started yesterday. I have a question which I couldn't answer from my book or Google. What is the difference between ./ and / in the shell? I'm asking this because when I run, for example, the command ./home/yogesh/Desktop/Books, I get this error: bash: ./home/yogesh/Desktop : No such file or directory However, on removing the dot it gives /home/yogesh/Desktop/Books : Is a directory Or, if I run /Desktop, it returns /Desktop : No such file or directory But on adding a dot before /, I get ./Desktop: is a directory What is the difference between ./ and /?
Asked by Yogesh Tripathi (171 rep)
May 16, 2015, 07:48 AM
Last activity: Feb 21, 2019, 02:00 PM