Linux Interview Questions and Answers
You need to see the last fifteen lines of the
files dog, cat and horse. What command should you use?
Who owns the data dictionary?
You routinely compress old log
files. You now need to examine a log from two months
ago. In order to view its contents without first having
to decompress it, use the _________
You suspect that you have two commands with the same
name as the command is not producing the expected
results. What command can you use to determine the
location of the command being run?
You locate a command in the /bin directory but do not
know what it does. What command can you use to determine
You wish to create a link to the /data directory in
bob's home directory so you issue the command ln /data
/home/bob/datalink but the command fails. What option
should you use in this command line to be successful.
When you issue the command ls -l, the first character of
the resulting display represents the file's ___________.
What utility can you use to show a dynamic listing of
running processes? __________
Where is standard output usually directed?
You wish to restore the file memo.ben which was backed
up in the tarfile MyBackup.tar. What command should you
You need to view the contents of the tarfile called
MyBackup.tar. What command would you use?
You want to create a compressed backup of the users'
home directories. What utility should you use?
What daemon is responsible for tracking events on your
You have a file called phonenos that is almost 4,000
lines long. What text filter can you use to split it
into four pieces each 1,000 lines long?
You would like to temporarily change your command line
editor to be vi. What command should you type to change
What account is created when you install Linux?
What command should you use to check the number of files
and disk space used and each user's defined quotas?