Solved

prompt issue

Posted on 2013-05-31
4
294 Views
Last Modified: 2013-06-03
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
Comment
Question by:walkerdba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 4

Expert Comment

by:EddyvanOpdorp
ID: 39210091
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
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39210105
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
 
LVL 84

Expert Comment

by:ozo
ID: 39210885
echo $PS1
#it's probably set to something like
[\u@\h \W]\$
0
 

Author Closing Comment

by:walkerdba
ID: 39215450
yes
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question