LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-07-2008, 05:09 AM   #1
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
/proc/ folder has empty files.


Dear all,

I have to do an assignment using the files in the /proc/ directory. But the thing is, the files - /proc/cpuinfo, process ID file - are all empty. I am running Debian 'etch'. I have checked the folder on other OSs, and have found that they are not empty. I have opened these files as SuperUser too, but the result is the same. I am confused. Why do not the files show any data, when they are supposed to?

Even the process ID folders have blank files.

Need help on this.
 
Old 03-07-2008, 05:44 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

How did you check the content of, for instance, /proc/cpuinfo?

Looking at the listing, it looks empty:
Code:
$ ls -l /proc/cpuinfo
-r--r--r--  1 root root 0 Mar  7 12:41 /proc/cpuinfo
If you cat the file, there is content:
Code:
$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping        : 9
cpu MHz         : 2793.527
cache size      : 512 KB
physical id     : 0
.
.
.
.
The /proc directory can be seen as a realtime gateway/interface between the kernel and the user. See man proc for details about this pseudo filesystem.

Hope this helps.
 
Old 03-07-2008, 06:56 AM   #3
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,675

Rep: Reputation: 122Reputation: 122
Well, obviously we're not going to do your assignment for you But I suggest to study pipes and redirecting for/in scripts etc
 
Old 03-07-2008, 09:21 AM   #4
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Hi,

Thanks all. It did help.
 
  


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
many /proc/<id>/cmdline files empty kpachopoulos Linux - General 1 08-25-2006 09:16 AM
dirs in /proc/acpi empty anibis Linux - Laptop and Netbook 1 07-18-2006 01:37 AM
/proc/bus/usb#...empty, after upgrade to 2.6.10 wombat53 Slackware 5 07-23-2005 04:54 PM
/proc/bus/usb is empty under 2.6.7 (but only one 1 sys) jg167 Linux - Newbie 3 08-02-2004 03:29 AM
all entries in /proc seems to be empty? tuxfood Linux - Newbie 1 08-01-2004 05:31 AM


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