Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] tar /proc


Hi Henry,
 
You don't need to back it up. It's in memory. It's one of the kool things about Linux in that you can interface with the /proc system information as though it were set of files when in fact it is just a bit of memory. Makes finding info about the system very easy for a developer. Sure beats win32api bullshit.
 
For example:
 
cat /proc/loadavg
produces:
0.00 0.00 0.00 1/391 12021
 
It looks like a file,
 
ls -l /proc/loadavg
-r--r--r--    1 root     root            0 Feb 18 13:29 /proc/loadavg
but it's just a piece of memory being updated when you ask it for information.
 
 
HTH (hope this helps)
 
Stuart
 
 
 
----- Original Message -----
From: henry
Sent: Monday, 18 February 2002 12:37
Subject: [SLUG] tar /proc

Dear Sirs:
 
    I cant "tar zcvf /proc.tgz /proc " , I always get msg like "exit by previous error" . just behind
this line "tar /proc/exe" .
    I want to backup /proc for minimizing my slackware , how could I bypass of the error ?
 
 
BestRegards
Henry