Ninad Pathak

The gzip Command in Linux

A single `report.log.gz` and a `logs.tar.gz` can both look like compressed files, but only one is an archive of directory paths. I couldn’t leave that distinction alone, because it decides which command gives you the file you meant to create. Once the output’s shape is clear, you can match the command to keeping a source

The gzip Command in Linux Read More »

Sudo Command in Linux/Unix

A command like `sudo -u nobody id -un` runs as a different user than `sudo id -u`, even though both start the same way. I kept digging into what decides whether either request is allowed. That distinction helps you match sudo’s command form to the identity your task needs. The answer comes down to what

Sudo Command in Linux/Unix Read More »