Running a program from terminal, âcommand not foundâ
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
I'm new to Ubuntu, and trying to start opening and running programs directly from the terminal. I've tried this multiple times with different programs, and always get the same error -- "command not found". I've tried running programs both from the main directory and from the sub-folder the program is in, but neither work.
Any tips?
Here's what I've been getting:
When I try running in the folder:
Julia@a-capella: ~Documents/events_adc$ nuetrino_s1_1
nuetrino_s1_1: command not found
When I try running from the main directory:
ulia@a-capella: ~$ nuetrino_s1_1
nuetrino_s1_1: command not found
Oddly enough, firefox (and no other programs I've tried) will run from here.
Thanks!
command-line
add a comment |Â
up vote
2
down vote
favorite
I'm new to Ubuntu, and trying to start opening and running programs directly from the terminal. I've tried this multiple times with different programs, and always get the same error -- "command not found". I've tried running programs both from the main directory and from the sub-folder the program is in, but neither work.
Any tips?
Here's what I've been getting:
When I try running in the folder:
Julia@a-capella: ~Documents/events_adc$ nuetrino_s1_1
nuetrino_s1_1: command not found
When I try running from the main directory:
ulia@a-capella: ~$ nuetrino_s1_1
nuetrino_s1_1: command not found
Oddly enough, firefox (and no other programs I've tried) will run from here.
Thanks!
command-line
4
If you type the commandecho $PATH
it will display your command path; ie. where commands are searched. Your current directory would be shown as a "." if its there (i very much doubt it) which is what you're probably missing. The easiest way to run commands in your current directory is "./nuetrino_s1_1" (the './ ' part tells the system to look for it in the current directory {or $PWD])
â guiverc
Feb 8 at 22:18
My guess is that - the file must have executable permissions to be executed.
â pa4080
Feb 8 at 22:44
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I'm new to Ubuntu, and trying to start opening and running programs directly from the terminal. I've tried this multiple times with different programs, and always get the same error -- "command not found". I've tried running programs both from the main directory and from the sub-folder the program is in, but neither work.
Any tips?
Here's what I've been getting:
When I try running in the folder:
Julia@a-capella: ~Documents/events_adc$ nuetrino_s1_1
nuetrino_s1_1: command not found
When I try running from the main directory:
ulia@a-capella: ~$ nuetrino_s1_1
nuetrino_s1_1: command not found
Oddly enough, firefox (and no other programs I've tried) will run from here.
Thanks!
command-line
I'm new to Ubuntu, and trying to start opening and running programs directly from the terminal. I've tried this multiple times with different programs, and always get the same error -- "command not found". I've tried running programs both from the main directory and from the sub-folder the program is in, but neither work.
Any tips?
Here's what I've been getting:
When I try running in the folder:
Julia@a-capella: ~Documents/events_adc$ nuetrino_s1_1
nuetrino_s1_1: command not found
When I try running from the main directory:
ulia@a-capella: ~$ nuetrino_s1_1
nuetrino_s1_1: command not found
Oddly enough, firefox (and no other programs I've tried) will run from here.
Thanks!
command-line
command-line
edited Feb 8 at 22:19
N0rbert
16.6k33479
16.6k33479
asked Feb 8 at 22:12
Julia Book
1613
1613
4
If you type the commandecho $PATH
it will display your command path; ie. where commands are searched. Your current directory would be shown as a "." if its there (i very much doubt it) which is what you're probably missing. The easiest way to run commands in your current directory is "./nuetrino_s1_1" (the './ ' part tells the system to look for it in the current directory {or $PWD])
â guiverc
Feb 8 at 22:18
My guess is that - the file must have executable permissions to be executed.
â pa4080
Feb 8 at 22:44
add a comment |Â
4
If you type the commandecho $PATH
it will display your command path; ie. where commands are searched. Your current directory would be shown as a "." if its there (i very much doubt it) which is what you're probably missing. The easiest way to run commands in your current directory is "./nuetrino_s1_1" (the './ ' part tells the system to look for it in the current directory {or $PWD])
â guiverc
Feb 8 at 22:18
My guess is that - the file must have executable permissions to be executed.
â pa4080
Feb 8 at 22:44
4
4
If you type the command
echo $PATH
it will display your command path; ie. where commands are searched. Your current directory would be shown as a "." if its there (i very much doubt it) which is what you're probably missing. The easiest way to run commands in your current directory is "./nuetrino_s1_1" (the './ ' part tells the system to look for it in the current directory {or $PWD])â guiverc
Feb 8 at 22:18
If you type the command
echo $PATH
it will display your command path; ie. where commands are searched. Your current directory would be shown as a "." if its there (i very much doubt it) which is what you're probably missing. The easiest way to run commands in your current directory is "./nuetrino_s1_1" (the './ ' part tells the system to look for it in the current directory {or $PWD])â guiverc
Feb 8 at 22:18
My guess is that - the file must have executable permissions to be executed.
â pa4080
Feb 8 at 22:44
My guess is that - the file must have executable permissions to be executed.
â pa4080
Feb 8 at 22:44
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
If you type the command
echo $PATH
it will display your command path, or where commands are searched for. Your current directory would be shown as a "." if its there (i very much doubt it) which is what you're probably missing.
The easiest way to run commands in your current directory is:
./nuetrino_s1_1
The ./
part tells the system to look for the command in the current directory [or $PWD, or present.working.directory].
You can add "." to your $PATH (so it searches your present.working.directory for commands) which at first feels great as you no longer have to type "./command", but in my experience you'll keep tripping over it on other machines that don't do it; so you'll end up typing "./command" even if "." is in path. ie. my 2c is just learn to type ./command
â guiverc
Feb 8 at 22:32
1
Adding "." to $PATH is a really BAD idea. It allows all kind of attacks to happen (for exemple : if you put it first, anyone can hijack your session by having a "ls" or other program in a directory you happen to be in. Or even if you put it last, having common typos program there ("sl" "gerp" etc). And there are many other bad security side effects in addition to those. Do NOT put "." in your $PATH.
â Olivier Dulac
Mar 23 at 17:49
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
If you type the command
echo $PATH
it will display your command path, or where commands are searched for. Your current directory would be shown as a "." if its there (i very much doubt it) which is what you're probably missing.
The easiest way to run commands in your current directory is:
./nuetrino_s1_1
The ./
part tells the system to look for the command in the current directory [or $PWD, or present.working.directory].
You can add "." to your $PATH (so it searches your present.working.directory for commands) which at first feels great as you no longer have to type "./command", but in my experience you'll keep tripping over it on other machines that don't do it; so you'll end up typing "./command" even if "." is in path. ie. my 2c is just learn to type ./command
â guiverc
Feb 8 at 22:32
1
Adding "." to $PATH is a really BAD idea. It allows all kind of attacks to happen (for exemple : if you put it first, anyone can hijack your session by having a "ls" or other program in a directory you happen to be in. Or even if you put it last, having common typos program there ("sl" "gerp" etc). And there are many other bad security side effects in addition to those. Do NOT put "." in your $PATH.
â Olivier Dulac
Mar 23 at 17:49
add a comment |Â
up vote
1
down vote
accepted
If you type the command
echo $PATH
it will display your command path, or where commands are searched for. Your current directory would be shown as a "." if its there (i very much doubt it) which is what you're probably missing.
The easiest way to run commands in your current directory is:
./nuetrino_s1_1
The ./
part tells the system to look for the command in the current directory [or $PWD, or present.working.directory].
You can add "." to your $PATH (so it searches your present.working.directory for commands) which at first feels great as you no longer have to type "./command", but in my experience you'll keep tripping over it on other machines that don't do it; so you'll end up typing "./command" even if "." is in path. ie. my 2c is just learn to type ./command
â guiverc
Feb 8 at 22:32
1
Adding "." to $PATH is a really BAD idea. It allows all kind of attacks to happen (for exemple : if you put it first, anyone can hijack your session by having a "ls" or other program in a directory you happen to be in. Or even if you put it last, having common typos program there ("sl" "gerp" etc). And there are many other bad security side effects in addition to those. Do NOT put "." in your $PATH.
â Olivier Dulac
Mar 23 at 17:49
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
If you type the command
echo $PATH
it will display your command path, or where commands are searched for. Your current directory would be shown as a "." if its there (i very much doubt it) which is what you're probably missing.
The easiest way to run commands in your current directory is:
./nuetrino_s1_1
The ./
part tells the system to look for the command in the current directory [or $PWD, or present.working.directory].
If you type the command
echo $PATH
it will display your command path, or where commands are searched for. Your current directory would be shown as a "." if its there (i very much doubt it) which is what you're probably missing.
The easiest way to run commands in your current directory is:
./nuetrino_s1_1
The ./
part tells the system to look for the command in the current directory [or $PWD, or present.working.directory].
edited Feb 8 at 22:48
![](https://i.stack.imgur.com/9L8vd.png?s=32&g=1)
![](https://i.stack.imgur.com/9L8vd.png?s=32&g=1)
dessert
20k55795
20k55795
answered Feb 8 at 22:27
![](https://lh4.googleusercontent.com/-weQLu1Im8es/AAAAAAAAAAI/AAAAAAAABEg/4bXLPukGRgA/photo.jpg?sz=32)
![](https://lh4.googleusercontent.com/-weQLu1Im8es/AAAAAAAAAAI/AAAAAAAABEg/4bXLPukGRgA/photo.jpg?sz=32)
guiverc
3,72811422
3,72811422
You can add "." to your $PATH (so it searches your present.working.directory for commands) which at first feels great as you no longer have to type "./command", but in my experience you'll keep tripping over it on other machines that don't do it; so you'll end up typing "./command" even if "." is in path. ie. my 2c is just learn to type ./command
â guiverc
Feb 8 at 22:32
1
Adding "." to $PATH is a really BAD idea. It allows all kind of attacks to happen (for exemple : if you put it first, anyone can hijack your session by having a "ls" or other program in a directory you happen to be in. Or even if you put it last, having common typos program there ("sl" "gerp" etc). And there are many other bad security side effects in addition to those. Do NOT put "." in your $PATH.
â Olivier Dulac
Mar 23 at 17:49
add a comment |Â
You can add "." to your $PATH (so it searches your present.working.directory for commands) which at first feels great as you no longer have to type "./command", but in my experience you'll keep tripping over it on other machines that don't do it; so you'll end up typing "./command" even if "." is in path. ie. my 2c is just learn to type ./command
â guiverc
Feb 8 at 22:32
1
Adding "." to $PATH is a really BAD idea. It allows all kind of attacks to happen (for exemple : if you put it first, anyone can hijack your session by having a "ls" or other program in a directory you happen to be in. Or even if you put it last, having common typos program there ("sl" "gerp" etc). And there are many other bad security side effects in addition to those. Do NOT put "." in your $PATH.
â Olivier Dulac
Mar 23 at 17:49
You can add "." to your $PATH (so it searches your present.working.directory for commands) which at first feels great as you no longer have to type "./command", but in my experience you'll keep tripping over it on other machines that don't do it; so you'll end up typing "./command" even if "." is in path. ie. my 2c is just learn to type ./command
â guiverc
Feb 8 at 22:32
You can add "." to your $PATH (so it searches your present.working.directory for commands) which at first feels great as you no longer have to type "./command", but in my experience you'll keep tripping over it on other machines that don't do it; so you'll end up typing "./command" even if "." is in path. ie. my 2c is just learn to type ./command
â guiverc
Feb 8 at 22:32
1
1
Adding "." to $PATH is a really BAD idea. It allows all kind of attacks to happen (for exemple : if you put it first, anyone can hijack your session by having a "ls" or other program in a directory you happen to be in. Or even if you put it last, having common typos program there ("sl" "gerp" etc). And there are many other bad security side effects in addition to those. Do NOT put "." in your $PATH.
â Olivier Dulac
Mar 23 at 17:49
Adding "." to $PATH is a really BAD idea. It allows all kind of attacks to happen (for exemple : if you put it first, anyone can hijack your session by having a "ls" or other program in a directory you happen to be in. Or even if you put it last, having common typos program there ("sl" "gerp" etc). And there are many other bad security side effects in addition to those. Do NOT put "." in your $PATH.
â Olivier Dulac
Mar 23 at 17:49
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004373%2frunning-a-program-from-terminal-command-not-found%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
4
If you type the command
echo $PATH
it will display your command path; ie. where commands are searched. Your current directory would be shown as a "." if its there (i very much doubt it) which is what you're probably missing. The easiest way to run commands in your current directory is "./nuetrino_s1_1" (the './ ' part tells the system to look for it in the current directory {or $PWD])â guiverc
Feb 8 at 22:18
My guess is that - the file must have executable permissions to be executed.
â pa4080
Feb 8 at 22:44