Show other `free` command options.

QuestionsQuestions8 SkillsProDec, 10 2025
066

Certainly! Labby can help you with that.

While the current lab step focuses on -h and -t, there are other useful options for the free command. You can always check the manual page for a complete list, but here are a few common ones:

  • -b: Displays output in bytes.
    free -b
  • -k: Displays output in kilobytes (this is often the default).
    free -k
  • -m: Displays output in megabytes.
    free -m
  • -g: Displays output in gigabytes.
    free -g
  • -s <delay>: Continuously displays memory usage every <delay> seconds. (Press Ctrl+C to stop it).
    free -s 5

You can combine many of these options, for example, free -m -s 2 would refresh every two seconds and show values in megabytes.

Feel free to try any of these commands in your terminal! Let me know if you have more questions.

0 Comments

no data
Be the first to share your comment!