How to get a count of how much disk space your Linux installation is taking up.

Getting information about how much disk space your Linux installation is taking up is very easy. The du command can print disk usage. This example is used on my WSL2 Kali Linux installation. ┌──(john㉿DESKTOP-PF01IEE)-[~] └─$ sudo du -hl –exclude=/{proc,sys,dev,run,mnt} / | awk ‘END {print $1 " Space used on " $2}’ 6.5G Space used on … Read more

Useful commands for getting information about your computers memory status and hard drives.

This command used with grep will return information about your computers memory. jason@jason-desktop:~/Documents$ cat /proc/meminfo | grep Total MemTotal: 12219468 kB SwapTotal: 70311928 kB VmallocTotal: 34359738367 kB CmaTotal: 0 kB HugePages_Total: 0jason@jason-desktop:~/Documents$ cat /proc/meminfo | grep Total MemTotal: 12219468 kB SwapTotal: 70311928 kB VmallocTotal: 34359738367 kB CmaTotal: 0 kB HugePages_Total: 0 If you want to … Read more

Using the Linux rename command and other useful commands for Linux Mint 13.

The rename command for the Linux shell allows you to rename a directory full of files en-mass. This first example, based on the examples in the rename manual page. Firstly renaming a directory full of xhtml files to the html extension. rename ‘s/\.xhtml$/.html/’ *.xhtmlrename ‘s/\.xhtml$/.html/’ *.xhtml And renaming a folder full of Jpeg files with … Read more