June 10th 2026 - Interesting Finds

Bash get the path of a given file

If we want to know the path of a given file we can use the realpath command:

file="$(realpath "$1")"

C language does not require return in main

We do not need to put a return statement in the main function. If the compiler encounters a closing brace with no return statement it will imply a return 0.