D
D
DVoropaev2019-11-14 10:01:32
linux
DVoropaev, 2019-11-14 10:01:32

Why can't I copy the process folder to my directory? How to do it?

sudo cp -r /proc/32757/* ./
cp: error reading ‘/proc/32757/attr/current’: Invalid argument
cp: failed to extend ‘./attr/current’: Invalid argument
cp: error reading ‘/proc/32757/attr/prev’: Invalid argument
cp: failed to extend ‘./attr/prev’: Invalid argument
cp: error reading ‘/proc/32757/attr/exec’: Invalid argument
cp: failed to extend ‘./attr/exec’: Invalid argument
cp: error reading ‘/proc/32757/attr/fscreate’: Invalid argument
cp: failed to extend ‘./attr/fscreate’: Invalid argument
cp: error reading ‘/proc/32757/attr/keycreate’: Invalid argument
cp: failed to extend ‘./attr/keycreate’: Invalid argument
cp: error reading ‘/proc/32757/attr/sockcreate’: Invalid argument
cp: failed to extend ‘./attr/sockcreate’: Invalid argument
cp: error reading ‘/proc/32757/clear_refs’: Invalid argument
cp: failed to extend ‘./clear_refs’: Invalid argument
cp: error reading ‘/proc/32757/mem’: Input/output error
cp: failed to extend ‘./mem’: Input/output error

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Karasik, 2019-11-14
@vitaly_il1

Because /proc is a pseudo filesystem, and cp doesn't know how to work with it.
What exactly do you need to do?

C
CityCat4, 2019-11-14
@CityCat4

Nothing can be copied from /proc. This is a special kind of file system, it's actually not a file system at all :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question