The below command provides the status of total, utilized and free RAM on Ubuntu as well as the SWAP space utilization information.

free -h

After executing the above command the following output is displayed on the console.

free command output