Comments (10)
I think its because you 'cut' the df result, but different amounts of empty space make it behave abnormal.
You can somehow seperate the output not by spaces but "empty space between words" I dont know how tho.
from shc.
I am looking into that matter!
from shc.
Disk Usage | GB of GB is resolved
from shc.
df -h --output="size,used,pcent" / | cut -d'U' -f2 | tail -1 | cut -d'G' -f2
from shc.
About the CPU temperature.
SUSE got really messy again in Leap 15.2 and changed a lot of things again
ls -l /sys/class/thermal/
total 0
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device0 -> ../../devices/virtual/thermal/cooling_device0
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device1 -> ../../devices/virtual/thermal/cooling_device1
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device10 -> ../../devices/virtual/thermal/cooling_device10
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device11 -> ../../devices/virtual/thermal/cooling_device11
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device12 -> ../../devices/virtual/thermal/cooling_device12
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device13 -> ../../devices/virtual/thermal/cooling_device13
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device14 -> ../../devices/virtual/thermal/cooling_device14
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device15 -> ../../devices/virtual/thermal/cooling_device15
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device2 -> ../../devices/virtual/thermal/cooling_device2
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device3 -> ../../devices/virtual/thermal/cooling_device3
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device4 -> ../../devices/virtual/thermal/cooling_device4
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device5 -> ../../devices/virtual/thermal/cooling_device5
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device6 -> ../../devices/virtual/thermal/cooling_device6
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device7 -> ../../devices/virtual/thermal/cooling_device7
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device8 -> ../../devices/virtual/thermal/cooling_device8
lrwxrwxrwx 1 root root 0 Sep 2 2020 cooling_device9 -> ../../devices/virtual/thermal/cooling_device9
Those links are looping for ever and ever.
Cant resolve this problem until SUSE fixes that!
from shc.
On another Leap 15.2 the output is the following
echo $(( $(cat /sys/class/thermal/thermal_zone6/temp) /1000))
57
The CPU is an Intel Core I7 8550U
from shc.
Problem fixed
Changed the thermal_zone6 to 0 because every CPU has a core labeled 0.
echo $(( $(cat /sys/class/thermal/thermal_zone0/temp) /1000))
from shc.
It is not fixed
from shc.
Working on a new script for the temps
from shc.
temperature is not fixed by beaa566
from shc.
Related Issues (20)
- Init-sh check HOT 1
- Add Client/Server HOT 1
- better compatibility for different OS Versions
- Spelling mistake in init.sh:57
- Ubuntu 20.04 not supported HOT 3
- Please add SSL HOT 1
- Using default apache index.html instead of new index.php HOT 3
- adding system load and uptime
- adding CPU HOT 1
- Automatic adding of index.php to conffile
- Simplification of init.sh
- Arch integration HOT 2
- OpenSUSE website is not being displayed
- Check for English or German
- I dont get uptime on my Leap 15.2 please fix HOT 2
- there is no package apache on fedora
- Darkmode / Dark-theme HOT 1
- Add architecture HOT 1
- Error: "Cant find any suitable OS" on KDE neon User Edition 5.20 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shc.