Interesting and useful commands available using the BASH shell on Linux.

This is an interesting command to view your command history when you are using Bash. ┌──[[email protected]]─[~] └──╼ ╼ $ hash hits command 1 /usr/bin/gethostip 1 /usr/bin/sudo┌──[[email protected]]─[~] └──╼ ╼ $ hash hits command 1 /usr/bin/gethostip 1 /usr/bin/sudo This command is a Bash shell built-in command. If you are using the tcsh or zsh shells; this command … Read more

Check the status of your laptop battery with Powershell on Windows.

This simple one liner will print the battery status of your laptop battery in percent. This shows that I have 48% battery charge remaining. PS C:\> (Get-WmiObject -Class Win32_Battery).estimatedchargeremaining 48PS C:\> (Get-WmiObject -Class Win32_Battery).estimatedchargeremaining 48 Run it like this to get all of the information about your laptop battery. PS C:\WINDOWS\system32> (Get-WmiObject -Class Win32_Battery)   … Read more

How to check laptop battery status with the Linux command-line.

To check the battery status of your Linux laptop; use the acpi command. This will display the status of your laptop battery. exempli gratia. [email protected] ~$ acpi Battery 0: Disharging, 40%, 00:48:32 [email protected] ~$ acpi Battery 0: Disharging, 40%, 00:48:32 remaining. This command also has many other options. This one shows the CPU temperature. [email protected]Read more

Misc MATE tweaks. Switching on the battery icon and using Compiz for window management.

Power management settings. How to enable the battery icon on the Linux Mint 13 MATE desktop. This is found under the Screensaver->Power management settings. I enabled the Compiz featureset by installing the compizconfig-settings-manager package and typing compiz –replace &exit in a terminal window to replace the existing window manager in MATE with the Compiz decorator. … Read more