LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2018, 10:55 PM   #1
Chelis
LQ Newbie
 
Registered: Nov 2018
Posts: 1

Rep: Reputation: Disabled
Post I canīt make a command


A few days ago, I want to install MSI in Linux, so I follow a guide that says I need to set something in "PATH", so I finish the installation, but now that I want to work with shell, the terminal tells me that "x" command is not in "/usr/bin/x", I think that I need to reset my environment variables, but I donīt know how.

Picture:
https://prnt.sc/lijacf

Pd: Sorry for my poor English
 
Old 11-14-2018, 11:40 PM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,340

Rep: Reputation: 224Reputation: 224Reputation: 224
What does
Code:
echo $PATH
return? In what directory is the command you want to run?

Linux executes the commands it finds in the directories specified by PATH. You can make it anything you want with
Code:
PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:$HOME/bin
, for example. Or you can specify the complete path of the command you want to run, as in
Code:
 /opt/bin/furshlugginer
. This forum is English only, even the pictures, so translate first, please.
 
Old 11-15-2018, 12:00 AM   #3
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 4,104

Rep: Reputation: 1146Reputation: 1146Reputation: 1146Reputation: 1146Reputation: 1146Reputation: 1146Reputation: 1146Reputation: 1146Reputation: 1146
The error messages say that /usr/bin and /bin are missing in PATH. My guess: rather than adding “something” to PATH, you replaced the value of PATH with “something”.

It’s easy to repair this, but first, how did you change PATH?

Last edited by berndbausch; 11-15-2018 at 12:01 AM.
 
Old 11-15-2018, 12:16 AM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,340

Rep: Reputation: 224Reputation: 224Reputation: 224
My guess: He was instructed to add something to his path with a command such as
Code:
PATH=$PATH:/opt/bin
and he made a mistake.
 
Old 11-15-2018, 12:34 AM   #5
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 4,104

Rep: Reputation: 1146Reputation: 1146Reputation: 1146Reputation: 1146Reputation: 1146Reputation: 1146Reputation: 1146Reputation: 1146Reputation: 1146
Quote:
Originally Posted by RandomTroll View Post
My guess: He was instructed to add something to his path with a command such as
Code:
PATH=$PATH:/opt/bin
and he made a mistake.
Possibly, but I want to know if the new broken PATH is set in one of the shell's profiles or RC files. If not, all that's required is logging off. If yes, more work is needed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] can thread make thread in C and if it can how many it can make? golden_boy615 Programming 1 08-08-2011 04:16 AM
Help needed for make file problem : make: *** No rule to make target `flash', needed rameshsatyavaram Linux - Newbie 3 09-11-2008 03:13 AM
make install -vs- make then make install duncanbball Linux - Newbie 3 12-15-2005 01:44 PM
How to make rule for make install and make uninstall melinda_sayang Programming 1 06-14-2004 06:58 AM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 04:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration