See Which Directories Take Up the Most Space Using the Terminal in Ubuntu

See Which Directories Take Up the Most Space Using the Terminal in Ubuntu

Tiempo de lectura: 2 minutos On any operating system, especially on Linux systems like Ubuntu, it is important to keep track of available storage space. Sometimes, you might find that your hard drive is full and need to identify which files or directories are consuming the most space. Fortunately, in Ubuntu, we can use the du (disk usage) command to … Read more

Redirect PHP errors to Docker console or Linux console

Redirect PHP errors to Docker console or Linux console

Tiempo de lectura: < 1 minuto Today we’re going to learn how to create a handler to redirect PHP errors to the Linux or Docker console. The first thing we need to do is to create a handler, we can call it exception_handler.php. And let’s add the following: <?php function handleException($exception) { // Get information about the exception $message = ‘ERR: … Read more