Hi guys,
I'm working for my RedHat certs, and I'm kinda annoyed over the different syntax that every command out there wants to use..
Take for example systemctl and firewall-cmd..
So you want to see the status of a service on systemctl?
systemctl status httpd
Easy and to the point. This is something I like..
But then we have something like firewall-cmd, I swear the person who coded this thing had a fetish for minus signs.. Even the command has a minus sign in it..
How do you check the status of a zone?
firewall-cmd --zone=public --list-all
My question is... Why? Why does it have so many -'s and why do they not try to follow some sort of standard? This extends to every other command too... Then we have some commands who like to use flags like -a -d, etc.. Why couldn't the guys who made firewalld and systemctl also follow the same standard? And then the IP commands, which for some reason I can type:
ip a
and that will be the same thing as ip address show.. Kinda like a cisco IOS terminal.
I'm sure there is probably a good reason for all this (or maybe not?)..
What do you guys think about this? Are you okay with each command having its own syntax? Personally I think it is a burden unnecessary information.. And in cases of firewall-cmd, it just slows down your workflow with hard to use syntax.
[link] [comments]