Re: how can I copy?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18/03/2008, chloe K <chloekcy2000@xxxxxxxx> wrote:
> Hi all
>
> i just want to get all information stored in /proc/net
>
> ls it possible?
>

If you really want to make a snapshot of the file contents under
/proc/net onto disk, you could:

1) mkdir procnet
2) cd procnet
3) create a file called snapshot with the following contents:
#!/bin/bash

for i in `find /proc/net -type d` ; do
    mkdir -p .$i
done

for i in `find /proc/net -type f` ; do
    echo $i
    cat $i > .$i
done

4) chmod +x snapshot
5) ./snapshot

And then in your procnet directory, you should see a replica tree of /proc/net

There's probably a more elegant way of scripting this  - I'm sure
scripting gurus will jump in :)

J.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux