0
0
Linux CLIscripting~20 mins

Linux distributions overview (Ubuntu, CentOS, Fedora) in Linux CLI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Linux Distributions Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
Identify the package manager output
You run the command sudo apt update on a Linux system. Which distribution are you most likely using?
ACentOS
BUbuntu
CFedora
DArch Linux
Attempts:
2 left
💡 Hint
Think about which distributions use apt as their package manager.
💻 Command Output
intermediate
1:30remaining
Determine the output of a release info command
What is the expected output of the command cat /etc/centos-release on a CentOS system?
ACentOS Linux release 7.9.2009 (Core)
BUbuntu 20.04.4 LTS
CFedora release 38 (Thirty Eight)
DDebian GNU/Linux 11 (bullseye)
Attempts:
2 left
💡 Hint
This file contains the distribution name and version for CentOS.
📝 Syntax
advanced
2:00remaining
Correct command to install a package on Fedora
Which command correctly installs the package htop on Fedora?
Asudo dnf install htop
Bsudo apt install htop
Csudo yum install htop
Dsudo pacman -S htop
Attempts:
2 left
💡 Hint
Fedora uses a modern package manager replacing yum.
🚀 Application
advanced
1:30remaining
Choose the correct command to check the kernel version on Ubuntu
You want to check the Linux kernel version on an Ubuntu system. Which command will give you the correct output?
Aapt-get kernel-version
Bcat /etc/fedora-release
Cuname -r
Drpm -q kernel
Attempts:
2 left
💡 Hint
The kernel version is shown by a system command, not a package manager.
🧠 Conceptual
expert
2:30remaining
Identify the main difference between CentOS and Fedora
What is the primary difference between CentOS and Fedora in terms of their release and support model?
ACentOS is based on Debian; Fedora is based on Arch Linux
BCentOS uses <code>apt</code> package manager; Fedora uses <code>yum</code>
CCentOS is community-driven; Fedora is commercially supported by Red Hat
DCentOS is a stable, long-term support distribution; Fedora is a cutting-edge, short lifecycle distribution
Attempts:
2 left
💡 Hint
Think about how often each distribution releases new versions and their target users.