LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2011, 01:17 PM   #1
jkj110705
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Exclamation What program do I use to open an mth or htm file?


My midterm instructions are in mth format. I wouldn't even know what program to use to open in Windows. The actual midterm itself is an htm file. I need help ASAP. Can anybody help?
 
Old 03-04-2011, 01:28 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
htm should be Hypertext Markup (basically html, so any web browser should open). From google, *.mth appears to be Derive Math File, basically arithmetic operations allowed by a program. Not sure if that helps you at all. Try opening it with a text editor first.

What subject is this anyway?

EDIT: more google seems to indicate that Derive was an algebra program for Windows that was discontinued in 2007.

Last edited by pljvaldez; 03-04-2011 at 01:29 PM.
 
Old 03-04-2011, 02:55 PM   #3
jkj110705
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
LOL! Its for Art Appreciation. How odd. Can she really still be using that and expect everyone to have a program to run it if it was discontinued in 2007?
 
Old 03-04-2011, 03:16 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
That sounds unlikely. I guess it's time to call the professor and find out what it really is...
 
Old 03-04-2011, 03:20 PM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,208

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Its entirely possible that the professor has NO idea that they have saved it in some unreadable format.

 
Old 03-04-2011, 03:40 PM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Sometimes, the first few bytes of files have some hints about what kind of program is supposed to use/create them. It's spitballing, but try
Code:
od -tcx1 yourFile.ext
to see the first few hundred bytes of the file in ASCII & Hex. Post the results here, if it looks like it might be useful.
Maybe your instructor is dislexic: htm <==> mth

--- rod.

Last edited by theNbomr; 03-04-2011 at 03:42 PM.
 
Old 03-04-2011, 04:08 PM   #7
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,889

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Are you sure that's .mth and not .mht? If it's .mht, use the Opera browser to open it. You can change the .mht to .html and open it with another browser.

Last edited by bigrigdriver; 03-04-2011 at 04:18 PM.
 
Old 03-04-2011, 04:10 PM   #8
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,208

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Whoa whoa whoa.

Opera saves as MHT files, he said "mth" files (like "math")

Thats not fair :P I was cheated out of responding correctly!

(Just kidding )

Last edited by szboardstretcher; 03-04-2011 at 04:11 PM.
 
Old 03-05-2011, 08:20 AM   #9
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,093

Rep: Reputation: 197Reputation: 197
If I don't know what type of file a file is, the first thing I do is

Code:
$ file filename
Doesn't always help though.


Quote:
Originally Posted by szboardstretcher View Post
Its entirely possible that the professor has NO idea that they have saved it in some unreadable format.
So true. In my experience most people don't give any thought to the best file format to distribute something in (almost never Microsoft Word ) or whether the recipient will be able to open it.
 
1 members found this post helpful.
Old 03-05-2011, 12:53 PM   #10
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Pardon me if this sounds dumb, but are you sure it's not just another *.htm file and the instructor just typoed on the file extension? Have you already tried opening it in a text editor as has been suggested?
 
Old 03-05-2011, 01:34 PM   #11
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
You should be aware that Linux (like almost all UNIX based systems) does not use a "file extension" convention to identify file types. Each program reads its input files and looks for a "magic number" in the file which tells it what type of input is in the file. If there is no "magic number," the file is assumed to be a text file.

If a program expects a specific type of input file, it will (usually) report an error if it finds the wrong input file type.

The file command, noted above, reports the meaning of a file's "magic number".

Since you are working on an "Art Appreciation" class, I'd try opening the file with gimp in the hope that it was some type of picture format that gimp could read.
 
Old 03-08-2011, 08:06 PM   #12
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Quote:
You should be aware that Linux (like almost all UNIX based systems) does not use a "file extension" convention to identify file types. Each program reads its input files and looks for a "magic number" in the file which tells it what type of input is in the file.
One thing I've noticed is that apparently not all programs use the "magic number" method...graphical file managers tend to use extensions if they're provided.

EDIT: Example:
  • I create an empty file called "something.png" using touch.
  • I give the file contents, e.g. the text "The quick brown fox jumps over the lazy dog."
  • I view the file listing in a graphical file manager (e.g. Thunar in Xfce), and it lists its type as a PNG image, when it's actually a plain text file.

Last edited by MrCode; 03-08-2011 at 08:21 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help Trying to open or run a file/program through a c++ program xskycamefalling Programming 4 01-19-2010 02:26 PM
Need help Trying to open or run a file/program through a c++ program xskycamefalling Programming 2 01-18-2010 02:51 PM
backup file *.htm --> * .htm.bak rvoigt Linux - General 4 06-25-2005 04:39 PM
index.htm doesn't open instead it show up merlin740 LinuxQuestions.org Member Success Stories 2 10-04-2004 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration