Get the total size of all the files in a directory
It’s amazing how many times I’ve need to find out the total size of all the files in a directory on one of our servers.
I have grown to …
Read Article →130 articles about cli development, tools, and best practices
It’s amazing how many times I’ve need to find out the total size of all the files in a directory on one of our servers.
I have grown to …
Read Article →I tail logs quite a lot.
An example would be to tail the Apache2 access logs.
This is simple to do:
tail -f /var/log/apache2/access.log
This will show …
Read Article →If you need to replace all newline characters with a comma, or perhaps some other delimiter, then using the build-in tr utility will work very well …
You have a directory with a lot of files, and you want to delete only the files that don’t match a specific extension.
This is a simple task …
Read Article →So you are getting an error 404 or perhaps even worse, a 500!
The error in your Apache2 logs looks something like this:
***.162.245.*** - - …
If you’ve ever typed date into your Ubuntu Server and seen a different time or timezone appear than you expected, then it probably means that …
Learning Go or Golang as a Python developer, programmer or software engineer is easier than you think.
While there are quite a lot of things to learn …
Read Article →Programming languages provide the ability to remove special characters from a string quite easily.
Sometimes you need to also do this from your …
Read Article →Given a directory that contains:
|
|- app.py
|- requirements.txt
|- ...
|- <- other-files ->
|- ...
We can create a runme.sh file to always make …
Docker images are usually stored on Docker Hub, but AWS’s Elastic Container Registry can also be used. It’s a great solution and this post …!-->!-->!-->!-->
Read Article →There is a fantastic tool to see and monitor Bandwidth and Network Traffic on Linux.
It’s called bmon and it works out of the box.
Screen on Linux is a popular command-line program that lets you multiplex between interactive shells.
What that means is, you can use screen to save …