Results 1 to 3 of 3

Thread: File types

  1. #1
    Join Date
    Oct 2007
    Beans
    74

    File types

    How does the OS determine what kind of file a particular file is?

    For example, I have two java files.

    The first outputted this:
    file TumbleItem.java
    TumbleItem.java: Perl5 module source text

    The second outputted this:
    file ProxyServer.java
    ProxyServer.java: ASCII C program text

    Both really don't make sense, but how did the OS make that determination. Also, it possible to manually set the file type?

  2. #2

    Re: File types

    Magic numbers, of course.

  3. #3
    Join Date
    Oct 2007
    Beans
    74

    Re: File types

    So is there a way to change this?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •