2
File extensions help both operating systems and users distinguish between different file formats and understand the contents stored inside them. When you see a file with the “.txt” extension, you instantly know it contains text data. Similarly, “.exe” file is a Windows executable and “.sh” files are Linux shell scripts.