Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 304
  • Last Modified:

prompt issue

Did you notice that the prompt is $ instead of #

bash: ifconfig: command not found
[root2@rc2 ~]$ netconfig
bash: netconfig: command not found
[root2@rc2 ~]$

What is the reason?
0
walkerdba
Asked:
walkerdba
1 Solution
 
EddyvanOpdorpCommented:
The UNIX prompt uses a $ symbol to indicate that your input is expected.

http://superuser.com/questions/57575/what-is-the-origin-of-the-unix-dollar-prompt
0
 
woolmilkporcCommented:
The pound sign ( # ) indicates that you're logged in as the superuser "root".

The dollar sign "$" indicates a regular (non-root) user.

Despite its similar name "root2" has no root privileges, as it seems.

That's also the reason why ifconfig (and netconfig if RHEL/FC) don't work. ifconfig is in /sbin, and netconfig is in /usr/sbin (if at all present) and those directories are not contained in a regular user's PATH.

"netconfig" doesn't exist in any Unix/Linux (unless it's a homemade script, of course) except for RedHat/Fedora, but there it is meant for the first interface eth0 only.

/usr/sbin/netconfig

"net config" is a Windows command.
0
 
ozoCommented:
echo $PS1
#it's probably set to something like
[\u@\h \W]\$
0
 
walkerdbaAuthor Commented:
yes
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Tackle projects and never again get stuck behind a technical roadblock.
Join Now