![]() ![]() Older tutorials on the web still mention using this command but you cannot use it anymore in newer Linux versions. This deprecated command was used for getting Ip address and other network interface information. You’ll have to find an alternative command to achieve the result. In some cases, popular commands may get discontinued and you may not even install it anymore. You may have to install the missing command You can use your distribution’s package manager to install it. If the command you are trying to run is not a popular, common command, you’ll have to install it first. While your Linux distribution comes with a huge number of commands installed by default, it is not possible to pre-install all the command line tools in a system. You cannot run a command if it is not installed already. This is another common reason behind the command not found error. Method 2: Ensure that the command is installed on your system ![]() So, make double sure what you are typing. Take a look at the example below, where I have misspelled the common ls command. Use of uppercase and lowercase characters.The use of 1 (numeral one), I (capital i) and l (lowercase L).The spaces between the command and its options.It is possible that the command you entered has a typo (spelling mistake). It is human to make mistakes, specially while typing. Fixing “bash: command not found” error Method 1: Double check the command name (no, seriously) Let’s go in detail on each possible root cause. The command is basically an executable script and its location is not known.It’s a typo and the command name is misspelled. ![]() There could be three possible reasons why it cannot find the command: Your shell (or Linux system) cannot find the command you entered. The error gives some hint already when it says “bash: command not found”. You have to do a little bit of troubleshooting on your own. There is no straightforward, single solution to this error. But sometimes, you’ll encounter issues where the terminal shows ‘command not found’ error. When you use commands in Linux, you expect to see an output. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |