SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
1.what kind of "different" shell behaviour are we talking about?
2.that terminal could be meaning that you are logged in as an user.. named linux, and that you're in it's home dir...although i'm not certain
you can make the prompt look like anything you want... just have to know how to do it. just google on the subject to find the format for it...
in the file bash.bashrc you can change it.. though you'll see in suse it will ask you to put a change like that in the bash.bashrc.local
this is what my prompt looks like for example:
PS1="\[\e[34;1m\]\u@\[\e[32;1m\]\h\[\e[0m\]\w>\[\e[32;1m\] \$> \[\e[0m\]"
with user niwde on host sputnik, unfortunately it's fancy colours dont show in asci :P
The prompt is completely configurable, the documentation is easy to find:
$ man bash
(while in bash man page, type: /^prompting)
Read the section, and then look at your prompt to see what's similar.
I usually set it to read:
export PS1="[\u@\h \W]\\$"
This gives me a prompt that looks like:
[root@linux root] #
The first \u means the currently logged on user, the \h means the hostname and the \W means the base directory I am currently in, such as the /usr/local/bin/someapp directory would show a prompt that read:
[root@linux someapp] #
Beware of "JC Whitney Syndrome" with your prompt, it's there to inform you and help you get things done, don't put too many fuzzy dice, curb feelers and blue license plate lights on it, or you'll not get anything substantial done...
SuSE seems to default to naming a machine "linux" which is what that prompt was...the machine, not the user. the "#" signifies that you are logged in as root, and you should ABSOLUTELY NOT RUN X AS ROOT. It looks like you're new and don't know better, so just take that as a friendly reminder...running as root is bad, you should only do it in rare instances when it is needed, such as installing new programs, or running a tool such as ethereal or kismet which needs to be run with those privileges. Even in those cases, it is better to use "su" to become superuser than to login to anything directly as root.