とらりもんHOME  Index  Search  Changes  Login

Linux training 01

First experience of Linux commands:

- Open the Linux terminal and run the following Linux commands one by one ($ is a prompt. You don't need type $):

$ cal
$ cal 2020
$ cal Aug 2020

- Run the following command and check the content. What is it?

$ man cal   (to quit, hit "q" key)

- Run the following commands:

$ seq 1 5
$ seq 2 5
$ seq 1 2 10
$ seq 10 -1 1
$ man seq   (to quit, hit "q" key)

- Run the following commands:

$ date
$ date -d "yesterday"
$ date -d "last year"
$ date +%j
$ date +%j -d "yesterday"
$ man date

- Run the following commands:

$ free
$ man free

- Run the following commands:

$ df
$ man df

- Run the following commands:

$ last
$ man last

Check point

  • $ in front of a command is a "prompt" which you don't have to type.
  • A Linux command is one-word plus "options" and "arguments".
  • You can change function of a command by changing options and arguments.
  • You can learn about a command by using "man" command. ("man" means "manual")

Exercise

  1. What is the size of memory in your computer?
  2. What day (Sunday to Saturday) was your birth day (not this year but when you were born)? Use Linux command to find it.
Last modified:2017/12/31 17:57:17
Keyword(s):
References: