Final answer:
The commands to achieve these are: history, uptime, free, and ps -ef.
Step-by-step explanation:
- history command displays the last executed commands. To display the last 6 commands, you can use the command 'history 6'.
- uptime command shows how long the system has been up and running.
- free command provides a report on memory usage.
- ps -ef command will show the current process tree with your current login shell as the starting point.