在 Debian(Linux)上没有 Windows 的 Notepad,但可以用功能类似的文本编辑器来“开 Notepad 一样用”。下面按常见情况给你几种方法:
gedit(GNOME 自带,最像记事本)sudo apt update
sudo apt install gedit
打开:
gedit 文件名.txt
或直接在菜单里搜 Text Editor / 文本编辑器
mousepad(XFCE,轻量)sudo apt install mousepad
mousepad 文件名.txt
leafpad(极简)sudo apt install leafpad
leafpad 文件名.txt
nano(最简单,推荐新手)nano 文件名.txt
Ctrl + O 保存Ctrl + X 退出vim(强大但有点难)vim 文件名.txt
i 进入编辑Esc → 输入 :wq 保存退出sudo apt install wine
wine notepad.exe
(需要你自己有 notepad.exe)
sudo apt install wine
wine Notepad++.exe
geditmousepadnano如果你告诉我:
我可以给你更精确的一条命令。