Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Get S3 bucket file list from terminal

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 112
    Comment on it

    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-

    1. 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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: