Is there a way to measure how much a shell command used memory?

Viewed 732

Is there a way to measure how much an executed terminal command/operation used memory, like the built-in command time for measuring execution time. I'd like to compare commands with different parameters.

2 Answers
Related