What file contains the home directory of every user on a Linux system?
-
- /etc/passwd
- /etc/shadow
- /etc/group
- /etc/homedirs
- /etc/login.defs
- /bin/passwd
What file contains the user's password (stored in an encrypted/hashed format)?
-
- /etc/passwd
- /etc/shadow
- /etc/group
- /etc/homedirs
- /etc/login.defs
- /bin/passwd
The file /etc/passwd contains a UID. What is a UID?
-
- *a number that is specific to a user
- the method of password encryption used
- the date the account is to expire
- the days of the week the account can log in
The file /etc/passwd contains a GID. What is a GID?
-
- a number that represents a specific group
- the number of groups a user is part of
- a number that is specific to a user
- the number of concurrent logins allowed for this user
What command is used to remove a user from OpenSUSUE?
-
- userdel
- usermod
- passwd
- rm
- rmdir
What command is used to add a user from OpenSUSE?
-
- userdel
- usermod
- useradd
- mkuser
- newuser
- touch
- mkdir
Which of the following is true about Linux groups?
-
- users can only be in one group
- users have to be in one group, but can be in many
- users are assigned groups by the "newgroup" command and do not have a default group
- a user is always in two groups, one defined in /etc/passwd and one defined in /etc/group
- a user is always in two groups, one defined in /etc/passwd and one defined in /etc/shadow
Which of the following is a command that can be used to view the IP address (or addresses) used on a Linux system?
-
- ifconfig
- ipconfig
- ping
- echo
- stat
- sysstat
- msinfo32
Which of the following is a command that can be used to perform a rudimentary network test?
-
- ifconfig
- ipconfig
- ping
- echo
- stat
- sysstat
- msinfo32
Which of the followign is used for backup and to combine multiple files into a single container?
-
- tar
- scp
- rpm
- sed
Which of the following takes input from a file and sends it into a program?
-
- a > b
- a < b
- a | b
- a >> b
Which of the following takes the output of a program and creates a file with only the output?
-
- a > b
- a < b
- a | b
- a >> b
Which of the following takes the output of one program as input into a second program?
-
- a > b
- a < b
- a | b
- a >> b
Which of the following is a use of the "cpio" command?
-
- perform a system backup
- add or remove a package from the system
- check the disk for errors
- copy files across the network to a second Linux system
If a program accepts both input and output (such as "cat"). Which of the following is true about standard input/output redirection?
-
- You can only redirect the output
- You can only redirect the input
- You can redirect the input or the output, but not at the same time
- You can redirect the input and the output at the same time
Which of the following is a use of the "cron" subsystem?
-
- perform a system backup
- run a command or script at a regular interval
- allow a system bootup to complete
- add a package to the system
The crontab program allows you to schedule jobs the can be ran ______.
-
- weekly
- daily
- monthly
- hourly
- all
How is common software on OpenSUSE updated?
-
- via a package manager such as rpm
- via a Linux store-front
- the source code of the software is downloaded and then compiled
- monthly, on the first Tuesday of the month
In OpenSUSE, what is the name of different locations (e.g. different servers) that hold different packages?
-
- repositories
- domains
- directories
- front-ends
Which of the following is a way to use YaST to install software packages?
-
- using the command line
- using a GUI front-end
- using either a command line or a GUI front-end
- only indirectly as the operating system handles all updates itself
Which of the following is true changing an IP addresses using "ifconfig"?
-
- changing the IP address of an interface will be "undone" next reboot
- the IP address change will "survive" a reboot
- you cannot change an IP address using ifconfig, only view it
- the IP address change will happen the next time the system is rebooted
Which of the following is true about rpm packages and dependencies?
-
- a rpm package can depend on another package that must also be installed
- all rpm packages are independent of all other packages
- a rpm package can depend on one other package, but no others
Which of the following is true about user accounts in Linux?
-
- user accounts cannot be configured to automatically expire
- user accounts can be configured to automatically expire, and will be deleted when they expire
- user accounts can be configured to automatically expire, and will disallow logins after they expire
- user accounts can be configured to automatically expire, and after the account is expired will allow logins but warn the user
Which of the following is true about /etc/passwd
-
- /etc/passwd is a text file that can be viewed by anyone
- /etc/passwd is a text file that can only be viewed by the system admin
- /etc/passwd is a binary (non-text) file that can be copied by anyone
- /etc/passwd is a binary (non-text) file that can only be copied by the system admin
Which of the following is true about /etc/shadow
-
- /etc/shadow is a text file that can be viewed by anyone
- /etc/shadow is a text file that can only be viewed by the system admin
- /etc/shadow is a binary (non-text) file that can be copied by anyone
- /etc/shadow is a binary (non-text) file that can only be copied by the system admin
Which of the following is a possible use of the "grep" command?
-
- looks for a string within a file
- edit a file using a GUI interface
- edit a file using a text-based interface
- create a new group
- add a user to an existing group
Which of the following is NOT a field in "cron"?
-
- day of week
- hour
- minute
- second
- month
- day of month
What does the command "crontab -l" do?
-
- shows the content of the user's crontab
- shows the content of the system's crontab
- deletes the user's crontab
- deletes the system's crontab
- edits the user's crontab
- edits the system's crontab
Both "gzip" and "bzip2" can be used to...
-
- copy a file over the network
- reduce the size of a file for storage or transfer
- create a copy of a file
- set permissions of a file quickly
Which of the following is a program that is similar to (but not identical to) "tar"?
-
- cpio
- usermod
- rpm
- yast
- grep
What is the name used for where a program gets it's data (whether the data is from the keyboard or from another program)?
-
- standard input
- standard output
- kvm
- tty
- $in
- $out
Which of the following is a type of backup that copies all files in a filesystem (or on the whole system)?
-
- full backup
- incremental backup
- whole backup
- virtual backup
- sole backup
- net backup
Which of the following is a common web server for Linux?
-
- Apache
- IIS
- Firefox
- Chrome
- Bash
How do you restart a web server on Linux?
-
- Only by rebooting the system
- By logging out and logging in a the system administrator
- By logging out and logging in as any user
- By using the command line tools or YaST
After installing a web server, how can you test to see if it is working?
-
- By using a web browser on the system pointing to http://localhost or http://127.0.0.1
- By using the "ping" command against the default gateway
- By using the "ping" command against localhost or 127.0.0.1
In Apache, a URL that points to a different location than in called _____.
-
- a symlink
- an alias
- a hard link
- a junction
- a mount point
Which of the following is a way to create a web page in Linux?
-
- By using a text editor
- By using YaST
- By using the GCC compiler
- By using the mkweb command
- By using the mkhtml command
In terms of web servers, the line "http://localhost/testpage.html" is called _____.
-
- a URL
- a relative path
- an absolute path
- a FQDN
- a vHost
A web user enters the address "http://localhost/mystuff" If "mystuff" is a directory, by default, the web browser will display...
-
- a page called index.html if it exists
- an error page
- the main web page for the server
- the contact information for the webmaster
- a random page within the directory "mystuff"
In terms of HTML, items enclosed in angle brackets (aka "less than" and "greater than" signs) are called ___
-
- tags
- URLs
- FQDNs
- attributes
- locations
- launch points
You have a package called "powertools" installed and have modified it's configuration files. What happens if you use rpm to update it?
*The changes you made to the configuration files stay
The changes you made to the configuration are undone
The package cannot be updated
Two separate packages are installed, one with the configuration changes, and the other with no changes
Which of the following is an IP address (IPv4 address)?
-
- 00:0c:29:76:77:63
- 192.168.75.200
- 0x2024
- Localhost
What is the basic format of both /etc/passwd and /etc/shadow?
-
- one line per user, made up of fields seperated by colons (:)
- one line per user, made up of fields seperated by tabs
- one line per user, made up of fields seperated by commas (,)
- multiple lines per user, with a blank line between users
- multiple lines per user, using angle brackets for each field
Which of the following would run three seperate programs?
-
- a | b | c
- a | b > c
- a < b > c
- a < b | c
- a | b < c
Which of the following run one program and use two files for data?
-
- a | b | c
- a | b > c
- a < b > c
- a < b | c
- a | b < c
After using rpm, you receive the message "error: Failed dependencies". What does this error message indicate?
-
- The command only works if you are the system administrator
- The command only works if you boot into "single user" mode
- The package being installed needs one or more other packages installed first
- The command does not work on a virtual computer
- The package is corrupted and needs replaced
Which of the following would create a file with exactly one line in it?
-
- echo hi > a
- touch a
- mkdir a
- echo hi < a
- echo hi | a
The group id (GID) for a user is stored in the ____ file.
- /etc/passwd
- /etc/group
- /etc/shadow
- /etc/login.defs