Examen final Linux Essentials

Description

Linux Sistemas Operativos Quiz on Examen final Linux Essentials, created by Yeredaia Miranda on 26/04/2016.
Yeredaia Miranda
Quiz by Yeredaia Miranda, updated more than 1 year ago
Yeredaia Miranda
Created by Yeredaia Miranda almost 8 years ago
738
10

Resource summary

Question 1

Question
One of the jobs of the kernel is to:
Answer
  • Manage the system's resources
  • Turn source code into machine code
  • Load the operating system after the computer is turned on
  • Transfer mail from one machine to another

Question 2

Question
Unix is: (choose two)
Answer
  • An operating system
  • A type of hardware
  • A trademark
  • A distribution of Linux
  • A text editor

Question 3

Question
Linux is written in:
Answer
  • C
  • .NET
  • C++
  • Java
  • Perl

Question 4

Question
Source code refers to:
Answer
  • The version of a program that the computer runs on the CPU
  • The license that dictates how you may use and share the software
  • The interface that software uses to talk to the kernel
  • A human readable version of computer software

Question 5

Question
Whats is the standard option to provide a command line program to view its documentation?
Answer
  • -- info
  • -- doc
  • -- help
  • - h

Question 6

Question
The command man -k is the same as the command apropos
Answer
  • True
  • False

Question 7

Question
The whatis command is the same as man -w
Answer
  • True
  • False

Question 8

Question
The directory where additional documentation for software packages most likely can be found is:
Answer
  • /var/lib/doc
  • /usr/software/doc
  • /usr/share/doc
  • /var/share/doc

Question 9

Question
Hidden files are files that begin with what character?
Answer
  • A plus (+)
  • A dash (-)
  • A period (.)
  • An asterisk (*)

Question 10

Question
What option for the ls command will display all files, including hidden files?
Answer
  • -w
  • -H
  • -L
  • -a

Question 11

Question
The top-level directory on a Linux system is represented as:
Answer
  • /
  • /root
  • /home
  • C:

Question 12

Question
Is the following path absolute or relative? /etc/ppp
Answer
  • Relative
  • Absolute

Question 13

Question
Is the following path absolute or relative? sysadmin/Documents
Answer
  • Relative
  • Absolute

Question 14

Question
Compression on a file works by:
Answer
  • Removing the high order bit from each byte
  • Consolidating multiple files into one
  • Removing redundant information
  • Storing most of the data on removable media and just leaving a pointer
  • Eliminating gaps within the file

Question 15

Question
In general, for which of the following would you want to use lossless compression?
Answer
  • An mp3 audio file
  • A movie
  • A log file
  • A JPEG image
  • An encrypted email

Question 16

Question
Lossy compression: (choose three)
Answer
  • Is often used with documents
  • Decompresses to an identical version as the original
  • Sacrifices some quality
  • Usually results better compression than lossless
  • Is often used with images

Question 17

Question
You type gzip myfile.tar. Whats happens? (choose two)
Answer
  • myfile.tar.gz holds a compressed version of myfile.tar
  • An error; you forgot to pass the name of the output file
  • An error; you forgot to specify the file with -f
  • myfile.tar is unarchived into the current directory
  • myfile.tar is removed

Question 18

Question
Error messages generated by commands are sent where by default?
Answer
  • STDIN
  • Log files
  • STDERR
  • STDOUT

Question 19

Question
A successful command will print output to STDOUT
Answer
  • True
  • False

Question 20

Question
Which of the following commands will direct error messages to the file, error.log?
Answer
  • ls /root > error.log
  • ls /root >> error.log
  • ls /root 2> error.log
  • ls /root $> error.log

Question 21

Question
A pipe allows you to...
Answer
  • ...send the same input to multiple commands
  • ...send the output of one command to another
  • ...send the output of a command to a file
  • ...type multiple commands at one prompt

Question 22

Question
Channel 2 is:
Answer
  • STDERR
  • STDIN
  • STDALL
  • STDOUT

Question 23

Question
The echo command:
Answer
  • Tests a variable for duplication
  • Duplicates the input stream to the output stream
  • Is used for variable assignment
  • Is used to output text to the console
  • Copies variables from one the another

Question 24

Question
A file begins with #!/bin/csh. This means:
Answer
  • C Shell compatibility mode is enabled
  • Running the script will invoke /bin/csh to interpret the rest of the file
  • The operator should not be using /bin/csh
  • This is a Perl script
  • Nothing, this is a comment

Question 25

Question
Which are appropriate editors for writing shell scripts? (choose two)
Answer
  • nano
  • LibreOffice Writer
  • /bin/bash
  • vi
  • Firefox

Question 26

Question
Most of nano's commands take the form of:
Answer
  • Escape followed by another character
  • Mouse clicks
  • The F1 through F12 function keys
  • Alt and another character
  • Control and another character

Question 27

Question
What does this shell script do? FOO=/tmp/foo if [! -d $FOO]; then mkdir $FOO fi
Answer
  • Nothing, since there is a problem with the conditions in the if statement
  • Makes the /tmp/foo directory if a file by that name exists
  • Creates /tmp/foo if it does not exist
  • Creates /tmp/foo and raises and error if there is a problem
  • Outputs a message to the screen

Question 28

Question
Which of the following are valid CPU types for Intel-based platforms? (choose two)
Answer
  • 48 bit
  • 24 bit
  • 64 bit
  • 32 bit

Question 29

Question
64 bit platforms can access more memory than 32 bit platforms
Answer
  • True
  • False

Question 30

Question
What does the acronym RPM mean?
Answer
  • Relocate Package Manager
  • Return Package Management
  • RPM Package Management
  • Recursive Package Manager

Question 31

Question
One way to install new software on a Linux system is to use a package management system
Answer
  • True
  • False

Question 32

Question
When you execute the dmesg command, the system displays messages that are generated by the kernel
Answer
  • True
  • False

Question 33

Question
Which of the following are package management commands for distributions with software distributed in files ending in .deb? (choose three)
Answer
  • rpm
  • apt-get
  • dpkg
  • aptitude

Question 34

Question
Which of the following are package management commands for distributions with software distributed in files ending in .rpm? (choose three)
Answer
  • yum
  • apt-get
  • rpm
  • yumex

Question 35

Question
Which of the following would be considered a host?
Answer
  • A printer attached to the network via an IP addres
  • A CDROM
  • The computer's hard drive
  • A network cable

Question 36

Question
A service is...
Answer
  • ...a file that constains configuration information
  • ...another name for a computer's hostname
  • ...a feature provided by one computer to another
  • ...like an IP address

Question 37

Question
A network packet contains... (choose two)
Answer
  • ...the IP address of the destination machine
  • ...a hard drive partition
  • ...the name of the router
  • ...the IP address of the source machine

Question 38

Question
Only servers have hostnames
Answer
  • True
  • False

Question 39

Question
Which files contain user account information? (choose two)
Answer
  • /etc/passwd
  • /etc/shadow
  • /etc/group

Question 40

Question
Which user can view the /etc/shadow file?
Answer
  • The root user
  • No users
  • Any member of the password group
  • All users

Question 41

Question
Which command will display the UID, GID and groups your current user belongs to?
Answer
  • id
  • whoami
  • who
  • about

Question 42

Question
Each user belongs to at least one group
Answer
  • True
  • False

Question 43

Question
Which command will display the users that are currently logged in to the system?
Answer
  • who
  • about
  • whoami
  • id

Question 44

Question
UIDs 1-500 are usually reserved for what kind of users?
Answer
  • Are not used for user accounts, but for group accounts
  • System accounts, such as server processes
  • Remote log-in accounts
  • Log-in (human) users

Question 45

Question
If a user is deleted, the files and directories that the user owned...
Answer
  • ...are deleted as well
  • ...will have no UID owner
  • ...will show a UID as the owner, but not user name
  • ...will have no user owner

Question 46

Question
Which of the following options for the useradd command allows root to specify the UID to be associated with the account?
Answer
  • -g
  • -u
  • -U
  • -G

Question 47

Question
Which of the following options for the useradd command allows root to specify supplementary groups the user will be a member of?
Answer
  • -u
  • -U
  • -g
  • -G

Question 48

Question
On a system that does not user UPG, the useradd command will also create a user group. For example, user bob, group bob.
Answer
  • True
  • False

Question 49

Question
Which of the following commands set "other" permissions on the file to r-x?
Answer
  • chmod o+rx file
  • chmod o-r-w file
  • chmod o=r+x file
  • chmod o=rx file

Question 50

Question
Which of the following commands sets "other" permissions on file to r-x?
Answer
  • chmod 774 file
  • chmod 776 file
  • chmod 775 file
  • chmod 777 file

Question 51

Question
Onlye one set (user, group, other) of permission can be changed at once using the symbolic method
Answer
  • True
  • False

Question 52

Question
Which of the following are methods for setting permissions using the chmod command? (choose two)
Answer
  • letter
  • octal
  • symbolic
  • binay

Question 53

Question
The chown command can be used to change the owner and group of a file
Answer
  • True
  • False

Question 54

Question
The Samba application is a:
Answer
  • Mail Server
  • Security Server
  • File Server
  • Web Server

Question 55

Question
Which of the following are examples of desktop software? (choose two)
Answer
  • Web server
  • Web browser
  • File share
  • Compiler
  • Music player

Question 56

Question
If you wanted to set up a blog, which software would be most helpful?
Answer
  • MySQL
  • Postfix
  • WordPress
  • Dovecot
  • Samba

Question 57

Question
Which of the following pieces of software deal with file sharing? (choose three)
Answer
  • NFS
  • X-Windows
  • Netatalk
  • Samba
  • PostgreSQL

Question 58

Question
If you wanted to create and print an invoice, which software could you use?
Answer
  • GNOME
  • Compiz
  • Firefox
  • LibreOffice
  • Evolution

Question 59

Question
Which of the following is true about graphical mode? (choose three)
Answer
  • You have menus and tools to help you find what you are looking for
  • You access this mode by logging into a graphical display
  • After login, you are provided with a command prompt
  • After login, you are provided with a desktop
  • You cannot use your mouse

Question 60

Question
Which of the following is provided by a graphical interface that isn't normally provided to a non graphical interface? (choouse four)
Answer
  • Desktop
  • Shell
  • Windows
  • Popups
  • Menus

Question 61

Question
A server is likely to be running in graphical mode
Answer
  • True
  • False

Question 62

Question
In graphical mode, you can get to a shell by running which applications? (choose two)
Answer
  • guiterm
  • gbash
  • terminal
  • xconsole
  • xterm

Question 63

Question
Which of the following are traits of a multiuser operating system? (choose three)
Answer
  • An administrative user gets a dedicated CPU
  • Users can protect their information from other users
  • Resources are shared between users
  • Many users can log in simultaneously with a unique account
  • Each user can only log in once per day

Question 64

Question
Select all the applications that provide access to the Command Line Interface (CLI)? (choose two)
Answer
  • Virtual Terminal
  • Firefox
  • Opera
  • Windows Terminal

Question 65

Question
Which environment varible contains a list of directories that is searched for commands to execute?
Answer
  • PATH
  • EXEC
  • PS1
  • PS2

Question 66

Question
Select the command that can report the location of a command:
Answer
  • where
  • what
  • which

Question 67

Question
A pair of single quotes (') will prevent the shell from interpreting any metacharacter
Answer
  • True
  • False

Question 68

Question
The /tmp directory is a temporary directory and will not exist on a system at all times
Answer
  • True
  • False

Question 69

Question
The /var directory has files that change over time
Answer
  • True
  • False

Question 70

Question
The "sticky bit" permission...
Answer
  • ...prevents others from removing files they don't own from a common directory
  • ...changes the group ownership of existing files in a directory
  • ..prevents others from overwriting files they don't own in common directories
  • ...sets the group ownership of any new file created in a directory

Question 71

Question
Which of the following commands will set the "sticky bit" on /shared?
Answer
  • chmod 4777 /shared
  • chmod 2777 /shared
  • chmod 7777 /shared
  • chmod 1777 /shared

Question 72

Question
The "setuid" permission...
Answer
  • ...allows a command to be run as the file owner
  • ...allows file in a directory to be manipulated as by the directory owner
  • ...prevents the owner of a file from being changed
  • ...reports the output of a script to the owner
Show full summary Hide full summary

Similar

Sistemas Operativos: Tema 1
Daniel Alvarez Valero
Tipos y clasificaciones de los Sistemas Operativos
octavioasr
20 preguntas sobre sistemas operativos
esmeraldameza100
Sistema Operativo
erik vega
Sistemas operativos
angel.morales.fl
Ciclo Operativo y de Efectivo
Zurisadai Fernández
Clasificación de los Sistemas Operativos.
reynaelizabeyh12
EXAMEN UNIDAD II ADMINISTRA SISTEMAS OPERATIVOS
Claudia Acuña Hernandez
Principales amenazas de Seguridad en los Sistemas Operativos
Jonathan Velasco
Sistemas operativos
Tania J.
SISTEMAS OPERATIVOS
David Fuentes Fernández