What is the difference between a file without an extension and a folder? What I mean exactly is that when I create a file in the terminal, for example:
touch somefile
then delete that file and create a directory with the same name:
mkdir somefile
they look the same in ls
. How to differentiate between them without using cd somefile
?
Also, I don't know how files without extensions work in Linux. I couldn't find an article on the internet, so I wish you can help me with it.