Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm pretty new to ubuntu and cron, and I was wondering how to search for something in the crontab file. Basiclly, the ubuntu equivilent of ctrl+f on windows.

thanks

share|improve this question

3 Answers 3

Try from command line. Open terminal Ctrl+Alt+T and run following command :

cat /etc/crontab | grep yoursearchkeyword
share|improve this answer

You can just open the crontab file in gedit and use Ctrl-F.

gedit /etc/crontab

For your user specific crontab file, do

crontab -e

Depending on your $EDITOR environmental variable, you will open it in your favorite editor. If the EDITOR=gedit, then you will be able to do Ctrl-F. If the editor is nano, you need to do Ctrl-W. With EDITOR=vi, you type /.

share|improve this answer

just found it. If I run crontab -e, I can search with ctrl+w.

thanks for the help

share|improve this answer
    
Ah, you did not mean the crontab file (/etc/crontab), but the user specific crontab entries. If you set your EDITOR to gedit, you will have nicer output and be able to use Ctrl-F. –  January Sep 27 '12 at 10:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.