These binary files are mostly located in the below 4 locations
# which "command_name"
# which cp
alias cp='cp -i'
# which useradd
In case you get the below error
# which samba
/usr/bin/which: no samba in (/usr/lib/qt-3.3/bin:/usr/local/sbin
It means your PATH variable does not contains the path for samba command. In that case which will not help you find the location of the command.
whereis commandSo, you can use the below command for the same purpose
# whereis command_name
# whereis useradd
useradd: /usr/sbin/useradd /usr/share/man/man8/useradd.8.gz
How to set environment (PATH) variable permanently in Linux
How to mount windows share on linux
Follow the below links for more tutorials:
How to configure Samba 4 Secondary Domain Controller
How to secure Apache web server in Linux using password (.htaccess)
How to register Red Hat Linux with RHN (Red Hat Network )
Red hat Enterprise Linux 5.5 Installation Guide (Screenshots)
15 tips to enhance security of your Linux machine
Why is Linux more secure than windows and any other OS
What is the difference between "su" and "su -" in Linux?
What is swappiness and how do we change its value?
How to log iptables messages in different log file
What are the s and k scripts in the etc rcx.d directories
How to check all the currently running services in Linux
How to auto start service after reboot in Linux
RAID levels 0, 1, 2, 3, 4, 5, 6, 0+1, 1+0 features explained in detail