[AWS CLI] Show only file names with aws s3 ls

Created on November 28, 2026

You can combine aws s3 ls with awk to display only the file names from the listing.

aws s3 ls s3://something/ --recursive | awk '{print $4}'
AWS CLI