Skip to content

Instantly share code, notes, and snippets.

1

<sup id="a1">[1](#f1)</sup>

1

<b id="f1">1</b>[↩](#a1)

#!/bin/bash
# cpustatus
#
# Prints the current state of the CPU like temperature, voltage and speed.
# Temperature is reported in degrees Fahrenheit (F) - converting from C requires bc
# CPU speed is calculated in megahertz (MHz).
function convert_to_MHz {
let value=$1/1000
echo "$value"
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management