Senior
Which command to check the operating system, version, and free memory?
sobes.tech AI
Answer from AI
To view information about the operating system, its version, and free memory in Linux, you can use the following commands:
uname -a— displays kernel and system information.cat /etc/os-release— shows details about the distribution and OS version.free -h— displays memory information in a human-readable format.
Example:
uname -a
cat /etc/os-release
free -h
In Windows, to view the OS version and memory, you can use:
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
systeminfo | findstr /C:"Available Physical Memory"