Saturday, April 26, 2014

crontab



crontab command example

View crontab entry for a specific user 

# crontab -u linuxcare -l

Schedule a cron job every 10 minutes.

*/10 * * * * /home/linuxcare/check-disk-space




Related Posts:

  • mount   mount command examples To mount a file system, you should first create a directory and mount it as shown below. # mkdir /u01 # mount /dev/sdb1 /u01 You can also add this to the fstab for automatic mount… Read More
  • man   man command examples Display the man page of a specific command.    $ man crontab When a man page for a command is located under more than one section, you can view the man page for that command from… Read More
  • mv mv command examples Rename file1 to file2. if file2 exists prompt for confirmation before overwritting it. $ mv -i file1 file2 Note: mv -f is just the opposite, which will overwrite file2 without prompting… Read More
  • mkdir   mkdir command examples Following example creates a directory called temp under your home directory. $ mkdir ~/temp Create nested directories using one mkdir command. If any of these directories exist already… Read More
  • locate   locate command examples Using locate command you can quickly search for the location of a specific file (or group of files). Locate command uses the database created by updatedb. The example below shows all f… Read More

0 comments:

Post a Comment