Category Archives: Linux Commands

Crontab

To edit the crontab type (it normally uses vi as editor) crontab -e To add a scheduled type 0 21 * * 1-7 perl /tmp/test.pl To make sure the crontab is updated correctly restart it /etc/init.d/cron restart Explanation 0 Minutes (0-59) 21 Hour (0-23) * Day (1-31) * Month (1-12) 0-7 Weekday (0-7, Sunday =… Read More »

List only directories

To list only the directories in a directory use the following: ls -v To only list the directories that starts with ESX use the following ls -v |grep “ESX”