Solved

prompt issue

Posted on 2013-05-31
4
249 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
The endless cat and mouse game of fail2ban 4 66
Problem to start Neon 20 53
Trying to make SNMP connection work 7 41
linux ssh 4 30
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now