Rust program to hibernate, sleep or freeze a linux system in CLI using /sys/power/state file.
sudo statectl [hibernate,sleep,freeze] git clone https://github.com/antomfdez/statectl.git
cd statectl
sudo cargo build
sudo cp target/debug/statectl /usr/bintar -xf statectl.tar
cd statectl
sudo chmod +x installer.sh
sudo ./installer.sh