sudo dedit 这个命令不能用了?
Tofloor
poster avatar
o0******00@163.com
deepin
2020-12-30 22:18
Author
sudo dedit /etc/default/grub
报:dedit:找不到命令

求助。
Reply Favorite View the author
All Replies
liwl
deepin
2020-12-30 22:19
#1

deepin-editor

Reply View the author
macaiyun0629
deepin
2020-12-30 22:23
#2

deepin-editor名字那么长,打得也不爽

Reply View the author
SamLukeYes
deepin
2020-12-30 22:34
#3
macaiyun0629

deepin-editor名字那么长,打得也不爽

可以 sudo nano;或者直接用 vscode,保存的时候如果写入失败会提示你提权

Reply View the author
177******94
deepin
2020-12-30 22:43
#4

dedit多好,干嘛那么长

Reply View the author
177******94
deepin
2020-12-30 22:46
#5

我发现你头像是倒的

Reply View the author
cloudseasail
deepin
2020-12-30 22:57
#6

sudo vi ~/.bash_aliases

    alias dedit="deepin-editor"

Reply View the author
老咸鱼
deepin
2020-12-30 23:02
#7

可以恢复使用的

有版主发过一条命令

论坛搜索dedit就找到了

另一个帖子也是说dedit用不了的

Reply View the author
相对湿度
deepin
2020-12-30 23:20
#8

sudo ln -sf /bin/deepin-editor /bin/dedit

Reply View the author
macaiyun0629
deepin
2020-12-31 19:31
#9
SamLukeYes

可以 sudo nano;或者直接用 vscode,保存的时候如果写入失败会提示你提权

用nano还不如用vim、vi,这个还天天用,用到dedit一般就是跨应用复制粘贴的时候用的多,dedit启动速度可比vscode快多了,用软链接或环境变量能解决名称过长的问题,缺点是在别人的电脑上用就不习惯了

Reply View the author
SamLukeYes
deepin
2020-12-31 19:37
#10
macaiyun0629

用nano还不如用vim、vi,这个还天天用,用到dedit一般就是跨应用复制粘贴的时候用的多,dedit启动速度可比vscode快多了,用软链接或环境变量能解决名称过长的问题,缺点是在别人的电脑上用就不习惯了

反正终端里的文本编辑器那么多,哪个习惯就用哪个呗

Reply View the author
强迫症晚期患者
deepin
2021-01-01 01:12
#11

dedit 其实只是一个软连接连接到deepin-editor这个可执行文件上的。官方可能有其他的考虑给删了吧。你再手动给连接上去不就行了?!

sudo ln -s /usr/bin/deepin-editor /usr/bin/editor

Reply View the author
kirin2020
deepin
2021-01-01 02:19
#12

在终端输入以下命令,然后回车就可以用啦

sudo ln -s /usr/bin/deepin-editor /usr/bin/dedit

Reply View the author