Skip to content

System D commands

August 20, 2018

Linux is changing to system D. The commands previously done are being replaced. Here are some of the old and new ways of doing things.

Firewall

Old way: 

iptables -I INPUT -p tcp --dport 5201 -j ALLOW
save:
service iptables save

New way:
firewall-cmd --add-port 5201/tcp
save:
firewall-cmd --permanent --add-port 5201/tcp
Also there is --add-service servicename

Services

Old way:

service httpd stop

New way:

systemctl stop httpd

Old:

chkconfig httpd on

New:

systemctl enable httpd

Log files

Old:

less secure

New:

journalctl -u sshd

packages for Centos / Fedora

Old: yum

 

New: dnf

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: