校准命令不起作用

lea*_*ner 4 command-line bash calendar

我试图通过终端中的“cal”命令访问日历,但出现错误消息。

hetz@hetz-Lappy:~$ cal
bash: cal: command not found
Run Code Online (Sandbox Code Playgroud)

Mar*_*ton 8

我建议首先安装command-not-found以帮助解决如下错误:

sudo apt install command-not-found
Run Code Online (Sandbox Code Playgroud)

然后打开一个新终端以确保其功能在其中可用。

现在,当您尝试运行时cal,您将收到一条更有用的错误消息,它会告诉您要安装哪个包:

Command 'cal' not found, but can be installed with:
sudo apt install ncal
Run Code Online (Sandbox Code Playgroud)