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!
