The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
1answer
65 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
13 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, ...
0
votes
4answers
111 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 ...
4
votes
3answers
2k 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 ...
2
votes
1answer
1k 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
482 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
2k 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 ...
1
vote
1answer
694 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?
2
votes
2answers
3k 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
9k 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
189 views

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

As the title above, I cannot use yum command after I mount like below. mount /dev/xvdb3 /usr Filesystem Size Used Avail Use% Mounted on /dev/xvda ...
0
votes
4answers
142 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
444 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 ...
3
votes
2answers
2k 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
1k 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 ...
1
vote
1answer
531 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, ...
9
votes
2answers
2k views

How to implement package install suggestion on Debian?

I have noticed that while on Ubuntu, if I type the following: mc and it isnt installed, I get the message below: The program 'mc' is currently not installed. You can install it by typing: sudo ...
3
votes
1answer
267 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
2k 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 ...
7
votes
3answers
3k 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 ...
5
votes
2answers
15k 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 ...
3
votes
2answers
3k 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 ...
14
votes
3answers
11k 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 ...