Solved

prompt issue

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

830 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