help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to call something when a command is not found?


From: Peng Yu
Subject: How to call something when a command is not found?
Date: Tue, 9 Mar 2021 15:39:26 -0600

Hi,

On ubuntu, if a command is not found, it will be prompt to get it
installed. Does anybody know this is achieved in bash? Thanks.

$ shc
Command 'shc' not found, but can be installed with:
sudo apt install shc
Do you want to install it? (N/y)y

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]