Questions tagged [proc]

Proc refers to Procfs filesystem in *nix based operating system.

74 questions
46
votes
6 answers

How do I split a "/proc/*/environ" file in separate lines?

I'm trying to get the content of any /proc/*PID*/environ file in more readable format. I'm able to do that in the way shown below, but I'm sure this isn't the proper way. $ cat "/proc/$(pgrep gnome-session -n -U…
pa4080
  • 30,621
28
votes
6 answers

How do I make changes to /proc/acpi/wakeup permanent?

I had a problem with my Ubuntu 12.04 waking up immediately after going into suspend. I solved the problem by changing the settings in /proc/acpi/wakeup, as suggested in this question: How do I prevent immediate wake up from suspend and/or…
Jolan
  • 281
26
votes
4 answers

What's the fairest way to monitor total CPU time - per user?

On a multi user system, I want to measure each user's CPU usage in seconds of cpu time. For the purpose of this measurement, I assume that if a PID belongs to a user, this user is causing the CPU time - that is I'm ignoring daemons and the…
25
votes
4 answers

I'm getting Fsync failed error. Why?

I tried to change the tcp timestamps in Ec2 instance (which is Ubuntu 12.04). I opened up the editor and changed the value 1 from 0. And when I tried to save the file I get this error: /proc/sys/net/ipv4/tcp_timestamps" E667: Fsync failed I'm very…
batman
  • 8,071
15
votes
3 answers

Automatic Reboot After Power Failure

I want a machine that loses power to automatically reboot when power is available. I've looked around and haven't found a solution that works for 11.04. Purportedly at one point you could do: echo 'server_mode=1' > /proc/pmu/options However, my…
sarwar
  • 253
11
votes
1 answer

Absurdly large /proc/kcore file -- what does it mean?

I had to abort a backup of my system because it stalled on the file /proc/kcore. I check its size and, well, the file is enormous. Checking Google, it seems that many other people have absurdly large kcore files as well. I have three…
10
votes
1 answer

Is a /proc mount necessary in /etc/fstab?

This ZFS guide claims: The Ubuntu desktop installer may add dev, proc, sys, or tmp lines to the /etc/fstab file, but such entries are not strictly necessary for a modern system. Add them now if you want them. How true is this? My Ubuntu 12.04…
ændrük
  • 78,496
9
votes
1 answer

How to check if ICMP blocking is enabled in a system..?

A VLAN pool enabled newly is not pinging the device. Connectivity issues are not there. Can this be because if ICMP Blocking is enabled? How to check the status of the same?
8
votes
4 answers

How can I permantly increase the entropy_avail level?

I have noticed so keyboard/mouse hanging and other issues since I bought my new computer and installed Ubuntu 11.10. I researched where increasing the /proc/sys/kernel/random/entropy_avail helps and it does. Currently I do this by running $ ls -R…
p37307
  • 161
  • 1
  • 2
  • 7
7
votes
1 answer

Not able to understand and map output of /proc/net/tcp

The output of /proc/net/tcp on my ubuntu 12.10 is the following: sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode 0: 0100007F:0CEA 00000000:0000 0A…
Vivek
  • 464
6
votes
2 answers

Why there are 2 directories having same content?

cd /proc/$$/root/bin cd /bin After running ls command on both the directory, I found that content of both directories are same (which is nothing but list of commands). Is there any specific reason for this having same command-list in both…
snoop
  • 4,110
  • 9
  • 41
  • 58
6
votes
1 answer

Directory "/proc/sys/net/bridge" missing

I upgraded my Trusty to Linux 3.19 and the directory /proc/sys/net/bridge disappeared. What's going on? My bridge exist, I can see it through brctl show, but where is the directory under /proc? If I return to Linux 3.13, the /proc/sys/net/bridge…
ThiagoCMC
  • 869
  • 4
  • 13
  • 28
6
votes
2 answers

mount:can't read proc/mounts

I've installed Ubuntu, but when it is loading it gives following error: mount:can't read proc/mounts. Can't fount such file or directory However, OS continues loading but when I try to enter system using my login/password, which I entered during…
Nurlan
  • 159
  • 1
  • 1
  • 6
6
votes
1 answer

(/proc/kcore) What is this magical file which can somehow take up 140.7 TB on a 500 GB HDD?

I was cramped for hard drive space, so I was looking for a place where some files might have been duplicated during a restore. The culprit turned out to be root trash, but this stuck out like a sore thumb. This Page says that the file is an alias…
6
votes
1 answer

Exact field meaning of /proc/stat

everyone I need to know the exact meaning of every field in /proc/stat file. I read man proc and it only lists several common fields in various architecture and I find in Ubuntu, it includes several other fields in cpu row. the below is output in my…
Hua
  • 163
1
2 3 4 5