とらりもんHOME  Index  Search  Changes  Login

とらりもん - Linux training 1 Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

!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
* Check point: $ in front of a command is a "prompt" which you don't have to type.
* Check point: A Linux command is one-word plus "options" and "arguments".
* Check point: You can change function of a command by changing options and arguments.
* Check point: You can learn about a command by using "man" command. ("man" means "manual")

* Exercise: ! Exercise
#
What is the size of memory in your computer?
* Exercise: # What day (Sunday to Saturday) was your birth day (not this year but when you were born)? Use Linux command to find it.