Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
OK!!.I'm a true newbie when it comes to Linux, but I really want to learn as much as I can. I switch from Red Hat to Ubuntu and I was using the crontab command and something strange happen. Keep in mind I'm totally playing around with these commands and I dont fully understand what they are able to do. Any good website will help tpp. But can someone PLEASE TELL WHAT JUST HAPPENED BELOW?
then I tried
/home/newbie crontab -l
#DO NOT EDIT THIS FILE - edit the master and reinstall.
#(-installed on Sat Jun 18 11:58:19 2011)
#(Cron version - $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
look , you can get most important information of each tools by using a 'man crontab' or man [some-thing] .
remember each program get it's argument after it's name not before it.
you can redirect the standard output of your program to specific file by '>' command as you did with 'ps' command output.
OK. I understand that part, but what does this part mean.
/home/newbie crontab -l
#DO NOT EDIT THIS FILE - edit the master and reinstall.
#(-installed on Sat Jun 18 11:58:19 2011)
#(Cron version - $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
1.you should know what crontab really do !
2.which file you had tried to change ?
3.what is your directory content ?!
ans:
1. $man crontab
2. $crontab [option] file // what was that file ?
3. $ls -l // see if there is related file to crontab
You showed what is in your crontab, then you deleted your crontab, then you showed it again. The lines beginning with '#' are comments at the top of your crontab telling you not to change the file because you might prevent something from running properly.
As stated before more information can be displayed by "man crontab" in a console.
You can take look at /var/spool/cron/crontab directory. Here is your cron locates.
Do not modify the file on /var/spool/cron/crontab. Use crontab -e to make change.
Even if you've used 'crontab -e' to modify your crontab, you may still see those "Do not edit this file" lines. As long as you're cron jobs are working and you are using 'crontab -e' to modify your crontab, you are probably fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.