LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2015, 09:35 AM   #1
vassu
LQ Newbie
 
Registered: Apr 2015
Posts: 1

Rep: Reputation: Disabled
hai..... regarding command not found in bin


hai everyone......can anyone plz help me what if some commands not found in sbin? say ifonfig,setup etc comands? and how to add commands in bin without script writing...help is appreciated ..tnx in advance

Last edited by vassu; 04-28-2015 at 09:37 AM.
 
Old 04-28-2015, 09:45 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Welcome to Linux Questions!

Binaries are usually present in /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usrlocal/sbin, /opt/bin, /opt/sbin and ~/bin.

Usually Linux distributions have a package manager by which user install them. E.g. rpm, dpkg, yum. If you have a binary you can install it one of the directories and run them. These above directories are usually in PATH environment so the executable binaries present in them are run just by their name. Else you to give absolute path like '/bin/ls'.
 
Old 04-28-2015, 09:48 AM   #3
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 937

Rep: Reputation: 174Reputation: 174
Maybe these commands are in /usr/bin ?

What happens if you enter
Code:
ifconfig
I get
Quote:
Command 'ifconfig' is available in '/sbin/ifconfig'
The command could not be located because '/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative priviledges associated with your user account.
ifconfig: command not found
However,
Code:
sudo ifconfig
does work as expected.

Don't add commands to /usr/bin - put them in /usr/local/bin.
 
  


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
/bin/bash: mdadm: command not found postcd Linux - General 4 02-26-2014 10:14 AM
/bin/sh: toppred: command not found yuri16 Linux - Newbie 6 07-02-2009 02:39 AM
/bin/sh: gcc: command not found muruganm Linux - Embedded & Single-board computer 2 07-03-2008 09:11 AM
/bin/sh: CC : command not found Pikidalto Linux - Software 7 05-11-2008 03:03 AM
/bin/bash: root: command not found pridefc Red Hat 5 12-12-2006 08:09 PM


All times are GMT -5. The time now is 04:08 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