Hi all
i am trying to copy this folder /proc to other computer
but all parameter are gone
how can I copy it?
thank you
--------------------------------- All new Yahoo! Mail - --------------------------------- Get a sneak peak at messages with a handy reading pane.
/proc isn't a real folder but a view of the process/kernel status information.
Just skip /proc, /sys and /dev when copying /
-Ross
________________________________
From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of chloe K Sent: Tuesday, March 18, 2008 1:11 PM To: CentOS mailing list Subject: [CentOS] can i copy /proc Hi all i am trying to copy this folder /proc to other computer but all parameter are gone how can I copy it? thank you
________________________________
All new Yahoo! Mail - http://ca.promos.yahoo.com/newmail/overview2/ ________________________________
Get a sneak peak at messages with a handy reading pane.
______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.
yes.
but i want to copy this file to have the parameter setting in this computer eg: cpuinfo ... interrupt....
how can I copy this file?
thank you again
"Ross S. W. Walker" rwalker@medallion.com wrote: /proc isn't a real folder but a view of the process/kernel status information.
Just skip /proc, /sys and /dev when copying /
-Ross
--------------------------------- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of chloe K Sent: Tuesday, March 18, 2008 1:11 PM To: CentOS mailing list Subject: [CentOS] can i copy /proc
Hi all
i am trying to copy this folder /proc to other computer
but all parameter are gone
how can I copy it?
thank you
--------------------------------- All new Yahoo! Mail - --------------------------------- Get a sneak peak at messages with a handy reading pane.
--------------------------------- This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
--------------------------------- Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail
chloe K wrote:
yes.
but i want to copy this file to have the parameter setting in this computer eg: cpuinfo ... interrupt....
how can I copy this file?
which part of THEY ARE NOT FILES are you missing here?
thats the kernel reporting the ACTUAL cpuinfo. you can''t change that. ditto interrupts, etc.
$ cat /proc/interrupts CPU0 0: 2214281030 XT-PIC timer 1: 2 XT-PIC i8042 2: 0 XT-PIC cascade 6: 6 XT-PIC floppy 7: 1 XT-PIC parport0 8: 1 XT-PIC rtc 9: 1 XT-PIC acpi, uhci_hcd:usb2 11: 218548 XT-PIC eth0 12: 1 XT-PIC uhci_hcd:usb1 14: 4659843 XT-PIC ide0 15: 19337609 XT-PIC ide1 NMI: 0 LOC: 0 ERR: 0 MIS: 0
what possible sense would 'copying' that to another system make? I go to a different computer...
# cat /proc/interrupts CPU0 0: 1078260604 XT-PIC timer 1: 3 XT-PIC keyboard 2: 0 XT-PIC cascade 7: 0 XT-PIC usb-ohci 8: 1 XT-PIC rtc 9: 75485990 XT-PIC aic7xxx 10: 1754046926 XT-PIC eth0 14: 131 XT-PIC ide0 NMI: 0 ERR: 0
and the different devices are on different IRQs, never mind the IRQ counts being different.
anyways, most of whats in /proc is readonly.
mkdir proc cp /proc/cpuinfo proc
works for me.
So just out of curiosity, what do you hope to accomplish?
John R Pierce wrote:
chloe K wrote:
yes.
but i want to copy this file to have the parameter setting in this computer eg: cpuinfo ... interrupt....
how can I copy this file?
which part of THEY ARE NOT FILES are you missing here?
everything in linux is a file: directories, printers, sockets, named pipes etc.
thats the kernel reporting the ACTUAL cpuinfo. you can''t change that. ditto interrupts, etc.
$ cat /proc/interrupts CPU0 0: 2214281030 XT-PIC timer 1: 2 XT-PIC i8042 2: 0 XT-PIC cascade 6: 6 XT-PIC floppy 7: 1 XT-PIC parport0 8: 1 XT-PIC rtc 9: 1 XT-PIC acpi, uhci_hcd:usb2 11: 218548 XT-PIC eth0 12: 1 XT-PIC uhci_hcd:usb1 14: 4659843 XT-PIC ide0 15: 19337609 XT-PIC ide1 NMI: 0 LOC: 0 ERR: 0 MIS: 0
what possible sense would 'copying' that to another system make? I go to a different computer...
# cat /proc/interrupts CPU0 0: 1078260604 XT-PIC timer 1: 3 XT-PIC keyboard 2: 0 XT-PIC cascade 7: 0 XT-PIC usb-ohci 8: 1 XT-PIC rtc 9: 75485990 XT-PIC aic7xxx 10: 1754046926 XT-PIC eth0 14: 131 XT-PIC ide0 NMI: 0 ERR: 0
and the different devices are on different IRQs, never mind the IRQ counts being different.
anyways, most of whats in /proc is readonly. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
chloe K wrote:
yes.
but i want to copy this file to have the parameter setting in this computer eg: cpuinfo ... interrupt....
cat /proc/whatever > /somefolder/whatever
You can't copy /proc.
chloe K wrote:
Hi all
i am trying to copy this folder /proc to other computer
but all parameter are gone
how can I copy it?
its not a folder, its a virtual file system thats a view into various kernel internals.
for instance, /proc/kcore is a readonly view of all of physical memory. /proc/scsi/scsi is a list of currently installed SCSI class devices. /proc/(pid)/... is a bunch of info about a running process. etc.