Lino
I am back
- Joined
- Jan 26, 2008
- Messages
- 13,785
- Reaction score
- 56
So as a lot of you know I am becoming more and more involved with Linux with each passing day.
I am currently doing my Linux + and have its exams next week.
There are a few things I am unsure of.
1) Lets say I am currently in directory etc.
Right, now lets say I want to backup the file "motd" using tar and I want the file to be backed up onto the desktop.
All I can do so far is
tar -cvf nameofthefile.tar /etc/motd
what do I have to add to that?
2) Lets say I want to automate it by adding it to the "crontab" file located in "etc."
What do I add exactly? I can do basic things in crontab but making an action occur in directory other than /etc is a wonder for me.
I am currently doing my Linux + and have its exams next week.
There are a few things I am unsure of.
1) Lets say I am currently in directory etc.
Right, now lets say I want to backup the file "motd" using tar and I want the file to be backed up onto the desktop.
All I can do so far is
tar -cvf nameofthefile.tar /etc/motd
what do I have to add to that?
2) Lets say I want to automate it by adding it to the "crontab" file located in "etc."
What do I add exactly? I can do basic things in crontab but making an action occur in directory other than /etc is a wonder for me.