925 views
0 votes
Unix.

List the commands that will allow you to:
4. Do the following:
a) Invoke a command that will display the last 6 executed
commands
b) Display a report to show how long the system has been up and running
c) Execute a command to show a report on memory usage
d) Show the current process tree with your current login shell as the starting point

1 Answer

5 votes

Final answer:

The commands to achieve these are: history, uptime, free, and ps -ef.

Step-by-step explanation:

  1. history command displays the last executed commands. To display the last 6 commands, you can use the command 'history 6'.
  2. uptime command shows how long the system has been up and running.
  3. free command provides a report on memory usage.
  4. ps -ef command will show the current process tree with your current login shell as the starting point.

User Korniltsev Anatoly
by
8.0k points