1

How can I open a file in LibreOffice Writer from terminal and be back at terminal to continue with other tasks?

For instance, if I insert

libreoffice CV*.odt

it will open the file in LibreOffice but I will be unable to proceed with further commands in that instance of terminal.

1

2 Answers 2

3

Very simple:

libreoffice CV*.odt &

The & at the end tells the terminal to run it in the background.

2
  • FYI as you are new here, if my answer was helpful, please consider accepting and/or upvoting :) Oct 26, 2016 at 11:51
  • Exactly what I was looking for! I accepted the answer but I still can't vote. Thank you
    – risc0
    Oct 26, 2016 at 12:41
2

The xdg-open utility which comes with a standard Ubuntu Desktop install will do this. It works not only for LibreOffice documents, but for any file or URL.

xdg-open opens the file with your preferred application, and returns immediately:

xdg-open CV*.odt

Tip: add alias o=xdg-open to ~/.bash_aliases to have a convenient shortcut:

o CV*.odt
o 'https://askubuntu.com/'
0

Not the answer you're looking for? Browse other questions tagged .