On Tue, Jun 11, 2024 at 07:19:42AM +0800, Jeff Peng wrote: > While I expect the output should be: > > $ date +%such_a_option > Tuesday > > or > $ date +%such_a_option > Tue > > does date command has this option?
You can run the command "man date" to read the short version of the documentation. This will include the information you wanted. Search for "week" and it takes you right there: %a locale's abbreviated weekday name (e.g., Sun) %A locale's full weekday name (e.g., Sunday) %b locale's abbreviated month name (e.g., Jan) %B locale's full month name (e.g., January) %c locale's date and time (e.g., Thu Mar 3 23:05:25 2005) Should you ever feel a need to read the longer version of the documentation, it's in GNU info pages. So you would need to type the command "info coreutils date" to get to it. And then you'd need to figure out the user interface of the "info" program, which is not intuitive unless you happen to be an emacs power user already.