Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [command-not-found]

The tag has no usage guidance.

2
votes
1answer
61 views

Command not found message [duplicate]

When running invalid commands without any parameters or options, in my experience we get only two kinds of messages which are exemplified below: ~$ Date No command 'Date' found, did you mean: ...
0
votes
1answer
59 views

bash: ucbps: command not found

How do I solve this? bash: ucbps: command not found [cbwlskbd@cbl06677app08 ~]$ Where to include the path for this? and how the paths are included
0
votes
1answer
41 views

redhat/bash - two equals scripts, one get “command not found” error [duplicate]

I did write two scripts, where one has part simple code of the other ones and several comments in: user : oracle both files are of oracle. both files have the execution clearance on : chmod +x fpc.sh ...
2
votes
1answer
109 views

Why is it that everytime I mistype a command bash stops working? [closed]

Every time I mistype a command such as cd.. (e.g. I forgot to separate cdand .. with a space) the command prompt disappears and I can no longer use commands in the terminal unless I close and reopen ...
-2
votes
1answer
2k views

Commands not found on Debian9 stretch OS [closed]

I need to add commands found in /usr/bin to my root/home directory search path because I recently formatted my dell inspiron amd64 bit with Debian 9 stretch. I only installed the core os without any ...
0
votes
1answer
345 views

Debug update-command-not-found on Debian

What is the problem I am having with command-not-found? Is it a known bug? $ dpkg-query --show command-not-found command-not-found 0.2.38-4 $ installme Could not find the list of available ...
-1
votes
1answer
142 views

sort-bed command not found

I have the following code " not mine" wget -qO- http://hgdownload.cse.ucsc.edu/goldenPath/hg19/database/snp142Common.txt.gz \ | gunzip -c - \ | cut -f2,3,4,5,10 - \ | sort-bed - \ &...
1
vote
1answer
269 views

Sudo says “command not found” for script in EncFS (no root access to EncFS mount?)

When an encrypted directory is mounted using EncFS as a regular user, you cannot execute a script in it with sudo (as root): $ sudo /run/media/yeti/usbdrive/encfs/test.sh sudo: /run/media/yeti/...
3
votes
1answer
5k views

How to get `command-not-found` work on Debian Stretch

I have setup two Debian Stretch systems, one new installation by 'netinst' CD, one upgrade from Jessie. After that, I have installed the command-not-found package. apt install command-not-found The ...
1
vote
0answers
111 views

Find out which repository package provides a command

When the package command-not-found is installed, a package is suggested if a command is invoked which is not installed, for instance $ convert The program 'convert' is currently not installed. To ...
1
vote
1answer
4k views

pkg install -forge general bash: pkg: command not found

I'm running Debian stretch and want to be able to run my MATLAB code, using the GNU Octave packages. I type this into terminal pkg install -forge general and it gives me this error bash: pkg: ...
3
votes
2answers
4k views

resize2fs command not found

I want to resize EC2 EBS root volume, I tried to install e2fsprogs but it's still "not found". I'm using debian 8. How do I install this application?
2
votes
1answer
853 views

bash: zpool: command not found

After a lot of hassle, I finally managed to install the newest spl-dkms and zfs-dkms on my Raspbian. Sadly I still can neither use the zpool nor the zfs command to list or change any ZFS pools. Is ...
2
votes
2answers
956 views

Give advice for bash command not found

When type a nonexistent command, bash show "command not found...". In ubuntu, it will give advice for which package need to be installed; In Fedora, nothing show. So which software has this function ...
3
votes
1answer
122 views

Command-not-found not triggered for 'crash' in ZSH without reason

I just typed crash in my ZSH (from oh-my-zsh if that matters) and I got peculiar answer: zsh: permission denied: crash instead of the usual command-not-found behaviour expected (since I have that ...
1
vote
1answer
438 views

How to define a function that handles `command not found`?

I'd like to define a function that is called, whenever a shell-user types a command that does not exist. In my case I'd like to log the errors and try alternative commands. currently, when typing e.g....
0
votes
2answers
921 views

Bash Command Not Found Error with $variable

108 ps --ppid $process | while read -r line ; do 109 #echo $line | awk '{print $1;} 110 child=$($line | awk '{print $1;}') 111 echo $child 113 done Running this code gives me the ...
4
votes
3answers
761 views

Unauthorized Installations in dnf after entering a command that's not found

I'm using Korora 23, which is based on Fedora 23. Whenever I type a command in bash that's not available, bash asks if I want to install a package to provide the command. Problem is, if I type y, it ...
10
votes
1answer
2k views

update-command-not-found Not Working

So I am running Debian Testing, and I installed the command-not-found package, because I just love that functionality in Ubuntu. So I installed it, and when I restarted my terminal, it said I needed ...
8
votes
3answers
3k views

No command 'bla' found, did you mean:?

So, when a command is not found, by what means is the "did you mean:" list populated? What program finds these alternate commands? What is the meaning of: "(main), (universe)..."? Can I change which ...
1
vote
1answer
1k views

Debian: “update-command-not-found” IOError: Not a gzipped file

I run a random command in terminal and got this response: Could not find the database of available applications, run update-command-not-found as root to fix this Naturally, I run update-...
6
votes
1answer
338 views

How to get automatic package suggestions at command line?

I use Fedora 23. In an older version of Fedora (or maybe it was Ubuntu), I used to get package suggestions at the command line (Bash) when a command wasn't found. I liked this. $ glmark2 Command not ...
-1
votes
1answer
6k views

ssh error bash: 22: command not found

I am pretty new to unix, so please bare with me... when i try to connect to my server running ubuntu server through terminal on my ubuntu workstation I get this error: bash: 22: command not found ...
1
vote
1answer
772 views

fedora “bash: : command not found” for `ps aux | grep dnf`

I have installed fedora 23 and this error happened when i want to use grep in su mode user : [root@alifed alireza]# ps aux |‌ grep dnf bash: ‌: command not found...
2
votes
1answer
203 views

What is the difference between the error “not found” and the error “command not found” are they the same?

In this question the user is getting the error "not found". I realized that the error is "not found" instead of "command not found". Are these two errors different? I'm not sure if I've just never ...
5
votes
1answer
778 views

How do I make a custom “command not found” prompt for the terminal?

I want to make a custom "command not found" prompt for the terminal like this one. I have the template set up: ___________________________________________ / I see you're trying to use the ...
0
votes
0answers
16 views

What shell extension recommends packages if command is not found and how to update it? [duplicate]

I know this question might sound a little strange but i really don't know how to describe it better. On my Debian system I have a shell extension for bash that, whenever I enter an unknown command, ...
1
vote
4answers
363 views

Is there a quick way to install packages if there is a prompt?

If I want to install a package, wlhunag: ~ $ pip install django The program 'pip' is currently not installed. You can install it by typing: sudo apt-get install python-pip wlhunag: ~ $ I wonder if ...
8
votes
3answers
9k views

Why is this command not working: “ps aux | grep xscreensaver”

I didn't see any hits about this on google, so I'm asking you: I just tried to run this command in an ssh session, local is Debian Wheezy KDE, remote is Fedora 21 Gnome: ps aux | grep xscreensaver ...
11
votes
1answer
18k views

Root shell sees pip but sudo pip “command not found”

I have installed python 2.7.8 via make and make install and then pip via get-pip. I have to note that I work behind a proxy which I have set up via http_proxy ftp_proxy https_proxy in my user's ~/....
1
vote
3answers
1k views

Execute a file if a command is not found

When I try to execute files in Linux, I'm always annoyed by the need to write ./executablefile instead of just executablefile. I get why it's done, so it won't have an ambigous input, one that is a ...
1
vote
3answers
7k views

I get a “command not found” error, though the script file is shown by “ls”

I want to run yii console commands in shell. I run protected/yiic in the console, yet it fails, yielding -bash: yiic: command not found What's the problem? See the shell commands and responses I ...
2
votes
1answer
8k views

What does typing a single apostrophe do in terminal? [duplicate]

I typed in a single ' by accident and I got this as a result and exited out of it after typing ' in again. ' > > ' : command not found What does this do?
3
votes
3answers
9k views

uuencode Command not found but man working fine

I am trying to mail using uuencode but it says command not found while if I check man, I get it proper without any error. Is it that my binary has gone and just docs remaining ? This is unusal though !...
0
votes
2answers
14k views

Bash script returns “command not found” when outside the source folder

under my directory, /home/lucas/bin I have the following script term_multiscreen: [lucas@lucas-ThinkPad-W520]~$ sudo cat bin/term_multiscreen #!/bin/bash # Initializes ...
-1
votes
1answer
451 views

I cannot use yum command and ssh after mount drive.(CentOS)

I cannot use yum command after I mount like below. mount /dev/xvdb3 /usr Filesystem Size Used Avail Use% Mounted on /dev/xvda 9.9G 1.9G 7.6G 20% /...
0
votes
4answers
220 views

Can I have the shell ignore the command line sometimes but not always?

For debugging purpose sometimes I access a remote Linux box via VNC. At that time someone else may be working on that same Linux box through VNC and it may happen that I do not have facility to chat ...
2
votes
1answer
2k views

Command not found in zsh [duplicate]

In bash, whenever I try to run a command which is not installed, I get a message which tells that the package is not installed and how to install it. This functionality is provided by installing the ...
5
votes
3answers
8k views

Catch “command not found” from shell script

I have a shell script echo "Type your command" read command echo "You typed $command" $command so it's simple it runs a command.My question is if the input is wrong suppose lw the terminal says ...
3
votes
2answers
3k views

python3 traceback error

Whenever I mistype any command in terminal instead of getting Error:Command not found I get this python message error Traceback (most recent call last): File "/usr/lib/python3.3/site.py", line ...
2
votes
1answer
2k views

how to locally redefine 'command_not_found_handle'?

I'd like to make a particular bash script failfast when it cannot find a command, while retaining globally the usual friendly command_not_found behavior. E.g., if I save the following to /tmp/foo.sh, ....
17
votes
2answers
8k views

How to implement package install suggestion on Debian?

I have noticed that while on Ubuntu, if I type the following: mc and it isn't installed, I get the message below: The program 'mc' is currently not installed. You can install it by typing: sudo apt-...
6
votes
1answer
540 views

How can I configure zsh to let it explain to me where I can retrieve an executable instead of saying file not found?

In the default configuration of bash in ubuntu, when you type the name of a software which is not installed, bash explains how to install it if the executable if it exists, or how to install an ...
4
votes
3answers
3k views

Opening a PDF file by typing its name

I am on Mac OS X and I usually open PDF files from the terminal (using bash) open myfile.pdf Now I'd be able to type only myfile.pdf and have that opened with the command above. Is there any ...
17
votes
4answers
5k views

Why a long delay after command not found?

Often when I mistype a command such as ls (e.g. I hit ENTER before I type 's') there is a long (~2s) delay after the terminal displays: bash: l: command not found... I can understand the reasons for ...
23
votes
2answers
43k views

Why does sh say “not found” when it's definitely there? [duplicate]

Possible Duplicate: “No such file or directory” lies on Optware installed binaries I'm trying to add ebtables to a little router box. I went and got a binary compiled for the correct ...
3
votes
2answers
5k views

Running C Programs on Linux

I watched a video lecture today that introduced C and things like how to make a C program that will run in Linux. I followed the steps given and now I'm stuck with a bit of a problem. I created my C ...
18
votes
4answers
18k views

What is the proper way to manage multiple python versions?

I have a machine with Python 2.6 installed as the default Python. Then, I installed Python 2.7, and manually created /usr/bin/python as a symlink to the new installation. Then, I was running into ...