use*_*399 9 command-line word-documents
当我试图从终端打开一个 word 文档时,我使用了 wvWare 和其他一些相同的命令,但我无法得到它。任何人都可以帮助我!
从技术上讲xdg-open应该适用于所有文件类型。它只会在适当的应用程序中打开它们。默认情况下,所有文档 mime 类型都映射到 Libre Office,因此这应该可以正常工作:
xdg-open document.doc
Run Code Online (Sandbox Code Playgroud)
您可以通过以下命令在 libre-office-writer 的帮助下打开它(使用 libre office writer 打开):
lowriter "<path/to/file>"
Run Code Online (Sandbox Code Playgroud)
来自man libreoffice:
姓名
libreoffice - LibreOffice 办公套件
概要
libreoffice [--accept=accept-string] [--base] [--calc] [--convert-to output_file_extension[:output_filter_name] [--outdir]
output_dir] 文件]... [--display display] [--draw] [--global] [--headless] [--help|-h|-?] [--impress] [--invisible]
[--infilter=""] [--math] [--minimized] [-n 文件]... [--nodefault] [--nolockcheck] [--nologo] [--norestore] [-o
文件]... [-p 文件...] [--print-to-file [--printer-name 打印机名称] [--outdir output_dir] 文件]... [--pt 打印机名称
文件...] [--show Impress 文件]... [--unaccept=accept-string] [--terminate_after_init] [--view file]... [--web]
[--writer] [文件...]
叶基
本地c
画画
模板
loimpress
洛马斯
洛布
作家
描述
LibreOffice(简称 LO)是一个多平台的办公生产力套件。