All posts in Linux

Linux nén và giải nén file

Compress Issue the Command: # tar cvzf backup.tar.gz /var/www Where: c – create backup v – verbose output z – compress in gzip f – backup file name The backup will be created in your current working directory. Use ls command to list it   Uncompress $ tar xvzf backup.tar.gz . . . Read more

Setup UFW on Centos (Uncomplicated FireWall)

How to setup UFW First, ensure you’ve enabled the EPEL repo. Install the UFW package using yum: [user@server] sudo yum -y install ufw Check it’s installed successfully: [user@server] sudo ufw status Which should show ‘Status: inactive’ In a basic firewall, denying all incoming traffic and allowing outgoing traffic is a good . . . Read more