Skip to main content

ls -l will display month, day and year - since, according to BSD man page: If the modification time of the file is more than 6 months in the past or future, then the year of the last modification is displayed in place of the hour and minute fields.

So, to make sure that year will always be shown, use:

ls -l --time-style=long-iso (GNU/Linux)

ls -lT will display display complete time information in BSD (MacOS)

ls -l will display month, day and year - since, according to BSD man page: If the modification time of the file is more than 6 months in the past or future, then the year of the last modification is displayed in place of the hour and minute fields.

So, to make sure that year will always be shown, use:

ls -l --time-style=long-iso (GNU/Linux)

ls -lT will display display complete time information in BSD (MacOS)

ls -l will display month, day and year - since, according to BSD man page: If the modification time of the file is more than 6 months in the past or future, then the year of the last modification is displayed in place of the hour and minute fields.

So, to make sure that year will always be shown, use:

ls -l --time-style=long-iso (GNU/Linux)

ls -lT will display complete time information in BSD (MacOS)

added 1 character in body
Source Link

ls -l will display month, day and year - since, according to BSD man page: If the modification time of the file is more than 6 months in the past or future, then the year of the last modification is displayed in place of the hour and minute fields.

So, to make sure that year will always be shown, use:

ls -l --time-style=long-iso (GNU/Linux)

ls -lT will display display complete time information in BSD (MacOS)

ls -l will display month, day and year - since, according to BSD man page: If the modification time of the file is more than 6 months in the past or future, then the year of the last modification is displayed in place of the hour and minute fields.

So, to make sure that year will always be shown, use:

ls --time-style=long-iso (GNU/Linux)

ls -lT will display display complete time information in BSD (MacOS)

ls -l will display month, day and year - since, according to BSD man page: If the modification time of the file is more than 6 months in the past or future, then the year of the last modification is displayed in place of the hour and minute fields.

So, to make sure that year will always be shown, use:

ls -l --time-style=long-iso (GNU/Linux)

ls -lT will display display complete time information in BSD (MacOS)

added 1 character in body
Source Link

ls -l will display month, day and year - since, according to BSD man page: If the modification time of the file is more than 6 months in the past or future, then the year of the last modification is displayed in place of the hour and minute fields.

So, to make sure that year will always be shown, use:

ls --time-style=long-iso (GNU/Linux)

ls -lT will display display complete time information in BSD (MacOS)

ls -l will display month day and year - since, according to BSD man page: If the modification time of the file is more than 6 months in the past or future, then the year of the last modification is displayed in place of the hour and minute fields.

So, to make sure that year will always be shown, use:

ls --time-style=long-iso (GNU/Linux)

ls -lT will display display complete time information in BSD (MacOS)

ls -l will display month, day and year - since, according to BSD man page: If the modification time of the file is more than 6 months in the past or future, then the year of the last modification is displayed in place of the hour and minute fields.

So, to make sure that year will always be shown, use:

ls --time-style=long-iso (GNU/Linux)

ls -lT will display display complete time information in BSD (MacOS)

Source Link
Loading