Remove /tmp/ cronjob
5 0 * * * /bin/find /tmp/ -type f -print0 | xargs -0 rm
How to automatically clean up /tmp directory contents in Linux? Every Linux system has a directory called /tmp which has mounted with separate file system. It has special filesystem called tmpfs. It’s a virtual filesystem and operating system will automatically mount /tmp mount point while system booting. If you want to mount /tmp directory separately as…
Setup Virtual Hosts with Apache on Node.js CentOS Server Do you want to host multiple Node.js Websites on the same Server with different location stored? No Problem, we have a solution for you. We will use apache to turn our server into a web server. There are small requirements for this process. Requirements CentOS Machine…
Question How to configure the passive ports range for ProFTPd on a server behind a firewall? Answer Note: When configuring the passive port range, a selected port range must be in the non-privileged range (e.g., greater than or equal to 1024). It is strongly recommended that the chosen range should be large enough to handle…
We recently redesigned a WordPress site for a client who was migrating away from WP Engine. When we migrated the client to the new host, they still had a “WP Engine” section in their WordPress dashboard main menu. Since this feature set would no longer be utilized, it was best to get the plugins removed…
This guide will show you how to extend or resize an ext2/3/4 and XFS File System without LVM at runtime. This could be a root partition configured with ext2/3/4 or XFS filesystem but without any LVM configured. Step 1: Check your current root disk capacity For this demonstration, I have a CentOS 7 VM with…
The way to reset the root password on centos7 is totally different to Centos 6. Let me show you how to reset root password in CentOS 7. 1 – In the boot grub menu select option to edit. 2 – Select Option to edit (e). 3 – Go to the line of Linux 16 and…