3. Short history
● Ken Thomson
● Dennis Ritchie
● unix like systems 1969
● official release 1979 "...the number of UNIX installations has grown to
10, with more expected..."
- Dennis Ritchie and Ken Thompson, June
1972
9. Runlevel
>runlevel
Operating System Default runlevel
AIX 2
CentOS 3 (console/server) or 5 (graphical/desktop)[5]
Debian 2[6]
Gentoo Linux 3[7]
Mac OS X 3
Mandriva Linux 3 (console/server) or 5 (graphical/desktop)
Red Hat Enterprise Linux / Fedora 3 (console/server) or 5 (graphical/desktop)[8]
Solaris 3[9]
Ubuntu (Server and Desktop) 2[6]
10. Cron and crontab
00 20 * * * /home/oracle/scripts/export_dump.sh
Cron expressions ( * / , -)
# * * * * * command to execute
# ┬ ┬ ┬ ┬ ┬
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ └───── day of week (0 - 7) (0 to 6 are Sunday to Saturday,
or use names; 7 is Sunday, the same as 0)
# │ │ │ └────────── month (1 - 12)
# │ │ └─────────────── day of month (1 - 31)
# │ └──────────────────── hour (0 - 23)
# └───────────────────────── min (0 - 59)
11. Entry Description Equivalent to
@yearly (or @annually) Run once a year at midnight in the morning of January 1 0 0 1 1 *
@monthly Run once a month at midnight in the morning of the first day of the
month
0 0 1 * *
@weekly Run once a week at midnight in the morning of Sunday 0 0 * * 0
@daily Run once a day at midnight 0 0 * * *
@hourly Run once an hour at the beginning of the hour 0 * * * *
@reboot Run at startup @reboot
Crontab
22. Job control
& Run the command in the background > long_cmd &
CTRL-Z Stop the foreground process [Ctrl-z] Stopped
jobs List background processes > jobs
%n Refers to the background number n > fg %1
bg Restart a stopped background process > bg [2] big_job &
fg Bring a background process to the foreground > fg %1
kill Kill a process > kill %2
CTRL-D logout
CTRL-S, CTRL-Q (scroll lock)