Delete all directories more than a week or X days old
If you are taking the backup via script, you may need to delete your old backups on regular basis to avoid disk space issue. The following command will remove directories…
If you are taking the backup via script, you may need to delete your old backups on regular basis to avoid disk space issue. The following command will remove directories…
ls command is used to lists all files/folders in Linux. The default output does not sort the files by size. To sort the files by size, you need to pass…
You may need to find all processes accessing particular directories i.e. /home/user. You can use fuser command to list all processes as follow: fuser -va /home/user Replace /home/user with actual…
By default rsync uses SSH port 22 while transferring the files/folders between two servers. If you are using custom SSH port instead of default port 22, you will need to…
You may receive the following error while executing man command on newly installed CentOS 6: [root@server ~]# man bash: man: command not found Generally CentOS comes with man but it…
You can use the following commands to start/restart/stop iptables on your Linux server: To start iptables: service iptables start To stop iptables: service iptables stop To restart iptables: service iptables…
Sometime, you may need to move some large folder from one server to another or you may require to take backup of user's home directory. On Linux platform, you can…