Easy way to Enable/Disable CSF installed on the server via command line

It is a simple topic, but it is a very frequently using command line option for enabling/disabling CSF. We have already discussed almost more than five topics based on the CSF. Here I am writing a quick command-line option to enable/disable CSF from the command-line.

How to enable CSF from command line?
You can use the switch ‘e‘ along with the command CSF to enable it from command line.

Usage:

csf -e

How to disable CSF from command line?
Use the switch ‘x‘ to disable CSF.

Usage:

csf -x

To restart the CSF, you can use the ‘r’ switch.

Usage:

csf -r

That’s it.

 

Related posts:
1, Install and configure csf on CentOS
2, Easy way to uninstall CSF from server
3, CSF commands for Unix/Linux servers
4, How to find whether the IP address is blacklisted or not in CSF
5, How to block countries from server by using csf
6, Process tracking with the help of csf

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

2 Responses

  1. Chelsea B. says:

    Thanks for this post. This saved me a lot of time… I had been trying with “service csf” and it wasn’t working!

Leave a Reply

Your email address will not be published. Required fields are marked *