LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 08-07-2002, 05:49 PM   #1
hhegab
Member
 
Registered: Apr 2002
Location: IL, USA
Distribution: Fedora 13, Ubuntu 10.04 LTS
Posts: 162

Rep: Reputation: 30
Memory Management


I some time feel that I have plenty of packages working in the background, how may I know them? and How may I stop them then?

Also, how may I know what is going on mn my box at any time?
I use redhat 7.2

hhegab
 
Old 08-07-2002, 06:03 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
There are two pretty common ways of finding out/killing what 'processes' are running on your machine.

1) Type ps -aux - this lists all the processes running (you may want to type ps -aux | less instead... there's likely to be lots of them). To kill any given process, you use kill. You need to tell kill which process to kill, and they're all identified by a unique PID (process ID) which is displayed on the left of the ps -aux command.

2) Run top. There's on-line help, but pressing k allows you to kill a process.

I find that method 1 is more effective.
 
Old 08-07-2002, 06:13 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Also handy are lsof, netstat and fuser.
netstat -anp will show you which process under what PID have open what ports: another way of seeing what services are running,
lsof -p <PID> shows you all the files and sockets a process has opened,
and fuser </path/and/filename> show who has that file in use: kinda handy when you're trawling dir's.

Also if you're concerned with running local or net services you don't need you can dis/enable them using ntsysv or linuxconf.

If you've got time please have a look at CERT UNIX Security Checklist v2.0.
 
Old 08-07-2002, 10:20 PM   #4
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
"how may I know them? " -

RTFM.

Do NOT blindingly kill any background process if you don't know what you are doing. Worst case scenario is... well.. you better don't know.

If you want to reduce the # of services, do so in control center or at install. Type

socklist
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
memory management navaladi Mandriva 2 02-18-2005 06:47 AM
Memory management Mojojo Linux - Hardware 11 08-31-2003 10:29 AM
memory management exigent Linux - General 1 08-17-2003 08:28 PM
memory management? snow Linux - Software 7 02-12-2003 01:57 PM
Memory Management mrsolo Linux - General 7 06-26-2002 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration