How to display only the year?

To display only the current year using the date command, you can use the following command:

date +"%Y"

Example Output:

2023

This command formats the output to show just the year. If you have any more questions or need further assistance, feel free to ask!

0 Comments

no data
Be the first to share your comment!