LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-25-2003, 01:47 PM   #1
DavidTempler
Member
 
Registered: Apr 2003
Location: United Kingdom
Distribution: Ubuntu 6.06
Posts: 172

Rep: Reputation: 30
What is /proc/ dir ?


Hi All,
Can anyone tell me what the dir /proc/ is , it has some interesting files but what are they for ?



Dave T.

You get Answers by Asking Questions.... Am I right ?
 
Old 10-25-2003, 01:57 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
/proc is a virtual file system that the linux kernel uses to provide system information and settings about running PROCesses.
 
Old 10-25-2003, 02:05 PM   #3
tgflynn
Member
 
Registered: Oct 2003
Location: Rochester, New York (USA)
Distribution: Debian
Posts: 119

Rep: Reputation: 15
You can think of /proc as a window into the running kernel. The files that appear in it do not exist on a disk somewhere but are simply places to get information about what's going on.

The directories under /proc whose names are numbers are actually process id's. They contain information about all of the user processes that are running at any given time.

There are many other files and directories with different sorts of information. For example :

/proc/version : version information on running kernel
/proc/modules : modules loaded into the running kernel

etc...etc...

Often there exist commands which access the /proc filesystem and format the data it contains in a way which is easier to understand. For example many distributions have the lsmod command which displays the information in /proc/modules.

There are also some files which can be used by root to modify kernel parameters. These are generally under /proc/sys.

Try Googling for linux proc filesystem for more detailed information.

Tim
 
Old 10-25-2003, 02:06 PM   #4
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
It is a pseudo files system ('pseudo' - since it has no "hard" representation on any media) which can be seen as "interface" to the kernel state and settings. The linux sources (usually in /usr/src/linux/Documentation/ contain the file proc.txt in subdirectory filesystems. Over there you'll find a lot of info.
 
Old 10-26-2003, 02:47 AM   #5
DavidTempler
Member
 
Registered: Apr 2003
Location: United Kingdom
Distribution: Ubuntu 6.06
Posts: 172

Original Poster
Rep: Reputation: 30
Thank you for your help .. I need to do more reading up :-)

Dave T.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Correlation between /proc/devices and /proc/modules ColinLadyka Linux - General 1 02-13-2006 05:25 PM
/proc ADDY Linux From Scratch 6 11-15-2004 07:42 AM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 07:54 PM
krecipes and ./configure -with-qt-dir=DIR disco rugby Linux - Software 4 06-13-2004 09:06 PM
What /proc proc file do I need? GoboFraggle Programming 1 02-04-2003 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:23 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