LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 09-29-2004, 08:43 AM   #1
stellarmarine1
Member
 
Registered: Jul 2004
Distribution: RedHat AS 2.1
Posts: 51

Rep: Reputation: 15
displaying services from command line


Is there a way to display the current running services on Red Hat AS 2.1 from the command line?

Thanks
 
Old 09-29-2004, 08:50 AM   #2
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Rep: Reputation: 15
ps -aux
 
Old 09-29-2004, 08:44 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
ps -ef or ps aux (notice the subtle difference) will show you running processes.

To see what services are configured to start up at boot, try chkconfig --list
 
Old 09-30-2004, 02:54 AM   #4
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Rep: Reputation: 15
I'm just wondering:
Is there a difference typing ps aux, instead of ps -aux? It displays the same in my shell; But I don't know what happens that I can't see.

-Geir O.
 
Old 09-30-2004, 06:07 PM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Well most Linux ditributions use a Solaris-like display of process information. The "aux" flags are "BSD-like", which I believe is actually the POSIX standard. Usually POSIX standard flags are specified with no "-" (dash). On many Linux distributions you indicate whether you're using Linux style or BSD style by the presence or absance of the dash.
 
Old 10-01-2004, 03:28 AM   #6
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Rep: Reputation: 15
Ok. I learned something new already today. (It's now 10:27 AM here in Norway.)

-Geir O.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple bash problem - checking for files and displaying the first line morrolan Programming 4 03-07-2005 10:40 AM
A simple command displaying the size of a directory satimis Linux - Newbie 5 11-24-2004 12:06 AM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
How to start all the services from command line permanently !! bpandey Linux - General 1 08-26-2004 12:27 AM
Displaying a certain line in a file. Mike_the_Man Linux - General 1 03-02-2001 10:12 PM


All times are GMT -5. The time now is 12:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration