Today we will talk about Advanced Version of Commands that helps in using Linux in a modern way. It is important to know about these commands for our efficient work.
Let’s start with our first advanced version.
dnf <- yum
dnf is the modern version of yum command that helps in package management. It is introduced in 2013 that is 10 years after yum(2003).
It is more faster and built on python 3 whereas yum built on python 2 that meets end of life in 2020.
dnf works on most of the latest fedora based OS like RHEL 10, CentOS Stream 10 etc.
yum is no longer actively developed. dnf is being actively maintained by Red Hat and Fedora teams.
dnf also supports parallel downloads that yum doesn’t support.
vim <- vi
vim is the advance version of vi (Visual Interface). vim stands for Vi IMproved that is an extended version of vi.
It was first released in 1991 with syntax highlighting with several new features.
vim features that are not available on vi are Visual Mode, Search highlighting, Multiple windows, Tabs Support, Autocompletion, Mouse support, Support for GUI and many more.
htop <- top
htop is the advance version of top command and it is not available by default in CentOS. We have to install it from epel-release.
htop comes with a colorful and interactive design with mouse support. We can easily kill the processes by using F9 and arrow keys.
We can also select multiple process at once that makes it a modern version of commands
apt <- apt-get
apt works as modern version for apt-get that works in Debian based systems like Ubuntu.
apt-get introduced in 1998 whereas apt introduced in 2014 as advance version of commands.
apt provide a simpler, unified and human friendly interface by combining features of apt-get and apt-cache.
It shows progress bar and color output also.
ss <- netstat
ss is the modern version of netstat with combination of several other commands.
ss is introduced to replace outdated tools like netstat, ifconfig, route etc.
It works more faster than netstat command and fits perfectly as modern version of commands.
That’s all about advanced version of commands in which we have talk about some of the modern version of commands.
If you want to buy any kind of hosting plan then you can contact us here.
FAQ on Advanced Version of Commands
Q. What is dnf and how is it different from yum?
A. dnf (Dandified YUM) is the next-generation package manager that replaces yum in Fedora, CentOS 8+ and RHEL 8+.
Key differences:
Faster and more efficient dependency resolution
Supports modularity
Python 3 based
Clear error messages and better performance
Q. Can I still use yum on modern CentOS or RHEL?
A. Yes, but it’s typically an alias to dnf. The underlying engine is dnf.
Q. What is vim and how is it better than vi?
A. vim stands for “Vi IMproved”.
It offers:
Syntax highlighting
Multi-level undo
Plugin support
Visual mode
Search & replace
Easier configuration
Q. Is vim a drop-in replacement for vi?
A. Yes, vim is backward compatible. You can use vim wherever vi was used.
Q. Does htop consume more resources than top?
A. Yes, slightly, due to its richer UI — but it’s negligible on modern systems.
Q. What is ss and why does it replace netstat?
A. ss (socket statistics) is faster, provides more detailed socket info, and is part of the modern iproute2 package.
It’s capable of replacing:
netstat
lsof
parts of tcpdump
Q. Why is netstat not found by default?
A. Because net-tools (which includes netstat) is deprecated and not installed by default.
Q. Is apt backward compatible?
A. Yes, you can safely use apt for daily tasks. Use apt-get for scripting.
Discover more from Root Learning
Subscribe to get the latest posts sent to your email.