Linux: check if a file is newer than another.
test command is convenient; it can verify if a filename is a file or a directory and many other things, but it can also make age……
# Linux, Devops, Scripting, Cats and various things come to my mind
test command is convenient; it can verify if a filename is a file or a directory and many other things, but it can also make age……
More often than you will need to verify in your scripts whether a file or directory exists or not. To do this, you can use the test……
Find command is one of the most valuable commands; it can find files and directories based on many criteria like age, size, and name. Let’s……
Assume you have two directories that needs to be constantly synced, not just every one minute by using a cronjob but as soon as possible……
Assume that you have a lot of RAM that you don't need but your storage devices are quite slow. At the same time, you have a program that……
sed is one of the best tools to replace text in files! it's very easy and super versatile, lets see some simple examples!…
named pipes or fifo queues are essentially a file where a process can write its output and another process read its input, you might now……
Backups is something you usually dont think a lot but is essential in case of a failure or a server crash; there are many solutions to deal……
Curl is an excellent tool and provides the -w parameter to format your output, this can be super handy in case you want to write curl……
Recently i learned something really cool! since the public ssh key is part of the private ssh key we can extract the public key from the……