Linux CLI Tarball extraction
- bunzip2 file.bz2
- tar xjvf file.tar.bz2
- tar xvf file.tar
- tar zxvf file.tar.gz
- tar zxvf file.tgz
- 7z x file.7z
- 7z x file.zip
- unrar x file.rar
In Bash scripting, `echo` and `printf` are fundamental for displaying text, each suited to different scenarios. `Echo` is ideal for simple messages due to its ease of use, while `printf` offers extensive control over formatting, making it better for complex outputs. Choosing between them depends on the output’s complexity and formatting needs.
When updating Ubuntu and encountering “The following packages have been kept back,” it indicates manual intervention is needed due to dependency issues. You can cautiously upgrade these packages using specific apt-get commands or opt for a more aggressive approach with `dist-upgrade`, which handles complex dependencies by potentially adding or removing packages. Understanding each method’s implications is crucial for system stability.