117-010 - Entry Level Linux Essentials Certificate of Achievement
Go back to
LPI
Example Questions
What is the output of the following command? for token in a b c; do echo -n ${token}; done
abc
Which of the following is a requirement of the GPL license but not the BSD license?
Users who modify and distribute the software under the GPL license, must make the modifications they made, available to the recipients under the same license.
The script, script.sh, consists of the following lines: #!/bin/bash echo $2 $1 Which output will appear if the command, ./script.sh test1 test2, is entered?
test2 test1
Which of the following commands will display a list all files in the current directory including the hidden files?
ls -a
Which of the following commands can be used to extract content from a tar file?
tar -xvf
Which files will affect the domain name resolution system on Linux? (Choose TWO answers)
etc/hosts
etc/resolv.conf
Which command will display running process information in real time?
top
What command would you use to get comprehensive documentation about any command in Linux?
man command
Which of the following commands will set the variable text to olaf is home? (Select TWO answers)
text=olaf\ is\ home
text="olaf is home"
Which statement about users and user groups is correct?
Every user belongs to a least one user group.
Which of the following statements is true for a Linux distribution used in an enterprise environment?
These distributions contain software versions that have proven to be stable even if it is not the recent version in order to minimize problems.
Which of the following applications are popular Open Source relational database systems? (Select TWO correct answers)
PostgreSQL
MySQL
Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file? (Select TWO correct answers)
grep '[Ff]red' data_file
grep -i fred data_file
Which of the following commands increases the number of elements in a directory? (Choose TWO answers)
touch newfile
mkdir newdirectory
What is the output of the following command sequence? for token in a b c; do echo -n "$token "; done
a b c
What does the exit status 0 indicate about a process?
The process ended without any problems.
Which of the following services are used for network file systems? (Select TWO correct choices)
Samba
NFS
In which directory are system log files kept?
var/log/
Which of the following is a valid option for a typical command to get its built-in usage information?
--help
Which of the following filesystems is most commonly used for Linux distributions?
ext4
Given a file called birthdays containing lines like: YYYY-MM-DD Name 1983-06-02 Tim 1995-12-17 Sue Which command would you use to output the lines belonging to all people listed whose birthday is in May or June?
grep '[0-9]*-0[56]-' birthdays
Which of the following properties of a user account determines whether the user is given administrator privileges?
Its user ID is 0 (zero).
In order to rename the directory ~/bilder/letzter-urlaub to ~/bilder/sommer-2011, which command line could be used?
mv ~/bilder/letzter-urlaub ~/bilder/sommer-2011
Given a directory with the following information: drwxrwxrwxt 12 tu tg 36864 2012-03-15 /home/directory/ Which of the following statements are true? (Choose TWO answers)
Everybody can create files in the directory.
Everybody can delete only his own files.
Which of the following programs is used to search for files in a file system?
locate
Which command is used to make a shell variable known to subsequently executed programs?
export
Which of the following programs is not a graphical web browser?
Links
What is the correct command to extract the contents of the archive file download.bz2?
bunzip2 download.bz2
Which command shows, amongst other information, the IP address of the current DNS server for a Linux system?
cat /etc/resolv.conf
Which command lists all files in the current directory that start with a capital letter?
ls [A-Z]*
Which of the following is an example of globbing?
ls /etc/*.txt
You have a program called /usr/bin/foo. You wish to create a symbolic link, /home/user/foo, that points to it. Which command will do this task?
ln -s /usr/bin/foo /home/user/foo
Which of the following commands can be used to change both the owner AND group settings of a file?
chown
What is the command that will show system boot time messages?
dmesg
Which one of the following is true about Open Source software?
Open Source software is available for commercial use.
Which command will delete the directory foo with all its content?
rm -r foo
When a new user is added, where does his user ID gets stored?
etc/passwd
Which of the following will change the group that is associated with a file?
chown
How can the normal output of a command be written to a file while discarding the error output?
command >file 2>/dev/null
Which command displays the list of groups to which a user belongs?
id
Which command line can be used to search help files that mention the word "copy"?
man -k copy
While deleting all files beginning with the letter a there was still the file Access.txt left. Assuming that it had the correct ownership, why was it not deleted?
Linux file names are case sensitive.
When creating a new file, what can be done to make the file hidden from the default output of the ls command?
Hide the file with a name beginning with a period like .foobar.txt.
Where can a boot loader be installed?
The MBR on a hard drive
Which of the following software packages is a mail server?
Postfix
A Linux computer has no access to the internet. Which command displays information about the network gateway for the system?
route
Which command chain will count the number of regular files with the name of foo.txt within /home?
find /home -type f -name foo.txt | wc -l
How can the current directory and its subdirectories be searched for the file named MyFile.xml?
find . -name MyFile.xml
When using a web browser, what should a user do to prevent private data from being stored locally?
Browsers can be configured to use a private mode that does not store any data locally.
Which of the following Ubuntu releases is considered most stable and fit to use for business purposes?
LTS