Ubuntu下“Notepad”的獲取與基礎使用
Ubuntu系統沒有原生的Windows Notepad,但可通過以下方式獲得類似體驗:
sudo snap install notepad-plus-plus
。安裝完成后,點擊桌面左下角“顯示應用程序”,輸入“Notepad”即可打開。若需漢化菜單,可進入“Settings→Preferences→Localization”,選擇“中文簡體”并重啟軟件。sudo apt install gedit
。若想創建“Notepad”快捷方式,可執行以下步驟:創建notepad.desktop
文件(gedit ~/notepad.desktop
),粘貼以下內容:[Desktop Entry]
Type=Application
Name=Notepad
Comment=A simple text editor
Exec=/usr/bin/gedit %U
Icon=/usr/share/icons/ubuntu-mono-dark/apps/64/gedit.svg
Terminal=false
MimeType=text/plain;
Categories=Utility;TextEditor;
Actions=New;
[Desktop Action New]
Name=Open
Exec=/usr/bin/gedit %U
OnlyShowIn=Unity;
保存后賦予執行權限(chmod +x ~/notepad.desktop
),即可在桌面找到“Notepad”快捷方式。新手必學基礎操作
Ctrl+X
(退出并保存)、Ctrl+O
(打開)、Ctrl+N
(新建)操作。Ctrl+C
復制、Ctrl+X
剪切、Ctrl+V
粘貼;Ctrl+Z
撤銷、Ctrl+Y
重做;Ctrl+A
全選文本。Page Up
(上一頁)、Page Down
(下一頁)、Shift+Page Up
(向上滾動一行)、Shift+Page Down
(向下滾動一行)。提升效率的實用技巧
Ctrl+F
打開“查找”框,輸入關鍵字可快速定位(支持正則表達式);Ctrl+H
打開“替換”框,輸入需替換的內容和目標內容,點擊“全部替換”即可批量修改。CRLF
、Linux的LF
),幫助識別換行格式,避免跨系統文件格式問題。