How can I set up a regular job on the drive?

Just wondering if it’s possible to set up an internal job to run periodically? e.g. using CRON?

I just want to run two ‘ls’ jobs every day/week to keep an up-to-date file listing of stuff that I don’t have space to back up, but is easy enough to replace if it came to it - as long as I have the list.

crontab -e  works but it does open in the vi editor.

If you’re not familiar with using vi, I’d google to find a primer first but here are my favourite 6 tips:

press escape (no harm in doing it a couple of times) before issuing each command

type  yyp to copy and paste the current line

 type  i (insert) before you start typing

type o to start typing on a new line below the current one

type :wq to write (save) and quit

press :q! to quit without saving. 

1 Like