Linux 1012

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

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

**Virtual Terminal **Terminal window

Which of the following is true about graphical mode?

**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 desktop

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

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 (.)

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

Absolute

Is the following path absolute or relative? sysadmin/Documents

Relative

Compression on a file works by:

Removing redundant information

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

True

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

**-G

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

**Creates /tmp/foo if it does not exist

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

**LibreOffice

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

**True

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

(choose three) **aptitude **apt-get rpm **dpkg

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

**...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 a command to a file. ...send the same input to multiple commands. ...send the output of one command to another. ...type multiple commands at one prompt.

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

A network packet contains ... (choose two)

**...the IP address of the destination machine. **...the IP address of the source machine.

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

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

Which files contain user account information? (choose two)

**/etc/passwd **/etc/shadow

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

**/usr/share/doc

Which of the following are valid CPU types for Intel-based platforms? (choose two)

**64 bit 48 bit 24 bit **32 bit

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

**A human readable version of computer software

Which of the following would be considered a host?

**A printer attached to the network via an IP address

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

**A trademark **An operating system

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

**Control and another character

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. True or False?

**False

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

**False

The Samba application is a:

**File Server

Lossy compression: (choose three)

**Is often used with images **Usually results better compression than lossless **Sacrifices some quality

The echo command:

**Is used to output text to the console

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

**Manage the system's resources

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

**Many users can log in simultaneously with a unique account **Resources are shared between users **Users can protect their information from other users

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

**NFS X-Windows **Samba PostgreSQL Netatalk

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

**PATH

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

**Popups **Desktop **Menus **Windows

Channel 2 is: STDIN STDOUT STDERR STDALL

**STDERR

Which user can view the /etc/shadow file?

**The root user

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

**True

Each user belongs to at least one group. True or False? **True

**True

The /var directory has files that change over time.

**True

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

**WordPress

Which of the following commands will direct error messages to the file, error.log? (choose two)

**ls /root 2> error.log **ls /root &> error.log

You type gzip myfile.tar. What happens? (choose two)

**myfile.tar is removed **myfile.tar.gz holds a compressed version of myfile.tar

Which of the following are methods for setting permissions using the chmod command? (choose two)

**octal binary letter **symbolic

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

**rpm apt-get **yum **yumex

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? whoami

**who

In graphical mode, you can get to a shell by running which applications? (choose two)

**xterm **terminal

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

--help

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

-a

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

-u

64 bit platforms can access more memory than 32 bit platforms. True or False? **True

True

A successful command will print output to STDOUT. True or False?

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 are appropriate editors for writing shell scripts? (choose two)

nano vi

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

/

The whatis command is the same as man -w.

False

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

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

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

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

False

Linux is written in: .NET C Perl C++ Java

C

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

Compiler Web server **Music player **Web browser File share

Only servers have hostnames. True or False?

False


Ensembles d'études connexes

chapter 10 tax part 1, chapter 9 tax part 2, chapter 9 tax

View Set

2nd Engineer Electricity and Electronics

View Set

ARRT Score Report: Patient Care INTERACTIONS (25)

View Set

Hiragana: Vowels, K and G sounds

View Set

Disciplinary actions in the workplace

View Set

Google Cloud Digital Leader Cert

View Set

Mental Health Ch 3 - Psychobiology and Psychopharmacology

View Set

Controllable and Uncontrollable factors

View Set