Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-28-2015, 08:35 AM   #1
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 is appreciated ..tnx in advance

Last edited by vassu; 04-28-2015 at 08:37 AM.
Old 04-28-2015, 08:45 AM   #2
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, 08:48 AM   #3
Senior Member
Registered: Nov 2011
Distribution: Debian
Posts: 1,170

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

What happens if you enter
I get
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
sudo ifconfig
does work as expected.

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


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

All times are GMT -5. The time now is 04:03 PM.

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