Linux Essentials Final Exam

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Which of the following options for the useradd command allows root to specify supplementary groups the user will be a member of?

-G

What option for the ls command will display all files, including hidden files?

-a

What is the standard option to provide a command line program to view its documentation?

-help

Which of the following options for the useradd command allows root to specify the UID to be associated with the account?

-u

A service is...

...a feature provided by one computer to another.

The "setuid" permission...

...allows a command to be run as the file owner.

The "sticky bit" permission...

...prevents others from removing files they don't own from a common directory.

A pipe allows you to...

...send the output of one command to another.

If a user is deleted, the files and directories that the user owned...

...will show a UID as the owner, but not user name.

The top-level directory on a Linux system is represented as:

/

The directory where additional documentation for software packages most likely can be found is:

/usr/share/doc

Unix is:

1) An operating system 2) A trademark

Which of the following is provided by a graphical interface that isn't normally provided to a non graphical interface?

1) Desktop 2)Windows 3) Popups 4) Menus

Which of the following pieces of software deal with file sharing?

1) NFS 2) Netatalk 3) Samba

Lossy compression:

1) Sacrifices some quality 2) Usually results better compression than lossless 3) Is often used with images

Select all the applications that provide access to the Command Line Interface (CLI)?

1) Virtual Terminal 2) Terminal window

Which of the following are examples of desktop software?

1) Web browser 2) Music player

Which of the following is true about graphical mode?

1) You have menus and tools to help you find what you are looking for 2) You access this mode by logging into a graphical display 3) After login, you are provided with a desktop

You type gzip myfile.tar. What happens?

1) myfile.tar.gz holds a compressed version of myfile.tar 2) myfile.tar is removed

Which of the following are methods for setting permissions using the chmod command?

1) octal 2) symbolic

In graphical mode, you can get to a shell by running which applications?

1) terminal 2) xterm

A network packet contains ...

1)...the IP address of the destination machine. 2) ...the IP address of the source machine.

Source code refers to:

A human readable version of computer software

In general, for which of the following would you want to use lossless compression?

A log file

Hidden files are files that begin with what character?

A period (.)

Which of the following would be considered a host?

A printer attached to the network via an IP address

Is the following path absolute or relative? "/etc/ppp"

Absolute

Linux is written in:

C

Most of nano's commands take the form of:

Control and another character

"What does this shell script do? FOO=/tmp/foo if [ ! -d $FOO ]; then mkdir $FOO fi"

Creates /tmp/foo if it does not exist

A server is likely to be running in graphical mode.

FALSE

Only one set (user, group, other) of permission can be changed at once using the symbolic method.

FALSE

Only servers have hostnames.

FALSE

The /tmp directory is a temporary directory and will not exist on a system at all times.

FALSE

The whatis command is the same as man -w.

FALSE

On a system that does not use UPG, the useradd command will also create a user group. For example, user bob, group bob.

False

The Samba application is a:

File Server

The echo command:

Is used to output text to the console

If you wanted to create and print an invoice, which software could you use?

LibreOffice

One of the jobs of the kernel is to:

Manage the system's resources

Which environment variable contains a list of directories that is searched for commands to execute?

PATH

What does the acronym RPM mean?

RPM Package Management

"Is the following path absolute or relative? sysadmin/Documents"

Relative

Compression on a file works by:

Removing redundant information

A file begins with #!/bin/csh. This means:

Running the script will invoke /bin/csh to interpret the rest of the file

Channel 2 is:

STDERR

Error messages generated by commands are sent where by default?

STDERR

UIDs 1-500 are usually reserved for what kind of users?

System accounts, such as server processes

64 bit platforms can access more memory than 32 bit platforms.

TRUE

A pair of single quotes ( ' ) will prevent the shell from interpreting any metacharacter.

TRUE

A successful command will print output to STDOUT.

TRUE

Each user belongs to at least one group.

TRUE

One way to install new software on a Linux system is to use a package management system.

TRUE

The /var directory has files that change over time.

TRUE

The chown command can be used to change the owner and group of a file.

TRUE

The command man -k is the same as the command apropos.

TRUE

When you execute the dmesg command, the system displays messages that are generated by the kernel.

TRUE

Which user can view the /etc/shadow file?

The root user

If you wanted to set up a blog, which software would be most helpful?

WordPress

Which of the following commands will set the "sticky bit" on /shared ?

chmod 1777 /shared

Which of the following commands sets "other" permissions on file to r-x?

chmod 775 file

Which of the following commands set "other" permissions on file to r-x?

chmod o=rx file

Which command will display the UID, GID and groups your current user belongs to?

id

Which of the following commands will direct error messages to the file, error.log?

ls /root 2> error.log

Which are appropriate editors for writing shell scripts?

nano vi

Select the command that can report the location of a command:

which

Which command will display the users that are currently logged in to the system?

who

Which of the following are package management commands for distributions with software distributed in files ending in .rpm?

" 1) yum 2) rpm 3) yumex"

Which files contain user account information?

"1) /etc/passwd 2)/etc/shadow"

Which of the following are traits of a multiuser operating system?

"1) Users can protect their information from other users 2)Resources are shared between users 3) Many users can log in simultaneously with a unique account"

Which of the following are package management commands for distributions with software distributed in files ending in .deb?

"1) apt-get 2) dpkg 3) aptitude"

Which of the following are valid CPU types for Intel-based platforms?

"64 bit 32 bit"


Kaugnay na mga set ng pag-aaral

Business Ethics Chapters 1-3 by CAR

View Set

Chapter 9: Implementing Information Security

View Set

Med Surge Chap 65 Degenerative Neuro

View Set

Chapter 4: Beat Subdivisions and Syncopation

View Set