[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Head "file has shrunk too much error" on /sys/ file
From: |
Hadrien Lacour |
Subject: |
Head "file has shrunk too much error" on /sys/ file |
Date: |
Thu, 10 Nov 2016 12:58:01 +0100 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
Hello,
I have this error going one:
head -c -1 <
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
or
head -c -1
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
both procuce the "file has shrunk too much" error while doing nothing (the
output
is the same as the file) but
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors |
head -c -1
does work. I've copied the file to $HOME and everything works as it should, so
the
location of the file may do something (/sys or /proc?). Any idea of why it
doesn't work?
- Head "file has shrunk too much error" on /sys/ file,
Hadrien Lacour <=