意外地“rm clear”

意外地“rm clear”

我正在删除目录中的某些文件,没有注意到输入了 rm,我输入了 clear 来清空终端。但是,这不小心删除了该命令。我尝试重新安装它,但无济于事:

naveen@naveen-hp:~$ clear

Command 'clear' not found, but can be installed with:

sudo apt install ncurses-bin

naveen@naveen-hp:~$ sudo apt install ncurses-bin
[sudo] password for naveen:             
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ncurses-bin is already the newest version (6.2-0ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
naveen@naveen-hp:~$ clear

Command 'clear' not found, but can be installed with:

sudo apt install ncurses-bin

naveen@naveen-hp:~$ 

我正在使用带有 Gnome 的 Ubuntu 20.04LTS。现在如何恢复该命令?

答案1

sudo apt install --reinstall ncurses-bin如果您删除了一个组件,则应该重新安装所有组件。

相关内容