Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-09-2008, 03:46 AM
|
#1
|
LQ Newbie
Registered: Dec 2006
Location: Hangzhou,Zhejiang,China
Distribution: Ubuntu, ArchLinux, SunSolaris
Posts: 12
Rep:
|
what does the hyphen mean?
what does the hyphen mean which is before the "bash"
linuxtyh@linuxtyh:/root$ ps f
PID TTY STAT TIME COMMAND
23471 tty2 S 0:00 -bash
17169 pts/2 S 0:00 su linuxtyh
17170 pts/2 R 0:00 \_ bash
17588 pts/2 R+ 0:00 \_ ps f
linuxtyh@linuxtyh:/root$ ps ux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
linuxtyh 17169 0.0 0.0 3876 1172 pts/2 S 16:38 0:00 su linuxtyh
linuxtyh 17170 0.0 0.2 6360 3588 pts/2 R 16:38 0:00 bash
linuxtyh 17691 0.0 0.0 2644 1000 pts/2 R+ 16:46 0:00 ps ux
linuxtyh 23471 0.0 0.2 6352 3560 tty2 S 09:52 0:00 -bash
|
|
|
12-09-2008, 04:37 AM
|
#2
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
It means it is a login shell. From the bash man page:
Code:
INVOCATION
A login shell is one whose first character of argument zero is a -,
or one started with the --login option.
|
|
|
12-09-2008, 05:26 AM
|
#3
|
LQ Newbie
Registered: Dec 2006
Location: Hangzhou,Zhejiang,China
Distribution: Ubuntu, ArchLinux, SunSolaris
Posts: 12
Original Poster
Rep:
|
Thank you very much for your comment
Quote:
Originally Posted by colucix
It means it is a login shell. From the bash man page:
Code:
INVOCATION
A login shell is one whose first character of argument zero is a -,
or one started with the --login option.
|
|
|
|
12-10-2008, 06:46 AM
|
#4
|
Member
Registered: Nov 2008
Posts: 31
Rep:
|
Thank you for the info colucix. That's something new I learnt today.
Linux Archive
Last edited by arunmathew1984; 12-20-2008 at 12:17 PM.
|
|
|
All times are GMT -5. The time now is 05:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|