To create a folder and move files to it, simply use the mv command and include the folder in the path - it will be created automatically.
Example: create a folder "newFolder" and move the file "pic.jpg" from the root of the bucket:
aws s3 mv s3: //bucket-name/pic.jpg s3: //bucket-name/newFolder/pic.jpg
source share