Answer» I am using Linux RedHat 9 and trying some commands. WHen I try to use useradd, usermod, newgr, groupadd, ETC. commands it says there is no such COMMAND. But I can use basic commands like cd, LS, pwd, su, etc. I am as a root login. What may be the reason?
Consider I am learning. Newbie in Linux.Have you tried "adduser" instead of "useradd"? Not all systems have both versions of the command. If you want to find out where a command is, type (e.g.) "locate useradd". Provided the locate database is up to date, you'll locate the command if it exists on your system. (The command "updatedb" updates the locate database.)
Just like in Windows, the path environment variable tells the shell where to find commands. If locate finds it, but your shell doesn't know it, try adding the location to your path variable.
Try the following:
man locate man useradd info bash
Happy reading!
|