TagUbuntu

Ubuntu – count all files in a directory recursively

U

Ubuntu – count all files in a folder recursively. Took a while to figure out how to do this on a single command, but so very useful to check if all files have copied successfully. find . -type f | wc -l How this works: find . -type f finds all files ( -type f ) in this ( . ) directory and shows everything as one file on each line in a list. The second command comes after the pipeĀ | into wc...

Ubuntu – Backup Amazon EC2 to S3 (Pre-requisites)

U

Pre-requisites on the server are Amazon S3 tools, and zip sudo apt-get install s3cmd sudo apt-get install zip unzip You then need to configure the s3cmd to use the Access Code and Secret Key from the IAM within your AWS console. Its recommended that you set up a new user with programmatic access only for each server / project, and give the user the AmazonS3FullAccess permission. Back on the...

Archive

Tags

Get in touch

I'm available on just about every social media platform out there as RMTWeb.