in Education by
A tried using the AWS CLI for listing the files in the S3 bucket using: aws s3 ls s3://myS3bucket --recursive --human-readable --summarize I just want to view the file names and not the date, time etc. How can I do that? Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Is command is used to list S3 objects and common prefixes under a prefix or all S3 buckets. Note that the --output and --no-paginate arguments are ignored for this command. Syntax: aws s3 ls AWS command alone is not sufficient, omit --human reader-readable flag to get the output easier to work with, and the --summarize flag to remove the summary data at the end. Try the given code: aws s3 ls s3://mysS3bucket --recursive | awk '{print $4}'

Related questions

0 votes
    I am using the aws cli to list the files in an s3 bucket using the following command (documentation): aws s3 ... only the file list? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Can someone please tell me how can I get the ARN for an S3 bucket using AWS Cli Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    I am unable to copy some files from a S3 bucket in AWS CLI Adding * to the path is not helping: ... /personalfiles/file* Please help Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    Could anyone tell me how to get my first AWS job? Select the correct answer from above options...
asked Jan 6, 2022 in Education by JackTerrance
0 votes
    Could someone tell me how to prepare for the AWS interview? Select the correct answer from above options...
asked Jan 6, 2022 in Education by JackTerrance
0 votes
    I'm starting a bash script which will take a path in S3 (as specified to the ls command) and dump the ... finding which does it? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    S3 is a storage facility, EBS is a device, EFS is a file system. Can you please help me in choosing among the three and where Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    I'm trying to set up an Amazon Linux AMI(ami-f0091d91) and have a script that runs a copy command to copy ... what is going on? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Is it possible to get the ARN of an S3 bucket via the AWS command line? I have looked through the documentation ... way to do this. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Hello I am trying to upload some files to the amazon S3 bucket but I am facing an error that the key is ... 't exist Please help. Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    I'm having trouble using * in the AWS CLI to select a subset of files from a certain bucket. Adding * to the ... s3://data/2016-08*. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Can someone differentiate between EC2 and Elastic Beanstalk? Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    Can you help me out with this program? I am unable to run this code. varx http = require('http'); exports.handler ... + eventa.url); } Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    I tried this: pip3 install --user --upgrade awscli pip3 --version I'm getting: pip 9.0.1 from /downloads/ ... not found. Please help. Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    I am writing an API for an iOS app where the user's login with the Facebook API on iOS. The server ... achieve this kinda setup? Select the correct answer from above options...
asked Feb 3, 2022 in Education by JackTerrance
...