ERROR - Cannot stat file /proc/32641/fd/338 - What is the utility of the proc directory?

Asked

Viewed 116 times

0

ERROR - Cannot stat file /proc/32641/fd/338 -

What utility of the proc directory for Fuser ?

There is this explanation in some linux manual ?

or in English

ERROR - Can not stat file / proc / 32641 / fd / 338 -

What is the usefulness of the proc directory for the Fuser?

Is there an Explanation in some linux manual?

2 answers

1

The /proc in Linux is a virtual directory that serves as "diagnostic" and real-time kernel settings.

The file system /proc is a special directory where all kernel debugging information is located. You also find some settings that enable and disable support for something in the kernel. It is very useful for diagnosing your hardware. I will here comment files from /proc for you to 'debug' your hardware:

/proc/devices

Here are the devices found on your system, including modem, sound card, network card, keyboard, printer, etc.

/proc/interrupts

In this file are device Irqs information.

/proc/ioports

Information on I/O port addresses (Input/Output).

/proc/pci

PCI devices installed on the system. The 'lspci' command also serves to display this file.

/proc/cpuinfo

Here you can see the features of your processor and machine.

/proc/filesystems

File systems supported by the kernel.

/proc/devices

Installed general devices.

/proc/meminfo

Memory information used. The free command also serves to display this file.

/proc/modules

Modules loaded into the kernel. The 'lsmod' command also serves to display this file.

/proc/mounts

Mounted partitions. The mount command with no parameter shows this file.

/proc/partitions

Existing partitions that Linux recognized.

/proc/version

Kernel version. The 'uname' command also serves to display this file.

Explore this directory! Just don’t give a cat in the file /proc/kcore, please! : ) kcore = core kernel.

1

The directory /proc contains some statistics about the machine. In general, they are raw files without formatting. For example:

[leandro@localhost ~]$ cat /proc/cpuinfo
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model       : 30
model name  : Intel(R) Core(TM) i7 CPU         870  @ 2.93GHz
stepping    : 5
microcode   : 0x7
cpu MHz     : 1200.000
cache size  : 8192 KB
physical id : 0
siblings    : 8
core id     : 0
cpu cores   : 4
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 11
...

You have data about memory, processes, network traffic, disks. The utility top, for example, use these files. Linux usually mounts this filesystem in the startup.

In your case,

/proc/32641/fd/338

means 32641 is the process number and 338 is the file Descriptor used by the process. Possibly inside this directory, would have statistics of its use. But, as the process might have ended, it showed the error message when listing, because it did not exist.

Reference for reading /proc of the kernel manual.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.