tar (child) xz Cannot exec No such file or directory

The error: tar (child): xz: Cannot exec: No such file or directory Is majorly an issue with the xz command not found on the host machine. To verify, run: whereis xz Fix To fix, use the installation command for your Linux distribution: sudo apt-get install xz-utils # Debian / Ubuntu sudo yum install xz # RHEL / CentOS sudo zypper in xz # OpenSuSE sudo pacman -S xz # Arch Linux Then untar again with:...

July 10, 2023 · 1 min · Aleem Isiaka

Change files extension in a directory

A onliner for f in *.old; do mv "$f" "${f%.old}.new"; done How??? To change the name of a file on Linux/Unix use the mv command mv currentfilename newfilename If there is a file named aleemisiaka.old and want to rename to aleemisiaka.new We can store the filename to a variable with export FILENAME=aleemisiaka And use the variable name in the mv command mv "$FILENAME"$ "$FILENAME.new" This renames the file from aleem-isiaka.old to aleemisiaka....

June 22, 2023 · 1 min · Aleem Isiaka

Searching for a pattern in the man pages

To search through the man pages for some keywords, use the -k option. man -k [keyword] This shows a result of the commands, and routines that match the keyword with a one-line description of what they are about. man -k passwd shows all the possible entries for passwd in the manual pages. The apropos The man -k [keyword] command is similar to a help utility called apropos which is available both on Unix and Linux....

June 20, 2023 · 1 min · Aleem Isiaka

Know the man(nual) pages

There are many ways to get help as a Linux administrator, manual pages are one of them as they are always close - accessible via the terminal. The manual pages, called “man pages” is a local documentation and description of software packages, drivers, routines, and libraries on a Linux machine. To use it run man [command|library|routine|driver] and replace the command with the name of a command to find a manual....

June 18, 2023 · 1 min · Aleem Isiaka