Linux CLI Terminal: Free Memory & Free Disk Space

How to Check Free Memory Space on Linux

========

How to Check Free Memory Space on Linux [Terminal]

==================================

Method 1: Using meminfo

cat /proc/meminfo

grep MemTotal /proc/meminfo

=================
=================

Method 2: Using free, top and Other Commands
1
Typing free in your command terminal provides the following result:
free
2
Use:
top
htop
3
Provides general information about processes, memory, paging, block IO, traps, and CPU activity.
vmstat

=================

How to Check Free Disk Space on Linux

========

How to Check Free Disk Space on Linux [Terminal]

==================================

Method 1: Using df 
The df command stands for disk-free and quite obviously, it shows you the free and available disk space on Linux systems.
1
With -h option, it shows the disk space in human-readable format (MB and GB).
df -h
2
View the disk usage with more details like filesystem type and blocks, you can use the command:
df -T
3
Shows the file system's complete disk usage even if the Available field is 0
df -a 

=================

Method 2: Using du, ls, and Other Commands
While df command is quite popular and should be enough for the use case, there are other alternatives that you can try including:

du -h → Shows disk usage in human-readable format for all directories and subdirectories.
du -a →Shows disk usage for all files.
du -s Provides the total disk space used by a particular file or directory.
ls -al →Lists the entire contents, along with their size, of a particular directory.
stat <file/directory> →Displays the size and other stats of a file/directory or a file system.
fdisk -l →Shows disk size along with disk partitioning information (may require sudo privileges).
dust  → An interesting alternative to the du command written in Rust, available for Arch Linux in the repositories. For other Linux distros, you can refer to its GitHub releases section.

=================

Useful info to keep for your PC in case malfunctions and it needed for debugging yourself or by a technician

With Additional Tricks & Tips

PC or Laptop

Brand, Model, Serial Number, Date, and Store purchased

Additional PC Specs/Parts like:

Graphics Cards, PCIe cards others, etc. Models and Serial Numbers

Windows 10 or 11 > Settings > System > About

Run: Msinfo32

Run: winver

Setup in a Dual Boot PC, Default Boot OS

Run: SystemPropertiesAdvanced > Startup & Recovery: Settings > Default OS

or

Windows 10 or 11 > Settings > System > About > Advanced System Settings > Startup & Recovery: Settings > Default OS

Search Windows or Cortana:

Create Recovery Drive

http://leonidassavvides.com/blog/2022/10/01/create-recovery-drive-usb3-stick-16gb-windows-10/

Create Restore Point

https://support.microsoft.com/en-us/windows/create-a-system-restore-point-77e02e2a-3298-c869-9974-ef5658ea3be9

Other System Utilities – Microsoft Windows

Windows Installation Media Creator Tool

Windows ISO Downloads from Microsoft Software Download Page

https://www.microsoft.com/en-us/software-download/

https://www.microsoft.com/en-us/software-download/windows10

https://www.microsoft.com/en-us/software-download/windows11

https://learn.microsoft.com/en-us/windows/release-health/release-information

https://learn.microsoft.com/en-us/windows/release-health/windows11-release-information


Third-Party Tools

CPU-Z

https://www.cpuid.com/softwares/cpu-z.html

CrystalDiskInfo

https://crystalmark.info/en/software/crystaldiskinfo/

Create RECOVERY DRIVE [USB3 STICK 16GB] Windows 10

Create RECOVERY DRIVE [USB3 STICK 16GB] Windows 10 Pro [19043.2006]

Time complete: ~90 min

Relative Post:

http://leonidassavvides.com/blog/2022/10/02/useful-info-to-keep-for-your-pc-in-case-malfunctions-and-it-needed-for-debugging-yourself-or-by-a-technician/