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

Knowledge check

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

  1. Only view the first two lines of the file facts.txt.
  2. Only view the last line of the file facts.txt.
  3. Display the contents of the file facts.txt in a reversed order.
  4. Open the file facts.txt using the vi editor.
  5. Exit the vi editor and consider yourself one of the elites.