Uploaded April 2026 | Updated November 2026, 1 day ago
The 'date' command prints or sets the date and time.
- Print the current date/time, using the default locale's format:
date +%c
- Print the current date/time in UTC, using default format:
date -u
- Print the current date/time in UTC, using the ISO 8601 format:
date -u +%Y-%m-%dT%H:%M:%S%Z
- Print the date only using the ISO 8601 format:
date +%F
-or-
date +"%Y-%m-%d"
- Print the date in MM/DD/YY format:
date +%D
-or-
date +"%m/%d/%y"
- Print the time in HH:MM:SS format:
date +%T
-or-
date +"%H:%M:%S"
- Print the current date as a Unix timestamp (seconds since the Unix epoch):
date +%s
- Convert a Unix timestamp date (ex: 1773665635) to the default format:
date -d @1773665635
- Convert a given date to the Unix timestamp format:
date -d "2020-03-01 00:00" +%s -u
- Display the current date using the RFC-3339 format (YYYY-MM-DD hh:mm:ss TZ) and printing seconds (s):
date --rfc-3339 s
NOTE Instead of 's' for seconds, you could use 'n' for nanoseconds of 'd' for printing date only.
- Set the current date providing a full timestamp in quotes (requires sudo privileges):
date -s "2026-03-16 14:30:00"
- Set the current time while keeping the current date (requires sudo privleges).
date +%T -s "10:15:30"
REFERENCED:
βΊ gitlab.com/dwt1/vidman - Video Man Pages
WANT TO SUPPORT THE CHANNEL?
π° Patreon: patreon.com/distrotube
π³ Paypal: paypal.com/donate/?hosted_button_id=MW3ZFGS8Q9JGW
ποΈ Amazon: amzn.to/2RotFFi
π Teespring: teespring.com/stores/distrotube
DT ON THE WEB:
πΈοΈ Website: http://distro.tube
π GitLab: gitlab.com/dwt1
π¨οΈ Mastodon: fosstodon.org/@distrotube
π« Reddit: reddit.com/r/DistroTube
π½οΈ Odysee: odysee.com/@DistroTube:2
FREE AND OPEN SOURCE SOFTWARE THAT I LIKE:
π Brave Browser - brave.com
π½οΈ Open Broadcaster Software: obsproject.com
π¬ Kdenlive: kdenlive.org
π¨ GIMP: gimp.org
π» VirtualBox: virtualbox.org
ποΈ Doom Emacs: github.com/hlissner/doom-emacs
Your support is very much appreciated. Thanks, guys!
The 'date' command prints or sets the date and time.
- Print the current date/time, using the default locale's format:
date +%c
- Print the current date/time in UTC, using default format:
date -u
- Print the current date/time in UTC, using the ISO 8601 format:
date -u +%Y-%m-%dT%H:%M:%S%Z
- Print the date only using the ISO 8601 format:
date +%F
-or-
date +"%Y-%m-%d"
- Print the date in MM/DD/YY format:
date +%D
-or-
date +"%m/%d/%y"
- Print the time in HH:MM:SS format:
date +%T
-or-
date +"%H:%M:%S"
- Print the current date as a Unix timestamp (seconds since the Unix epoch):
date +%s
- Convert a Unix timestamp date (ex: 1773665635) to the default format:
date -d @1773665635
- Convert a given date to the Unix timestamp format:
date -d "2020-03-01 00:00" +%s -u
- Display the current date using the RFC-3339 format (YYYY-MM-DD hh:mm:ss TZ) and printing seconds (s):
date --rfc-3339 s
NOTE Instead of 's' for seconds, you could use 'n' for nanoseconds of 'd' for printing date only.
- Set the current date providing a full timestamp in quotes (requires sudo privileges):
date -s "2026-03-16 14:30:00"
- Set the current time while keeping the current date (requires sudo privleges).
date +%T -s "10:15:30"
REFERENCED:
βΊ gitlab.com/dwt1/vidman - Video Man Pages
WANT TO SUPPORT THE CHANNEL?
π° Patreon: patreon.com/distrotube
π³ Paypal: paypal.com/donate/?hosted_button_id=MW3ZFGS8Q9JGW
ποΈ Amazon: amzn.to/2RotFFi
π Teespring: teespring.com/stores/distrotube
DT ON THE WEB:
πΈοΈ Website: http://distro.tube
π GitLab: gitlab.com/dwt1
π¨οΈ Mastodon: fosstodon.org/@distrotube
π« Reddit: reddit.com/r/DistroTube
π½οΈ Odysee: odysee.com/@DistroTube:2
FREE AND OPEN SOURCE SOFTWARE THAT I LIKE:
π Brave Browser - brave.com
π½οΈ Open Broadcaster Software: obsproject.com
π¬ Kdenlive: kdenlive.org
π¨ GIMP: gimp.org
π» VirtualBox: virtualbox.org
ποΈ Doom Emacs: github.com/hlissner/doom-emacs
Your support is very much appreciated. Thanks, guys!










![awk - a programming language for working on files - Video Man Pages
The awk command is really an entire programming language used for working with files and text.
- Print a file (similar to cat):
awk {print} path/to/file
OR
awk {print $0} path/to/file
- Print the 2nd field of each line:
awk {print $2} path/to/file
- Print the last field of each line:
awk {print $NF} path/to/file
- Search for lines containing string and print the second field of those lines:
awk /string/ {print $2} path/to/file
- Use a different field separator (instead of space) and print 1st and 7th fields with a TAB in between:
awk -F : {print $1 t $7} /etc/passwd
- Find a specific string in any column:
ps -ef | awk { if($NF /usr/bin/pipewire) print $0};
NOTE We search if the last field is /usr/bin/pipewire and print the line.
- Search 1st field if it starts with b or c, then prints the line:
awk $1 ~ /^[b,c]/ {print $0} .bashrc
NOTE The ~ character is the regex match operator.
- Use the substr function to print each record from the 2nd character onward:
awk {print substr($0, 2)} .bashrc
NOTE It essentially prints the document but omits the first character of each line.
REFERENCED:
βΊ https://gitlab.com/dwt1/vidman
WANT TO SUPPORT THE CHANNEL?
π° Patreon: https://www.patreon.com/distrotube
π³ Paypal: https://www.paypal.com/donate/?hosted_button_id=MW3ZFGS8Q9JGW
ποΈ Amazon: https://amzn.to/2RotFFi
π Teespring: https://teespring.com/stores/distrotube
DT ON THE WEB:
πΈοΈ Website: http://distro.tube
π GitLab: https://gitlab.com/dwt1
π¨οΈ Mastodon: https://fosstodon.org/@distrotube
π« Reddit: https://www.reddit.com/r/DistroTube/
π½οΈ Odysee: https://odysee.com/@DistroTube:2
FREE AND OPEN SOURCE SOFTWARE THAT I LIKE:
π Brave Browser - https://brave.com/
π½οΈ Open Broadcaster Software: https://obsproject.com/
π¬ Kdenlive: https://kdenlive.org
π¨ GIMP: https://www.gimp.org/
π» VirtualBox: https://www.virtualbox.org/
ποΈ Doom Emacs: https://github.com/hlissner/doom-emacs
Your support is very much appreciated. Thanks, guys! awk - a programming language for working on files - Video Man Pages](https://i.ytimg.com/vi/cK1JMK7Ckq0/mqdefault.jpg)