Here you can face some basic Linux interview questions.You can able to appear for multiple choice questionnaire here.So good luck Start Congratulations - you have completed Basic Linux .
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%% Your answers are highlighted below.
Question 1
There are seven fields in the /etc/passwd file. Which of the following lists all the fields in the correct order?
username, UID, GID, comment, home directory, command
username, UID, group name, GID, home directory, comment
UID, username, GID, home directory, comment, command
username, UID, GID, home directory, command, comment
Question 1 Explanation:The seven fields required for each line in the /etc/passwd file are username, UID, GID, comment, home directory, command. Each of these fields must be separated by a colon even if they are empty.
Question 2
What file would you edit in your home directory to change which window manager you want to use?
xf86init
XF86Setup
Xinit
.xinitrc
xstart
Question 2 Explanation:The ~/.xinitrc file allows you to set which window man-ager you want to use when logging in to X from that account.
Question 3
Which commands can you use to delete directories?
rm -rf
rm
rmdir
rd
rd -rf
Question 3 Explanation:You can use rmdir or rm -rf to delete a directory. Answer a is incorrect, because the rm command without any specific flags will not delete a directory, it will only delete files.
Question 4
What command allows you to set a processor-intensive job to use less CPU time?
chps
more
ps
nice
less
Question 4 Explanation:The nice command is used to change a job's priority level, so that it runs slower or faster. Answers a, d, and e are valid commands but are not used to change process information. Answer c is an invalid command.
Question 5
Which password package should you install to ensure that the central password file couldn't be stolen easily?
shadow
securepass
ssh
PAM
tcp_wrappers
Question 5 Explanation:The shadow password package moves the central password file to a more secure location. Answers a, b, and e all point to valid packages, but none of these places the password file in a more secure location. Answer d points to an invalid package.
Question 6
Which partitioning tool is available in all Linux distributions?
System Commander
fdisk
Partition Magic
FAT32
Disk Druid
Question 6 Explanation:The fdisk partitioning tool is available in all Linux distributions. Answers a, c, and e all handle partitioning, but do not come with all distributions. Disk Druid is made by Red Hat and used in its distribution along with some derivatives. Partition Magic and System Commander are tools made by third-party companies. Answer d is not a tool, but a file system type. Specifically, FAT32 is the file system type used in Windows 98.
Question 7
You have a new application on a CD-ROM that you wish to install. What should your first step be?
Read the installation instructions on the CD-ROM.
Use the mount command to mount your CD-ROM as read-write.
Use the umount command to access your CD-ROM.
Use the mount command to mount your CD-ROM as read-only.
Question 8
Which of the following tasks is not necessary when creating a new user by editing the /etc/passwd file?
Use the passwd command to assign a password to the account.
Add the user to the specified group.
Create a link from the user's home directory to the shell the user will use.
Create the user's home directory
Question 8 Explanation:There is no need to link the user's home directory to the shell command. Rather, the specified shell must be present on your system.
Question 9
You want to enter a series of commands from the command-line. What would be the quickest way to do this?
Put them in a script and execute the script
Separate each command with a / and press enter after the last command
Separate each command with a semi-colon (;) and press enter after the last command
Press enter after entering each command and its arguments
Question 9 Explanation:The semi-colon may be used to tell the shell that you are entering multiple commands that should be executed serially. If these were commands that you would frequently want to run, then a script might be more efficient. However, to run these commands only once, enter the commands directly at the command line.
Question 10
Which of the following commands will show a list of the files in your home directory including hidden files and the contents of all sub directories?
ls -l /home/username
ls -aR /home/username
ls -c home
ls -aF /home/username
Question 10 Explanation:The ls command is used to display a listing of files. The -a option will cause hidden files to be displayed as well. The -R option causes ls to recurse down the directory tree. All of this starts at your home directory.
Once you are finished, click the button below. Any items you have not completed will be marked incorrect. Get Results
There are 10 questions to complete.
List
Return Shaded items are complete.
1
2
3
4
5
6
7
8
9
10
End
Return
You have completed questions question Your score is Correct Wrong Partial-Credit You have not finished your quiz. If you leave this page, your progress will be lost. Correct Answer You Selected Not Attempted Final Score on Quiz Attempted Questions Correct Attempted Questions Wrong Questions Not Attempted Total Questions on Quiz Question Details Results Date Score Time allowedminutessecondsTime usedAnswer Choice(s) SelectedQuestion TextAll doneNeed more practice!Keep trying!Not bad!Good work!Perfect!
Linux Intermediate
Here you will see some intermediate level questions.Just try it Start
Congratulations - you have completed Linux Intermediate.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1
If you type the command cat error.log & > out.txt what would you see on your display?
error messages only
The contents of the file error.log
The contents of the file error.log and any error messages
Nothing as all output is saved to the file out.txt
Question 1 Explanation:When you use & > for redirection, it redirects both the standard output and standard error. The output would be saved to the file out.txt.
Once you are finished, click the button below. Any items you have not completed will be marked incorrect. Get Results
There is 1 question to complete.
List
Return Shaded items are complete.
1
End
Return
You have completed questions question Your score is Correct Wrong Partial-Credit You have not finished your quiz. If you leave this page, your progress will be lost. Correct Answer You Selected Not Attempted Final Score on Quiz Attempted Questions Correct Attempted Questions Wrong Questions Not Attempted Total Questions on Quiz Question Details Results Date Score Time allowedminutessecondsTime usedAnswer Choice(s) SelectedQuestion TextAll doneNeed more practice!Keep trying!Not bad!Good work!Perfect!
Lynuxstuff.com for providing tutorials and system administration tips in Linux and networking.And more technical tips which is related to both windows and Linux are available in http://www.coretimer.com