Results 1 to 7 of 7

Thread: Find out the file extension for an unknown file type?

  1. #1
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,454
    Distro
    Ubuntu Mate

    Question Find out the file extension for an unknown file type?

    Is there a terminal or GUI method to find out the file extension for an unknown file type?

    I right click and goto Properties and get "unknown (application/octet-stream)".

    In this case I know it is a truecrypt file but if I did not know - how could I find out?

    This would be handy for future reference.
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

  2. #2
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Find out the file extension for an unknown file type?

    Code:
    file <file you want to know about>
    Will tell you as much as linux knows about them. Truecrypt seems to create a binary file (?), so unless TrueCrypt has a MIME type, it probably won't say much.

  3. #3
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,454
    Distro
    Ubuntu Mate

    Re: Find out the file extension for an unknown file type?

    Quote Originally Posted by MG&TL View Post
    Code:
    file <file you want to know about>
    Will tell you as much as linux knows about them. Truecrypt seems to create a binary file (?), so unless TrueCrypt has a MIME type, it probably won't say much.
    Thanks.

    Code:
    file myfile
    output
    Code:
    myfile: data
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

  4. #4
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Find out the file extension for an unknown file type?

    PhotoRec is good at identifying files from the file content, so maybe it can identify some file, that file cannot manage.

  5. #5
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,454
    Distro
    Ubuntu Mate

    Wink Re: Find out the file extension for an unknown file type?

    Quote Originally Posted by sudodus View Post
    PhotoRec is good at identifying files from the file content, so maybe it can identify some file, that file cannot manage.
    Thank you sudodus.
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

  6. #6
    Join Date
    Sep 2010
    Beans
    898

    Re: Find out the file extension for an unknown file type?

    Quote Originally Posted by Rytron View Post
    In this case I know it is a truecrypt file but if I did not know - how could I find out?
    I know you're using Truecrypt only as an example, but it's desirable that Truecrypt containers not be easily identifiable as such, since they're used to hide information.

  7. #7
    Join Date
    Feb 2008
    Location
    Munster, Ireland
    Beans
    2,454
    Distro
    Ubuntu Mate

    Lightbulb Re: Find out the file extension for an unknown file type?

    Quote Originally Posted by Dave_L View Post
    I know you're using Truecrypt only as an example, but it's desirable that Truecrypt containers not be easily identifiable as such, since they're used to hide information.
    Yes, good point.
    1st Distro used (live CD): Knoppix in early 2007 ¦ 1st Distro Installed: Ubuntu 7.10 in Feb 2008
    GNU/Linux User #470660 – Ubuntu User #28226
    Isaac Asimov: "I do not fear computers. I fear the lack of them."

Tags for this Thread

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
  •