Tagged articles
6 articles
Page 1 of 1
Raymond Ops
Raymond Ops
Apr 1, 2025 · Operations

Master the Linux date Command: Formats, Options, and Real‑World Examples

Learn how to use the Linux date command to display, format, and manipulate dates and times, including options for custom strings, file input, relative dates, setting system time, UTC display, and retrieving file modification timestamps, with practical code examples and a comprehensive format table.

Date FormattingSysadmindate command
0 likes · 9 min read
Master the Linux date Command: Formats, Options, and Real‑World Examples
Liangxu Linux
Liangxu Linux
Jul 26, 2021 · Fundamentals

Master the Linux date Command: Display, Format, and Set Dates

This tutorial explains how to use the Linux date command to show the current time, format dates in various ways, query past or future dates, customize output with format specifiers, set the system clock, and incorporate date values into shell scripts.

Date FormattingLinuxShell scripting
0 likes · 7 min read
Master the Linux date Command: Display, Format, and Set Dates
Liangxu Linux
Liangxu Linux
Nov 7, 2018 · Operations

Mastering the Linux date Command: Formats, Calculations & Timestamp Conversions

This guide explains why accurate date‑time handling matters for tasks like log naming, introduces the common date format specifiers, and provides step‑by‑step shell examples for retrieving the current time, custom‑formatted dates, relative dates such as yesterday or one hour ago, and converting between human‑readable dates and Unix timestamps.

Bashdate commandtime formatting
0 likes · 5 min read
Mastering the Linux date Command: Formats, Calculations & Timestamp Conversions