I use LibreOffice Writer a lot, but I really do hate getting around in a GUI, I much prefer the CLI, so is there any way to open a file using LibreOffice Writer through the Terminal?


You can do it by

libreoffice --writer file.odt

If it is an odt file, you can open it just by

libreoffice file.odt

Some file formats can be opened by different LO applications, then you need to specify which one to use.

  • Short and powerful =) – A.B. Aug 10 '15 at 12:29
  • 2
    If its a csv or xls file then ` libreoffice --calc /path/to/file.csv. You can get more info by man libreoffice` – SohelAhmedM Nov 18 '16 at 9:14
  • 1
    To launch a brand new file like this you need to first create it, touch file.odt && libreoffice --writer file.odt – cardamom Sep 19 '17 at 11:06
  • If you want a new file, there is no need to touch it. You can just start libreoffice --writer then save the file after you edit it. – Pilot6 Sep 19 '17 at 11:09
  • I get an error when opening files straight with the --writer option. but when i run touch first it works fine. – Hermann Ingjaldsson Oct 25 '18 at 12:17

protected by Community Jul 9 '17 at 8:20

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?