Ls command
From Notes_Wiki
Revision as of 06:13, 7 October 2022 by Saurabh (talk | contribs) (Created page with "Home > Shell scripting > ls command =Get full time along with year information in ls -l output= Normally '<tt>ls -l</tt>' output only prints date (day) and month and not year information of file last modification, access or change time. If the file is modified today itself it prints hour:minute information. To list year, seconds, Microseconds also use: <pre> ls -l --full-time </pre> Refer: * https://stackoverflow.com/questions/13999300/bash-ls-...")
Home > Shell scripting > ls command
Get full time along with year information in ls -l output
Normally 'ls -l' output only prints date (day) and month and not year information of file last modification, access or change time. If the file is modified today itself it prints hour:minute information. To list year, seconds, Microseconds also use:
ls -l --full-time
Refer: