Skip to content

Time

Crontab

crontab -e` # edit user crontab file

first 5 parameters is time and after that is the command image

Time Measurement

time <command> # measure the time taken to execute a command

Date

date # example: Mon Jun 10 12:34:56 CET 2024
date +"%Y-%m-%d %H:%M:%S" # custom format: 2024-06-10 12:34:56
date -s "2024-06-10 12:00:00" # set system date and time

Datetimectl

timedatectl # show alot of time related info