Linux Contest Results and Winner of the $25 Amazon Gift Card

First let me start off by thanking everyone who participated in the Linux quiz contest.  I had fun coming up with the questions and I like giving things away to people who participate in the website, so it was a perfect marriage.

The winners of week 4 were apokalyptik, Anirudh, and Ben P. You can head over to the week 4 page to view the answers.  Most of you forgot to add an -e flag to your sed statements.

The winner of the free $25 Amazon Gift Card is Ben P. who answered 3 weeks of questions correctly.  He should be receiving an e-mail from me shortly.  Congratulations Ben!

Also a big congratulations to Apokalyptik for answering correctly two weeks in a row!  You almost tied Ben!

Again, thanks to all of you who participated.

Linux Contest with a $25 Amazon Gift Card Giveaway – Week 4

It’s again time for the fourth and final question in the $25 Amazon Gift Card Giveaway. apokalyptik, Ben P., Mahmoud, and Olivers won week 3 by answering our question most accurately.  To recap, every week we are asking a Linux question.  We want readers to post their answer in the comments section at the bottom of the post.  At the end of this week the person who has answered the most questions correctly will win a $25 Amazon Gift card.  If there are four different winners each week, a winner within the winners will be chosen at random.  If there is a tie, the winner will be determined based on who posted their answers the fastest.  Go here for the complete rules.

Question 4 : Week 4

From the command line, how do you remove all the blank lines from example_file1 and output the results into example_file2?  Note, you want to preserve example_file1.

The most complete and straightforward answer will win!

Post your answers at the bottom of this post in the comments!

Remember, subscribe to the RSS feed to get notified of the answer.  To prevent copying of answers, you will not see any comments until the end of the week.

Linux Contest with a $25 Amazon Gift Card Giveaway – Week 3

It’s time for the third question in the $25 Amazon Gift Card Giveaway. Chaoslica won week 2 by answering our question most accurately.  To recap, every week we are asking a Linux question.  We want readers to post their answer in the comments section at the bottom of the post.  At the end of week four the person who answers the most questions correctly will win a $25 Amazon Gift card.  If there are four different winners each week, a winner within the winners will be chosen at random.  If there is a tie, the winner will be determined based on who posted their answers the fastest.  Go here for the complete rules.

Question 3 : Week 3

From the command line, how would you get the size of all files and directories and output them from highest to lowest size?

The most complete and straightforward answer will win!

Post your answers at the bottom of this post in the comments!

Remember, subscribe to the RSS feed to get notified of the answer as well as the next question!  I will update this post every few days with the progress of the contest.  To prevent copying of answers, you will not see any comments until the end of the week.

* Update *

Congratulations to week 3 winners: apokalyptik, Ben P., Mahmoud, and Olivers.  Each answer was a bit different, but all of them are acceptable.  See the comments for the answers. Also, please note, Ben is the only contestant to have won twice thus far, putting him in the lead to win the gift card.

Check the home page soon to see the final week 4 question.

Linux Contest with a $25 Amazon Gift Card Giveaway – Week 2

It’s time for the second question in the $25 Amazon Gift Card Giveaway.  Ben P. and John Stevens won week 1 by answering our question most accurately.  To recap, every week we are asking a Linux question.  We want readers to post their answer in the comments section at the bottom of the post.  At the end of week four the person who answers the most questions correctly will win a $25 Amazon Gift card.  If there are four different winners each week, a winner within the winners will be chosen at random.  If there is a tie, the winner will be determined based on who posted their answers the fastest.  Go here for the complete rules.

Question 2 : Week 2

How would you set up a recurring task of “task.sh” to run every day at 8:00am?

The most complete and straightforward answer will win!

Post your answers at the bottom of this post in the comments!

Remember, subscribe to the RSS feed to get notified of the answer as well as the next question!  I will update this post every few days with the progress of the contest.  To prevent copying of answers, you will not see any comments until the end of the week.

* Friday Update *

We’re still looking for people to submit answers!  You have until Sunday afternoon.

* Sunday Update *

I’ve approved all of the comments so you can see everyones answers.  The best, and most complete answer goes to chaoslica for remembering to make sure the task.sh file was excutable.

Congratulations to chaoslica for winning week 2.

Check back this week, or subscribe to the rss feed to get the week 3 question!

Linux Contest with a $25 Amazon Gift Card Giveaway – Week 1

One of our goals is to provide Linux administrators and users alike a place to quickly learn and develop their Linux skills. In keeping with this goal we are starting a Linux contest. Every week we will ask a Linux question, introduce a problem, or offer a challenge. Readers who want to participate must post their answer in the comments section corresponding with the question. At the end of four weeks the person who answers the most questions correctly will win a $25 Amazon Gift card.

So, in short, here is how the contest will work:

  • One question will be posted every week on the Foogazi homepage (Subscribe to the RSS feed to receive updates whenever we post a new question)
  • It is up to YOU to answer the question by posting a comment
  • Comments will not be approved until two days after the question is posted to ensure everyone has a fair chance and to prevent copying.
  • The best answer submitted to the comments after 2 days will be displayed in the main post and a winner will be declared
  • The person who answers the question correctly and most accurately will win that weeks question challenge
  • At the end of the four week challenge, the person who has the most questions answered correctly will win a $25 Amazon gift card
  • In the event of a tie, the winner will be determined based on the time it took to post their answers, with the fastest person being declared the winner
  • Speed is not as important as the quality of the answer!

The idea is to learn through challenges. So let’s get started!

The questions will start simple and increase in difficulty as the weeks go on.

Question 1 : Week 1

From the command line, how do you disable a user from logging in via FTP?

Post your answers in the comments!

Remember, subscribe to the RSS feed to get notified of the answer as well as the next question!

*Wednesday Update*

There have only been a total of 5 submissions since Monday. I am not approving comments until Friday so you still have a chance to submit an answer and win!

*Thursday Update*

If you think you know the answer to the question above, post it in the comments!  The answers will be revealed sometime this weekend and Monday we will have a new question!

*Sunday Update*

I’ve approved all of the comments so you can see everyones answers.  We didn’t have much of a turn out for week 1, so be sure to pass on the word that we’re running a contest.

The best answer from week 1 was submitted by Ben P and John Stevens.

The answer is: echo username >> /etc/ftpusers or "username"

Congratulations to Ben and John.  Check back this week, or subscribe to the rss feed to get the week 2 question!