Hello friends,
If you are using the amazon S3 bucket to store the files and want to fetch the list of stored files list from terminal with respect to added time in bucket, means if you want to get the newly added items list from amazon bucket system, you can use following method-
first configure the bucket-
s3cmd --configure
after this command terminal will ask for your ACCESS KEY & SECRET KEY, after configure the s3cmd, you can use following commands to get the item list -
Sort DESC:
s3cmd ls --recursive s3://africantune/ | sort -r
Sort ASC:
s3cmd ls --recursive s3://africantune/ | sort -n
Sort DESC And limt 2 record :
s3cmd ls --recursive s3://africantune/ | sort -r |head -n 2
0 Comment(s)