CentOS下LibOffice的隐藏技巧与实用功能
libreoffice --writer
(文字处理器)、libreoffice --calc
(电子表格)、libreoffice --draw
(绘图)、libreoffice --web
(HTML文档),适合习惯终端操作的用户。--nologo
参数隐藏启动屏幕,--minimized
参数让程序在后台最小化启动,避免弹窗打扰。例如libreoffice --writer --nologo --minimized
。--view
参数打开文档,防止意外修改。例如libreoffice --view example.odt
,适合查看共享文档。--headless
(无界面)模式批量转换文件格式。例如将所有ODT文档转为EPUB:libreoffice --headless --convert-to epub *.odt
;转换多个格式时用通配符即可。-n
参数将现有文档作为模板打开,保留原格式用于新文档。例如libreoffice --writer -n example.odt
。.config/libreoffice/4/user/
中。可通过以下命令备份:find ~ -type d -name ".config/libreoffice" # 查找配置文件夹
cp -R ~/.config/libreoffice /home/yourusername/backups/ # 复制到备份目录
tar czvf libreoffice-backup-$(date +%Y%m%d).tar.gz /home/yourusername/backups/libreoffice # 压缩备份
此方法可防止配置丢失。Ctrl+Enter
强制换行(不新增段落)、Ctrl+5
强制分页、Ctrl+Shift+J
悬挂缩进(适合参考文献格式)。Alt+D+S
快速排序数据、Alt+D+F
开启数据筛选、Alt+=
快速插入求和公式、F4
重复上一步操作(如复制格式、插入行)。Shift+F5
从当前页开始放映、B
键黑屏(聚焦观众注意力)、Ctrl+Shift+C/V
复制粘贴格式(保持样式一致)。