Linux Baza
Linux Baza
2) What are the three general governance models used in open source projects? Select all answers
that apply.
· Company-led
· Benevolent dictatorship
· Private-collective
· Governing board
3) What are the main types of Open Source Software (OSS) licenses? Select all answers that apply.
· Free of charge
· Permissive
· Proprietary
· Educational use
· Restrictive
4) Linux began:
· Company-Led
· Benevolent Dictatorship
· Governing Board
· Benevolent Dictatorship
· Governing Board
· Company-Led
· Benevolent Dictatorship
· Company-Led
· Governing Board
8) What are some of the advantages of open source software development? Select all answers that
apply.
11) For school systems at any level, use of OSS (Select all answers that apply):
12) School systems can benefit from using OSS because (Select all answers that apply):
· Students may learn how to join projects and contribute from an early age or stage in
their education
· Students can more easily learn about how things really work as compared to using
closed source operating systems and applications
· Applications are flashier and have better integration with social media platforms than do
proprietary ones
· Making things more difficult to learn at first is giving more real world experience
· As the world's IT infrastructure becomes more and more OSS-based, students will be
better prepared to enter the work force especially as developers
· Will have to spend a lot of time undergoing unnecessary critical review of their code even
though they know it is perfect
· Will often find it easier to get good jobs because their work will be more open to
inspection
· Have to spend a lot of useless time cleaning uo their code since more eyeballs will see it
· Will often find it harder to get good jobs because employers will not be sure what parts of the
project were contributed by the developer candidate
14) Which of the following are examples of successful open source projects? Select all answers that
apply.
· OpenStack
· ONAP
· PowerPoint
· Adobe Photoshop
· Hyperledger Fabric
· Kubernetes
15) The git version control system arose from needs of which project:
· GNU
· Apache
· Kubernetes
· Python
· The Linux Kernel
16) Which of the following are OSS projects used to construct a graphical user interface (GUI)?
· Wayland
· GNOME
· Microsoft Word
· KDE
· X Window System
17) Which of the following are projects emanating from the Free Software Foundation?
· glibc
· gcc
· gdb
· Apache
· bash
18) Which of the following are widespread fully OSS projects (Select all that apply):
· Facebook
· Google
· Instagram
· Abode Photoshop
· None of the above
19) Which of the following document preparation systems are OSS projects (Select all that apply):
· Microsoft Word
· TeX,LaTex and related versions
· Notepad
· LibreOffice
· WordStar
20) You can immediately start contributing to an open source project. No prior research, knowledge
or preparation is needed. True or False?
· True
· False
· True
· False
22) Community members with offensive behavior will not be removed from an open source project.
· True
· False
23) When first getting involved in an OSS project, you should (Select all answers that apply):
· Consider what it is you would like to work on, either because it is needed by you, or it just
interests you
· Start by posting messages on the appropriate mailing lists, suggesting thing you would like to
see, pointing out the weak aspects of the project, etc.
· Start contributing code immediately and learn the workflow through doing
· Start by helping test and report results
· Submit changes one at a time in a sequential manner, even if the full change will not
do much until the entire patch series is incorporated
· Save up changes until you can submit multiple changes in one large patch,rather than bother
maintainers often
25) When there is someone in the project community that gets abusive or just difficult to deal with,
you should (Select all answers that apply):
26) You have worked hard on implementing a new feature for and OSS project and submitted your
work. A senior maintainer liked you ideas, but ignored your implementation and substituted their own
new one to the same end. You should:
· Demand your implementation be the one used (after all,it was your idea!), but respectfully
consider any less total changes or suggestions
· If the other implementation is successful at achieving its purpose, you should accept
the result gratefully (after registering you displeasure that rather than reviewing and
modifying you work, it was abandoned), and contribute to improving the new
implementation as needed
· Announce you are leaving the project, it is not worth you time if your work is disrespected,
and post on social media a detailed expsoe of how disputes are badly handled in the project,
and warn people to stay away
27) On a project mailing list, some inserts an irrelevant politica, or philosophical comment into an
otherwise technical discussion and this is at least mildly offensive to you. A good and proper
response could be (Select all that apply):
· Can be costly to set up, as it requires a server and staff and training developers to use
properly
· Minimizes regression bugs, since thorough testing is done at every stage before
release (i.e. continuously)
· Speeds up the development process, as builds and tests are fully automated
· Can put a strain on developers who have to submit changes constantly
· Can speed development, as wrong paths can be discovered before they are pursued
for a long time
30) What is the correct order of the Continuous Integration process stage?
· You do not need Continuous Integration if you use a revision control system such as Git
· You do not need a revision control system such as Git if you use Continuous Integration
methods
· Use of Continuous Integration and revision control methods are independent, but are
usually employed together
32) The Linux Kernel Continuous Integration Project was initiated by:
33) There are many tooling suites used for Continous Integration. The most widely used one is:
· Jenkins
· Bamboo
· Eclipse
· Travis CI
· Emacs
34) You can switch to a different license for your project at any time, without difficulty. True or False?
· True
· False
35) What are some considerations that go into OSS license selection (Select all answers that
apply)?
· How much you want to charge for buying software on the project
· How the code will be used (i.e. good or evil)
· Policy on patents
· Should all modifications be public (restrictive vs permissive)
· BSD
· GPL
· If you includes OSS components in your project, you must release the full source for all
components
· OSS and Closed Source Software can co-exist in a product, but careful analysis
should be done to make sure proper boundaries are respected and enforced
· Use of OSS has no predetermined effect on legal costs. It can lower them, since
proper license enforcement can be built-in early, or it can raise them by having more
people pick at the code if attribution has been sloppy
· Use of OSS increases legal costs as compared to closed source, as allcode must be audited
carefully
40) Why is good leadership important for the success of an open source project? Select all answers
that apply.
· Moderate conflicts
· Have an efficient workflow
· Mentor new contributions
· Encourage contributors to give their best work
41) An open source project cannot function without trust. True or False?
· True
· False
42) A benevolent dictatorship will allow subproject maintainers to make the decisions. True or False?
· True
· False
43) In open source projects, failure is more common than success. True or False?
· True
· False
46) If a project fails in the sense that it stops moving forward, it is likely because (Select all answers
that may apply):
· Leadership is poor
· There are not enough developers contributing
· It is just too hard to start a new project
· There is insufficient interest in the wider community of developers
· A project should have a clear license to begin with. It may possibly make a change
later if it really needs to, but that is often non-trivial if there are quite a few
contributors
· A project can start without a clear idea of what license to follow, and it can adopt it later, as
needed
· Most open source projects fail in the sense that they stagnate and fade away. Is this bad?
· It is not bad. Many seeds are planted and only some bloom, and it is difficult to predict
which ones. It is always good to encourage a lot of new ideas and methods, and let
them compete until the winners emerge.
· It is bad. It is a waste of time and effort that could be better spent.
48) In OSS projects, collaboration is a key element. What are some ways that promote healthy
collaboration among contributors? Select all answers that apply.
50) The majority of OSS projects carry out their discussions in English. Therefore (Select all answers
that apply):
· One should always speak as clearly as possible, and while not being dull, think about
the audience and what they will be familiar with
· Language misunderstandings are unlikely to occur
· Misunderstandings will only occur between native and non-native English speakers
· It is fine to often use unexplained idioms and cultural references
51) With respect to criticism, an OSS contributor and reviewer should (Select all answers that apply):
· Demand someone else review your submission and not answer specifics in any detail
· Not hold back, it is important to have open and forthright discussion
· Answer thoughtfully and point out where one agrees or disagrees, where changes are
accepted or not.
· Be very careful to never say someone is wrong, as some cultures find that offensive
52) Some one on an OSS mailing list introduces a political aside and perhaps a preference during a
technical discussion. Appropriate responses include (Select all correct answers):
· Respond immediately with your own view so the issue is not unchallenged if you disagree, or
to reinforce the stance if you do
· Acknowledge the issue but briefly without putting down anyone with differing
opinions. Avoid amplifying
· Make social media posts outside the community to alert them that someone has ignorant
views
· Ignore the point and just address the technical issues as needed.
53) You propose a new way of doing something, or adding a new feature. Another contributor points
out this idea was reject previously. You should (Select all answers that apply):
· Ask whether the need for this feature has grown; the earlier discussion may have
been premature
· Study the previous discussion and see whether it applies, including whether or not
differences between your ideas and the old ones were not seen
· Ask whether or not technical abilities have evolved to the point where something that
was not feasible can be done today
· Forget about it; no one will pay attention to you if you go forward if the other contributor has
more history and trust than you do
54) Both public and private repositories on GitHub are free of charge. True or False?
· True
· False
55) GitHub and other similar hosting providers do not offer a full GUI interface. True or False?
· True
· False
· Is maintained by the GNU project (its name starts with "g" is the clue)
· Is maintained by The Linux Foundation
· Is a private company acquired by Microsoft in 2018
57) Sites that offer services similar to GitHub include (select all that apply):
· Launchpad
· Google
· GitLab
· The OpenStack Foundation
· GitKraken
· Anyone on the Internet can download the data, but only authorized collaborators can
upload information and modifications
· Anyone on the internet can download the data as well as upload information and make
modifications
60) To use GitHub and the other sites that provide repository hosting:
· C Shell
· Korn Shell
· bash (Bourne Again SHell)
· Thompson Shell
· It started in 2000 as the Open Source Development Lab (OSDL), and later changed its name
to The Linux Foundation
· The Free Standards Group changed its name to The Linux Foundation
· OSDL and the Free Standards Group merged in 2007 to form The Linux Foundation
63) What are some of the most basic Linux components that are completely rooted in UNIX? Select
all answers that apply.
· Inode-based filesystem
· Multi-process scheduling
· Process creation and destruction
· Accessing hardware through device nodes
64) What are the 3 major families of Linux Distributions? Select all answers that apply.
· Red Hat
· Debian
· Ubuntu
· SUSE
· Oracle Linux
66) Which of the following are members of the Debian distribution family (Select all answers that
apply)?
· Linux Mint
· Fedora
· Ubuntu
· Gentoo
67) Which of the following are Enterprise Linux Distributions (Select all answers that apply)?
· BSD
· RHEL
· Solaris
· SUSE
68) Which of the following are important facilities Linux distributions provide?
70) What are the three basic layers on a Linux graphical interface? Select all answers that apply.
· Mutter
· The Window Manager
· GNOME
· The Desktop Manager
· The X Window System
71) All recent GNOME-based Linux distributions look very similar as far as starting up, logging in,
and shutting down. True or False?
· True
· False
· The client is always on the local system, while the server is always on a remote system.
· The server is always on the local system, while the client is always on a remote system.
· The server handles matters such as display and input devices, while the client can be
anywhere and is the running application.
· The client handles matters such as display and input devices, while the server can be
anywhere and is the running application.
74) Which of the following are layers of the graphical system interface?
· Desktop Manager
· Window Manager
· Network Manager
· Display Manager
· Memory Manager
· KDE
· X Window System
· Wayland
· GNOME
· XFCE
77) What are ways you can launch a terminal window on a graphical desktop?
· Hit *Ctrl-Alt-Delete*
· Hit Alt-F2 and then type in the program name (e.g., gnome-termina l, konsole, xterm
etc.)
· Find the "terminal" option in the Application* or *Favorites* menu
· On many but not all desktops, right click anywhere on the background and click on
Open Terminal
78) What are some of the basic command line tools that can be found on Linux that can be used to
get help?
· man pages
· --help and help
· info
79) You can invoke the graphical help system directly from the command by doing:
80) Which chapter in man contains information about standard user commands?
· 1
· 2
· 3
· 7
· 2
81) Which commands get a list of all man pages named "file" (Select all answers that apply)?
· $ man -k file
· $ what is file
· $ whatis file
· $ apropos file
82) Select the true statements about getting documentation on echo (Select all answers that apply).
· man echo gives the information about the system utility at /usr/bin/echo or /bin/echo
· help echo gives the information about the command embedded in the bash shell
· help echo gives the information about the system utility at /usr/bin/echo or /bin/echo
· man echo gives the information about the command embedded in the bash shell
83) Which of the following are command line help utilities?
· info
· help
· man
· linuxdoc
· explain
84) To get a short help message about a command such as ls, listing options and arguments, type
· help is
· ls/?
· ls-help
· ls --help
· ls help
85) What are some of the most common editors that can be found on any Linux distribution? Select
all answers that apply.
· Notes
· vi
· gedit
· emacs
· nano
· kate
86) GNOME offers a graphical interface four the vi editor, called gvim, while KDE does not offer a
graphical interface for the vi editor. True or False?
· False
· True
87) What keys does emacs use for special commands? Select all answers that apply.
· Control (Ctrl)
· Shift
· Meta
· Enter
· Once you have begun a file in emacs, you cannot edit it in vi without running a conversion
program first to strip out embedded information in the file
· Once you have begun a file in vi, you cannot edit it in emacs without running a conversion
program first to strip out embedded information in the file
· You can go back and forth between editors as much as you would like without a
conversion process
89) Which of the following methods can be used to produce a file with 3 lines in it? Select all
answers that apply.
· vi involves switching between command and insert mode by hitting the Escape key
· emacs involves switching between command and insert mode by hitting the Escape key
· edit involves switching between command and insert mode by hitting the Escape key
· nano involves switching between command and insert mode by hitting the Escape key
91) Which pair of editors has partisan advocates who tend to wage war over which is better than the
other?
· vi and emacs
· vi and nano
· pico and nano
· gedit and emacs
92) Which editor can always be found installed by default on virtually any Linux system?
· emacs
· WordStar
· vi
· kwrite
· libreoffice
93) Porting scripts from csh variants is relatively easy and straightforward. True or False?
· True
· False
94) Which of the following commands would add newbin, a directory in your home directory, to the
PATH (Select all answers that apply)?
· PATH=$PATH:$HOME/newbin
· PATH=$HOME/newbin:$PATH
· $PATH=$PATH:$HOME/newbin
· PATH=$HOME/$newbin:$PATH
95) To make an environment variable (VAR) effective for only one command (foobar), you should do:
· VAR=value ; ./foobar
· VAR=value ./foobar
· VAR=value && ./foobar
· export VAR=value ./foobar
96) Which of the following expressions will give the correct mathematical result (7) for x = 10 (Select
all answers that apply)?
· $ echo $x - 3
· $ echo $(expr $x-3)
· $ echo $(expr $x - 3)
· $ echo $(($x - 3 ))
97) Which commands will get both the normal and error outputs of prog into afile?
98) Which of the following commands has the correct syntax for specifying an alias?
99) The Filesystem Hierarchy Standard (FHS) has always been administered by The Linux
Foundation. True or False?
· True
· False
· True
· False
101) For the most basic commonly used partitioning scheme, you would have:
· 8 partitions
· 1 partition
· 3 partitions
· 6 parititions
102) Which of the following pseudo-directories are empty when the system is not running (Select all
answers that apply)?
· /dev
· /sys
· /proc
· /boot
· /etc
104) If file does not exist, which command will produce an error?
· ln -s file file2
· ln file file2
105) Which command will list the partition information on the first hard disk and then exit?
· fdisk -l /dev/sda
· fdisk -l hd1
· fdisk /dev/sda
106) Which directory trees usually have frequently changing data, and would not be desirable on a
partition that is more static? Select all answers that apply.
· /var
· /usr
· /home
· /tmp
· /bin
109) What is the proper order of system initialization stages on most x86-based systems?
110) Which files need to be in the /boot directory for the system to boot up (select all that apply)?
· vmlinuz
· initramfs
· config
· System.map
112) Select the order in which the following system initialization methods were introduced:
· 1
· 3
· 5
114) You can use the sudo swapoff -a command to turn off all swap memory. True or False?
· True
· False
115) Threads in a process do not share any information with each other. True or False?
· True
· False
116) A rather complete picture of memory usage can be gotten by viewing the following pseudofile:
· /proc/memory
· /proc/meminfo
· /sys/meminfo
· /proc/cpuinfo
120) Which of the following are utilities used to work with swap space?
· swapchk
· mkswap
· swapon
· swap
· swapoff
121) It is not easy to turn off the new naming scheme and go back to using the old classic names.
True or False?
· True
· False
122) Which networking configuration interface is newer and has extended capabilities?
· ip
· ifconfig
123) Using Predictable Network Interface Device Names (PNIDN) has come into use because:
· Many computers are no longer in one location; for example, laptops are on the move,
and available interfaces are subject to change
· It makes it harder for bad actors to guess interface names
· Hardware such as USB devices can be added and removed at runtime
· On modern systems, the order in which network hardware is found is less predictable
124) Which command(s) will bring the network interface eth0 up and assign an address to it?
125) You can see statistics for the eth0 interface by (select all answers that apply):
· True
· False
128) What are some of the file transfer tools available to use on Linux systems? Select all answers
that apply.
· Your browser
· FTP
· rsync
· curl
· wget
129) gnome-system-monitor is a graphical monitoring tool installed on any Linux distribution that
provides the GNOME desktop. It generates statistics in real time, but you don't have the ability to
save the data. True or False?
· True
· False
130) ksysguard is another graphical monitoring tool, which has far more extensive capabilities than
gnome-system-monitor. True or False?
· True
· False
· Command line monitoring tools such as top and vmstat are quite similar on all Linux
distributions, but graphical tools vary quite a bit
· Graphical monitoring tools are quite similar on all Linux distributions, but command line tools
such as top and vmstat vary quite a bit
132) Which of the following utilities can be used to monitor I/O activity? (We encourage you to try all
of them, as this is the best way to learn)
· sar
· iostat
· vmstat
· iotop
133) Which of the following utilities can be used to monitor process and system load activity? (We
encourage you to try all of them as this is the best way to learn)
· free
· top
· ps
· uptime
· df
134) Your system seems memory-starved and is slowing down. Which utilities would give you
information about your memory usage?
· vmstat
· netstat
· free
· pmap
· pstree
137) The command that gives you information about currently loaded modules is:
· modinfo
· lsmod
138) Which are the 3 main types of devices connected to your system?
· Network devices
· Block devices
· Character devices
· Transfer devices
139) Devices are easily registered using only their names. True or False?
· True
· False
140) udev makes sure the system recognizes any new devices which are plugged in, and also when
devices are removed. True or False?
· True
· False
143) The lsmod utility shows for each loaded module (select all correct answers):
· Which user loaded the module
· What other modules are using it
· When the module was loaded
· Its size in bytes
· How many processes depend on it
145) Which command will ensure the httpd service (Apache) starts at system boot?
· sudo systemctl start httpd.service
· sudo systemctl status httpd.service
· sudo systemctl enable httpd.service
· sudo systemctl init httpd.service
146) How could you ensure the httpd service (Apache) is restarted if it is already running, say to
absorb a revised configuration file (select all correct answers)?
· sudo killall httpd && sudo startall httpd
· sudo systemctl restart httpd
· sudo systemctl stop httpd && sudo systemctl start httpd
· sudo restart httpd
147) What are some installation methods you can use for Linux? Select all that apply.
· Install Linux directly on your machine from the network, CD, DVD, USB, etc
· Use live media (CD, DVD, USB stick, etc)
· Network-based installation
148) You cannot test what a distribution looks like using live media. You must always have Linux
installed on your hardware. True or False?
· True
· False
149) Most Linux distributions have only one graphical interface. True or False?
· True
· False
150) On SUSE systems, YAST is your basic interface for all system administration. True or False?
· True
· False
152) Which command lists the files in the package named "foobar"?
· dpkg --list foobar
· dpkg --listfiles foobar
· dpkg --showfiles foobar
153) Linux distributions do not include graphical interfaces for package management. True or False?
· True
· False
155) Depending on Linux distribution, which commands can install the libaio package and any
packages it needs to function that are not already installed (Select all answers that apply)?
· sudo dpkg -i libaio
· sudo zypper install libaio
· sudo dnf install libaio
· sudo apt-get install libaio
· sudo yum install libaio
· sudo rpm -Uvh libaio
156) Which command(s) can upgrade an entire system (Select all answers that apply)?
· sudo yum update
· zypper update
· sudo apt-get dist-upgrade
· dnf update
· sudo apt-get update
160) The first non-root user ID when the system is installed will be:
· 0
· 1000
· 1001
· 500
161) When creating a new account with useradd, all distributions will create a home directory by
default. True or False?
· True
· False
162) Basic information about the characteristics of a user's account can be found in:
· /etc/users
· /var/users/params
· /etc/passwd
· /etc/permissions
164) Which provides stronger security and auditing for system activity:
· su
· sudo
165) Differences between su and su - include (Select all answers that apply):
· su starts a new login shell, while su - just continues the current shell but gives it super
privileges
· su preserves more information, such as current directory, path and environment
variables
· su - preserves more information, such as current directory, path and environment variables
· su - starts a new login shell, while su just continues the current shell, but gives it
super privileges
166) Which is the proper way to use sudo with echo?
· sudo -c bash "echo 3 > /proc/sys/vm/drop_caches"
· sudo bash -c "echo 3 > /proc/sys/vm/drop_caches"
· sudo echo 3 > /proc/sys/vm/drop_caches
· sudo echo 3 | cat - > /proc/sys/vm/drop_caches
167) Which command will list all files under the current directory with a .cfg extension, and then
delete them?
· find . -name "*.cfg" -exec rm {} ';'
· find -name "*.cfg" . -exec rm {} ';'
· find . -exec rm {} ';' -name "*.cfg"
· find -exec rm {} ';' -name "*.cfg" .
168) Which command will list all files and directories on the system with cfg in their name?
· find cfg
· locate cfg -exec ls -l {} ';'
· ls -l $(locate cfg)
· locate
169) Which command will find all files and directories in the system whose name ends with cfg?
· locate -r "^cfg"
· locate -r "cfg$"
· locate cfg$
· locate cfg
170) Which commands can change all occurrences within a file of the string boris to natasha (Select
all answers that apply)?
171) Which command will print out all lines beginning with "X" in all files in the current directory?
· grep $X *
· grep "^X" *
· grep "X$" *
173) To combine the files test1 and test2 into the file newtest, type:
· test1 test2 > newtest
· cat test1 test2 > newtest
· test1 test2 > cat
· cat test1 test2 < newtest
174) By default, man pages are sent through the more command. True or False?
· True
· False
176) Which of the following commands will create a new file test1 from the command prompt?
· test1 > cat
· cat > test1
· cat >> test1
· cat < test1
177) Which of the following file manipulation utilities removes duplicate lines from a text file and
replaces them with single lines?
· sort
· paste
· split
· uniq
179) Which command is used to combine three files into a fourth file?
· cat file1 > file2 > file3 | file4
· cat file1 file2 file3 > file4
· cp file1 file2 file3 > file4
· cat file1 > file2 > file3 > file4
180) Which of the following commands can be used to view the last 15 lines of a file (Select all
answers that apply)?
· tail -15 some_file
· tail=15 some_file
· tail +15 some_file
· tail -n15 some_file
181) Which of the following commands will replace all instances of the word "dog" with "pig" in the
file named some_file and send the output to stdout (Select all answers that apply)?
· sed -e s:dog:pig:g some_file
· sed -e s/dog/pig/g some_file
· cat some_file | sed -e s/dog/pig/g
· sed -e s/dog/pig/ some_file
182) Which commands can be used to print the lines that contain the numbers 0–5 in a file (Select
all answers that apply)?
· grep [0-5] filename
· grep {0-5} filename
· grep [0,1,2,3,4,5] filename
· grep [-e0 -e1 -e2 -e3 -e4 -e5] filename
183) Which command is used to extract columns from a file to work on them later?
· cut
· tee
· tr
· wc
184) Which of the following special environment variables is the command name?
· $#
· $1 $2, etc.
· $0
· $@
185) Functions must always be defined before they are used. True or False?
· True
· False
186) Which of the following commands are equivalent (Select all answers that apply)?
· [[ -f file.c ]] && cat file.c
· if [[ -f file.c ]] ; then cat file.c ; fi
· if [ -f file.c ] ; then cat file.c ; fi
· if test -f file.c ; then cat file.c ; fi
187) Which commands will list all files under the current directory ending in "~" (Select all answers
that apply)? Note: Output lists may differ in format.
188) Functions (subprograms) are useful in bash scripts because (Select all answers that apply):
· They make things easier to read and comprehend
· They eliminate the need to retype the same set of commands more than once
· It is better not to have to call another script to get things done
189) How would you get the value of a variable named VAR into a script?
· ask VAR
· accept VAR
· input VAR
· read VAR
191) The type of file is determined by examining its extension rather than content. True or False?
· True
· False
192) How many characters do you get at the beginning in the description of a file?
· 3
· 9
· 10
· 12
195) If the first character in the long file listing is a "-", the listed object is a:
196) If the first character in the long file listing is an "s", the listed object is a:
· Block Device Node
· Character Device Node
· setuid file
· Named Pipe (FIFO)
· Unix Domain Socket
· Symbolic (Soft) Link
197)Which of the following commands are equivalent (Select all answers that apply):
· chown 664 file
· chown donald.ducks file
· chown donald file ; chgrp ducks file
· chown donald:ducks file
198) Which command will give all users the right to look at a file, but give only the owner the right to
change it or execute it:
· chmod 644 some_file
· chmod 764 some_file
· chmod 744 some_file
· chmod 467 some_file
200) Which of the following commands can be used to see what filesystems your system currently
understands?
· cat /proc/filesystems
· cat /filesystems
· /proc/filesystems
· cat /sys/filesystems
201) Which of the following statements are true for Logical Volume Management (Select all answers
that apply):
· LVM makes it easy to change the size of the logical partitions and filesystems
· There can be some changes in performance with LVM
· LVM supports various graphical interfaces
· Using LVM breaks up one virtual partition into multiple chunks
202) What command would create a new logical volume named mylv of size 256 GB in volume
group VG ?
· lvextend -L+16G /dev/VG/myv
· lvcreate -L 256 mylv VG
· lvcreate -L 256G -n mylv VG
203) Which of the following are journaling filesystems (Select all answers that apply):
· ext4
· squashfs
· XFS
· btrfs
· vfat
· VFS
208) Which of the following statements are correct about gcc (Select all answers that apply):
· It compiles programs written in a number of languages
· Its name stands for GNU Compiler Collection
· There are only some operating systems that offer versions of gcc.
211) A good choice of compiler options for day-to-day use would be:
· gcc -M -H -O3 -E program.c
· gcc -O2 -Wall -pedantic program.c
· gcc -Wall -I /tmp/include -L /tmp/lib program.c
· gcc -O0 -Wall -ansi program.c
212) Why might you choose to link your program statically, rather than use a shared library version?
· The static program will not use new versions of shared libraries as they become
available, and thus may avoid breakage and bugs
· The static program will load and execute more quickly
· The static program need not have an open source license, while the shared library version
cannot be closed source
· The static program will use less memory
213) To find the shared libraries used by /usr/bin/cp you can do (Select all answers that apply):
· ldd /usr/bin/cp
· find -libso /usr/bin/cp
· gcc -ldd /usr/bin/cp
· ldd $(which cp)
214) Which statements are true (Select all answers that apply):
· Use of shared libraries can cause bugs because the application may conflict with the
new library version
· Use of shared libraries enables applications to stay up to date with new library
features without being recompiled
· Use of shared libraries saves memory
· Applications can load faster when using shared libraries
215) The concept of Write Once, Run Anywhere works better on the client side than on the server
side. True or False?
· True
· False
217) Which of the following statements are true (Select all answers that apply)?
· Porting Java programs to Linux requires specialized expert input
· Java programs developed on other systems can be expected to run without
modification on Linux
· The biggest problem in porting Java code to Linux is often fear
· There are a number of choices which can be used for the Java implementation on
Linux machines, and one can switch between them
· Java programs need to have some changes to the source before they can run reliably on
Linux systems
218) Which utility can be used to select the default Java Implementation on a Linux system?
· setpref
· which
· choose
· alternatives
219) Which commands will show you information about which version of Java you are running
(Select all answers that apply):
· java -version
· select --show java
· version --full java
· $ readlink -f $(which java)
220) Which of the following are Integrated Development Environments that can be used for Java on
Linux (Select all answers that apply)?
· Eclipse
· emacs
· DDD
· gdb
· NetBeans
221) If you are experienced in using Eclipse on another operating system, when moving to Linux:
· The interface and functioning should be almost the same and have little or no learning
curve required
· You will have to start over, as the interface and functioning are rather different
222) Which of the following are packaging system benefits for developers (Select all answers that
apply)?
· Integrity of the installation can be verified in a uniform and rapid fashion
· Repeatable builds
· Generation of dependency data, such as what other packages are needed by a given
package, and/or what other packages may need a given package
· Simple installation and removal methods
223) You have to be a superuser to build a binary RPM package on CentOS and openSUSE. True or
False?
· True
· False
225) Which of the following distributions use the RPM package management system (Select all
answers that apply)?
· Ubuntu
· SUSE
· Red Hat
· Fedora
· CentOS
· Gentoo
· Debian
226) Which of the following distributions use the APT (dpkg) package management system (Select
all answers that apply)?
· Debian
· Ubuntu
· Linux Mint
· CentOS
· Gentoo
· Red Hat
· SUSE
227) With RPM, all information to configure, compile and install is contained in:
· The build file
· The rpm manifest
· The spec file
· The yum file
228) Which of the following statements are true (Select all answers that apply)?
· The source package contains one file in Debian-based systems
· The source package contains one file in RPM-based systems
· The source package contains multiple files in RPM-based systems
· The source package contains multiple files in -based systems