Learn Linux Quickly
上QQ阅读APP看书,第一时间看更新

Knowledge check

For the following exercises, open up your Terminal and try to solve the following tasks:

  1. You need to know if the echo command is a shell builtin or an executable program, which command would you run?
  2. Display the location of the uptime command executable file.
  3. Show a brief description of the mkdir command.
  4. You forgot how to use the mv command, what are you going to do?
  5. You forgot which command is used to display the calendar, what are you going to do?
  6. The history command is a shell builtin and so it doesn't have a man page. You want to clear your history but don't know how. What are you going to do?

True or false

  1. The command whereis is used to locate commands.
  2. You can use man -p and apropos interchangeably.
  3. You can use the whatis command to get a brief description of a command.
  4. You can use the type command to determine if a command is an alias, shell builtin, or an executable program.