Shell – Show the year while listing files in the current directory

datelinuxshell-script

I am working on a Red Hat server. The commands ls -l or ll giving me the date and time in format +"%b %-d %H:%M".

I want to list the files in a way where the year when each was file created would appear within the date.

How is that possible?

Best Answer

You can use man ls and here you can find --time-style parameter. Or you can use:

ls --full-time.

Related Question