Open MS-Word and MS-PowerPoint file under Linux/UNIX

You can use program like office application to open Ms-Word, Excel, and PowerPoint files under Linux, FreeBSD and other Unixish oses. If you are looking for command line based utilities then try out catdoc or catppt:

catdoc : Reads MS-Word file and puts its content as plain text on standard output. catdoc doesn’t attempt to extract formatting information other than tables from MS-Word document, so different output modes means mainly that different characters should be escaped and different ways used to represent characters, missing from output charset
$ catdoc filename.doc
$ catdoc filename.doc > /tmp/output.txt

catppt : Reads MS-PowerPoint file and puts its content on standard output
catppt filename.ppt
catdoc filename.ppt > /tmp/output.txt

You may need to install catdoc and catppt using apt-get, yum or FreeBSD ports collection:
# apt-get install catdoc catppt

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 8 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
8 comments… add one
  • Archit Jan 22, 2009 @ 13:54

    nice tuto…
    but problem with me is quit different…
    i now shifted to linux (red hat enterprise ed..) now problem with me is that i am not able to open my ms word files in open office,I get someting like this msg :
    “Unable to open document”
    “Unhandeled MIME type:”application/msword””

    plz help me coz they are really important documents of me and my family…
    Thanking you bof u r above litrature.
    Hoping u r kind co-operation

  • ritish k desai Jan 28, 2009 @ 10:12

    i want to know that i can use excel file in linux as well as in microsoft? if yes pls. tell me how? pls. send detail on my mail

  • bharat prajapati Apr 1, 2010 @ 9:44

    i m not able to open powerpoint files in linux….
    how can i check is in my rhel 5..
    if not..than how can i install

    • salma Jun 29, 2011 @ 9:50

      I can,t open some of my powerpoint file ( it said ,it is in adiffrent conversion )

  • Ashok Oct 13, 2012 @ 5:41

    Dear sir
    I hv shifted to ubantuu linux platfirm fir thin client. Now word fike in windows when opened with openorg, its firmating n appearance is disturbed. How to resolve as i need to use knly openorg in linux?

  • Wilder Apr 1, 2013 @ 9:05

    hi,i met a problem with catppt, it doesn’t cat the content of file which is a .ppt type created by MS office 2003.

  • Michael G. Myhera Dec 18, 2013 @ 17:51

    Linux sucks. Use Solaris.

  • saswati Jan 10, 2014 @ 15:33

    Dear Sir,
    when I a working in a table in word document I am unable to find the ‘Text Direction’ option as like windows operating system. So kindly help me.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum