1

I'm trying to write a bash script that will see all files in a directory, and then tell me each file's size and each of their dates of creation.

Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232

1 Answers1

1

Getting the creation date will be a tough one on a Linux system as it isn't stored.

Related question: How to find creation date of file?

Use the ls command to list files, try the options -a and -s to list all, and list their sizes. Use the command man ls on the command line to read a full description on the ls command

ztk
  • 151