Saw this article:
http://www.linuxforum.com/content.ph...-Administrator
Essentially, the idea here is that if you know nothing about linux, here is a test you can give to prospective applicants to test their ability to do the job. Notice that no answers are given, so I suppose you could type just about anything and pass.
Now I think that a person's adaptability to a new environment, and willingness and ability to learn are far better indicators of job performance, than having memorized a list of commands. But some suit right out of mba school, who knows as much about computers as there is to know about business ethics, will look at this and think it's a great idea. So, in the interest of promoting the future employability of our readers here, and of undermining what is a fundamentally stupid idea, as well as perhaps testing and increasing our own knowledge, here is a list of the test questions. I have already provided possible answers to the first ten (well, nine of the first ten questions that make sense). Maybe others would like to take on some of these.
This is intended for fun, so answers need not be totally serious. Remeber, this test is intended to be given by those who know nothing about what they are testing for.
Have at it.
http://www.linuxforum.com/content.ph...-Administrator
Essentially, the idea here is that if you know nothing about linux, here is a test you can give to prospective applicants to test their ability to do the job. Notice that no answers are given, so I suppose you could type just about anything and pass.
Now I think that a person's adaptability to a new environment, and willingness and ability to learn are far better indicators of job performance, than having memorized a list of commands. But some suit right out of mba school, who knows as much about computers as there is to know about business ethics, will look at this and think it's a great idea. So, in the interest of promoting the future employability of our readers here, and of undermining what is a fundamentally stupid idea, as well as perhaps testing and increasing our own knowledge, here is a list of the test questions. I have already provided possible answers to the first ten (well, nine of the first ten questions that make sense). Maybe others would like to take on some of these.
This is intended for fun, so answers need not be totally serious. Remeber, this test is intended to be given by those who know nothing about what they are testing for.
1) What is the 1st line of a perl script?
#!/usr/bin/perl
2) What is the 1st line of a bash script?
#!/bin/sh
3) What is the command that finds the location of an executable within your path on a server (ie. perl or grep)
which command-name
4) How do you enable php4 for a directory within a site that requires php5 for all other directories - on a cPanel server?
rtfm
5) How do you determine the hardware of a running system?
lshw
6) Update the locate database
sudo updatedb
7) Exclude /home/sites from the locate database
sudo updatedb --prunepaths /home/sites
8) Find all of the processes started by “httpd” particular user and kill them in a one liner.
sudo kill 'ps -U httpd -u httpd -o pid --no-headers'
9) List all of the open files in use by root
lsof -u root
10) Display a list of files that are in a particular directory which are owned by USER and have the permissions of “–rw --- ---“
ls -l | grep username | grep "-rw------"
11) Where does cPanel log httpd errors?
12) Setup a key from from Server A to Server B.
13) Use chkconfig to stop a service from starting
14) On the test server, (as a bash one liner)
a) Schedule the following task to run hourly
b) List all users IP’s that experienced a fav icon not found error,
c) Sort the data by IP Address,
d) Count the number of time each IP was affected,
e) Put that report into a file
f) & email the report to hosting@LinuxForum.com.
15) rsync the following directory _____ to the following directory______. (excluding all .tar files)
16) using netstat, report back how many tcp connections are in `LISTEN` state
17) dig the mx records of LinuxForum.com
18) List the iptables rules w/ line numbers
19) Drop line 10 of an iptables rule
20) Blacklist an IP
21) Change DNS locally on the server to use Google's 8.8.8.8 server
22) Schedule the server to restart at 2am by command line
23) Determine if a service is running
24) Stop a service
25) Add a database for a new website
26) Create a one-liner that does the following task.
A) Generate a report of all IP addresses that appear in access log file from today.
B) Count the number of times an IP appears in the report.
C) Determine what is the 5th most active IP address,
D) Return the second set of 3 digits. ie. ***.168.***.***
#!/usr/bin/perl
2) What is the 1st line of a bash script?
#!/bin/sh
3) What is the command that finds the location of an executable within your path on a server (ie. perl or grep)
which command-name
4) How do you enable php4 for a directory within a site that requires php5 for all other directories - on a cPanel server?
rtfm
5) How do you determine the hardware of a running system?
lshw
6) Update the locate database
sudo updatedb
7) Exclude /home/sites from the locate database
sudo updatedb --prunepaths /home/sites
8) Find all of the processes started by “httpd” particular user and kill them in a one liner.
sudo kill 'ps -U httpd -u httpd -o pid --no-headers'
9) List all of the open files in use by root
lsof -u root
10) Display a list of files that are in a particular directory which are owned by USER and have the permissions of “–rw --- ---“
ls -l | grep username | grep "-rw------"
11) Where does cPanel log httpd errors?
12) Setup a key from from Server A to Server B.
13) Use chkconfig to stop a service from starting
14) On the test server, (as a bash one liner)
a) Schedule the following task to run hourly
b) List all users IP’s that experienced a fav icon not found error,
c) Sort the data by IP Address,
d) Count the number of time each IP was affected,
e) Put that report into a file
f) & email the report to hosting@LinuxForum.com.
15) rsync the following directory _____ to the following directory______. (excluding all .tar files)
16) using netstat, report back how many tcp connections are in `LISTEN` state
17) dig the mx records of LinuxForum.com
18) List the iptables rules w/ line numbers
19) Drop line 10 of an iptables rule
20) Blacklist an IP
21) Change DNS locally on the server to use Google's 8.8.8.8 server
22) Schedule the server to restart at 2am by command line
23) Determine if a service is running
24) Stop a service
25) Add a database for a new website
26) Create a one-liner that does the following task.
A) Generate a report of all IP addresses that appear in access log file from today.
B) Count the number of times an IP appears in the report.
C) Determine what is the 5th most active IP address,
D) Return the second set of 3 digits. ie. ***.168.***.***
Comment