Windows 8 and 8.1 Forums


File Extension Change Doesn't Help in Linux

  1. #1


    Posts : 7
    Windows 8.1 Pro

    File Extension Change Doesn't Help in Linux


    I changed one of my pictures of an official document to a text file extension and put it in a folder of similar text file extensions.
    When I opened the folder in a linux operating system, I saw the image thumbnail (of the file with a text file extension) in the linux explorer.
    Apparently, I need to find another method of hiding official documents.
    (Yes, I have a simple file encrypting tool that can do that.)
    I wonder how it works in mac?

      My System SpecsSystem Spec

  2. #2


    Posts : 328
    Windows 8.1 (x64)


    While Linux recognizes file extensions to associate programs with files, it relies more on the magic number system. It's a number placed directly in the file (generally the first few bytes) which is then compared to a database.
    More info : file(1): determine file type - Linux man page

    For file managers, the association is based on Mime type which is based on file extension and magic number.

    Classic Mac OS used 4-characters type and creator code embedded in the file, not file extension to determine a file format. Not certain about Mac OS X, but I assume it's the same as Linux.
      My System SpecsSystem Spec

Related Threads
Hello! I have dictionary with .hlp extension. it had worked perfectly on Windows Xp, but it had stopped working after using Windows 8 until I installed a fix from microsoft website, today I found the fix for my windows 8.1 I installed it restarted the computer but it still doesn't work. the file...
My PC has "Hide extensions for known file types" checked to keep most types hidden. Using FileTypesMan, I have set .psd files to always have the extension shown. This only works for one user account! For all other users, the type remains hidden unless I uncheck "Hide extensions..." to show all...
Hi, I want to create a new file extension named ".emsof" and associate any text editor with it like notepad++ in windows 8.1 Moreover all of these files should be searched by having filter of "*.emsof" like any other ordinary files. Please guide me about how to do it? Thanks.
Hi all, I have a problem recently after I refreshed my file extension list. Now, my .themepack won't load the themes into personalisation settings. Instead, it loaded me desktop icon settings.. This is not the first, in fact almost all files that have .themepack extension. In order to load,...
I transferred many music files from a backup drive onto a new laptop running Windows 8, and found most renamed as numbered files with a .ptl extension. Found out that my backup drive (Seagate FreeAgent GoFlex) doesn't like long filenames and renames them as referenced above. ("ptl" stands for...
Hopefully I'm posting to the correct forum... I transferred many music files from a backup drive onto a new laptop running Win8, and found most renamed as numbered files with a .ptl extension. Found out that my backup drive (Seagate FreeAgent GoFlex) doesn't like long filenames and renames them...
It seems to me that windows 8 is fragile as to file extensions and changing default programs. Therefore, I want to save all file associations in the registry and be able to undo any mistakes I could make. Any ideas?
Eight Forums Android App Eight Forums IOS App Follow us on Facebook