Linux
What is the purpose of the echo command?
Displaying the contents of operating system variables and displaying text.
What does the uniq command do?
Displays only one of two or more adjacent duplicate lines in a file.
A complete collection of Linux guides. Howtos, faqs, man pages, and Linux Magazines is available through the
The Linux Documentation Project
The X Window System was developed at:
The MIT
What command displays system load and duration information?
uptime
The whereis command can be used to:
whereis helps you locate executables, source files, and man pages
What command will locate a utility and display the full path name to it?
which
The zcat command is used to:
Display files compressed with the compress or gzip command
What is a link file?
A means to access a file by two or more names.
Linux and Unix systems have always had a privileged user
All of the above
On a Linux system being used as a server, a GUI may not be installed because
All of the above
What does it mean to say that Linux is case sensitive?
All of the above
What is a GUI?
All of the above
Which of the following is a common method for connecting and logging in to a Linux system.
All of the above
What is a multitasking operating system?
Allows each user to run more than one job at a time.
What is a multitasking system?
Allows each user to run more than one job at a time.
After logging in to Linux, if the last login data was not data was not from your previous login session, what is wrong?
An authorized user has logged into your account using your username and password.
Linux was written in
C
The C programming language was developed by
Dennis Ritchie
The acronym CLI means
Command Line Interface
The diff file1 file2 command can be used to:
Compares file1 and file2 line-by-line and displays differences between them as a series of commands that can be used to convert file1 to file2, or vice versa
On the Linux command line, the default line kill key is:
Control-U
The command to suspend the execution of a program is:
Control-Z
File security in Linux is provided by
File Access Permissions
The most essential thing a beginner needs to know before operating in Linux is:
How to log in and log out
Linux was developed by
Linus Torvalds
What command lists on the system?
ListAllCommands | grep searchstr
The Command: copy source destination
None of the above since there is no copy command in Linux or Unix.
What is a portable operating system?
One that runs on many different machines
Telnet is not a secure utility because:
Passwords are sent over the network in clear text.
POSIX stands for
Portable Operating System Interface
The purpose of the my configure configure.bak command is to:
Rename the configure file to configure.bak
The purpose of the mv configure configure.bak command is to:
Rename the configure file to configure.bak.
A user who is not working with root privileges may not list the files in:
The /lost+found directory
In Linux, less is more, because:
The less command is similar to the more command but displays and END message.
BSD and System V are examples of:
Unix
Linux commands can be constructed as a pattern using special characters called:
Wildcards
Ordinarily, if you type xy on the Linux command line, what happens?
You get an error message saying that no such command can be found
A Linux shell prompt is characterized by:
a character which indicates that the shelll is waiting for a command.
A textual interface is also as:
a pseudographical interface
The command: ls -a will display:
all files including hidden files.
An operating system:
all of the above
The Linux kernel
all of the above
What command lists users on the system?
all of the above
What is a command line interface?
all of the above
What is a file?
all of the above
What is command line interface?
all of the above
What utility can be used to compress a tar file?
all of the above
When stopping a program with the kill signal
all of the above
Which of the following is a common Linux shell?
all of the above
su and sudo are utilities which
allow the user to gain root privileges.
A virtual machine
appears to the user, and, to the software running on it, as a complete physical machine.
What command displays the contents of a file on the screen?
cat
The command: gzip myfile produces what outcome?
compresses myfile and produces myfile.gz; myfile is no longer a valid file name.
The command: cp file1 /home/rbass/file2 will do which of the following?
copies file1 to file2 and places it in the /home/rbass directory.
The following command can be used to copy the sample file into the example file.
cp
When examining the output of the command: ls -F entries followed by a "/" are:
directories
The command: grep bb sample displays which of the following
displays all lines in sample with bb embedded in them
What is the purpose of the "is" command?
displays files, directories and other in a directory
What command will assist you in determining the contents of file?
file
When examining the output of the command:
file
The command to compress a file, called mysort, is:
gzip mysort
The command to display the first five lines of the sample file in the current working directory is:
head -5 sample
Which is the following is not another accepted name for named pipes:
links
What is the command to display a list of files in a directory with each file's owner and attributes?
ls -l
Which of the following is an example of a pipe?
ls | wc
The command to deny messages from other users of the system you are logged into is:
mesg -n
You can log out of a UNIX system by
none of the above
Command options are specified with:
one or more letters preceded by a hyphen
A Linux pipleine
passes the output of one program to another as input.
What command allows you to change your password?
passwd
What does the command: delete all do?
rm
What option puts the rm command in interactive mode requiring you to confirm the deletion?
rm -i
Currently, the most challenging issue in operating system design
security
While logged into a Linux system, the write utility
sends a message to another user who is logged into the system.
Linux shell commands can be arranged in a file commonly called a:
shell script
The command to display the last 10 lines of a file is:
tail
What utility packs and unpacks archives?
tar
Device-independent input and output in a Linux system means:
that input and output can be redirected to any appropriate device.
When you enter echo $0 and press return in reponse to a shell prompt, the shell displays:
the name of the shell you are working with
How is the info utility used?
to display more complete and up to date information on GNU utilities than the man command.
The data stored in the /etc/motd file is used:
to display the Message of the Day
The man utility is used:
to display the pages in the system documentation of a command.
How do you use the apropos command?
to search for a keyword in the short description of a command in the man pages.