Unit 2 - System Administration

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

To run a script, enter ______.

./

Shells typically end with a _____ file extension.

.sh

Your shell is in /usr/local. You type cd ../bin. Which directory is shown when you type pwd?

/usr/bin

Files that change often should go under:

/var

The directory that hold spool files is:

/var/spool

What do you use to forward errors to a file?

2>filename

To change the file ownership so a script file can be executed, use the chmod _____ command.

755, r+x

Which of the following command would set the default rwx permission to all users on every file which is created in the current shell?

777

In the example below, what time does the incremental backup occur? When? 00 08 10 06 * /home/user1/bin/incremental-backup

8 AM every day of the week

What does the command tar -tf archive.tar etc/pine.conf do?

Checks to see whether etc/pine.conf is inside the archive

How can you append the output of a command to a file?

Command >> file

CUPS is short hand for:

Common Unix Print System

A do while and while loop are the same.

False

Apt-get will download a 'setup.exe' file similar to windows, making it easy to install software applications.

False

Google Chrome is the default web browser for the Debian Linux.

False

The GUI package management application in debian linux will need to be installed, in order to use it.

False

The extension of a Linux printer definition file is:

PPD

The echo command is an example of ________.

STOUT

The Linux software tool that print queuing is:

Spooler

_______ is the graphical user interface for the Debian Linux,APT package manager.

Synaptic

Which type of error occurs when a programmer misspells a word or instruction?

Syntax

A loop is used for executing a block of statements repeatedly until a particular condition is satisfied.

True

Cron reads the crontab (cron tables) for predefined commands and scripts.

True

Most linux distributions have their own standard repositories for storing/retrieving software packages.

True

Open Virtual Machine Tools (open-vm-tools) is the open source implementation of VMware Tools.

True

Use the ____________ command to install a package.

apt-get install package_name.deb

Which of the following is a scheduling command?

at

Which compression utility offers the highest level of compression?

bzip2

To open a package in Debian Linux, use the ____ package manager.

dpkg

Install Open Vm Tools, when working with a Virtual machine, to _______.

enhance the performance/graphics of the host machine's, permit copying and pasting text, graphics, and sharing of files between the guest and host.

You happen across a file in a directory called foo. What is a good way to find out what the file is or does?

file foo

You know that you downloaded a file called backup.tar.gz this morning but can't remember where you put it. Which is the most appropriate command to find the file?

find / -name backup.tar.gz

To remove a print job one would use _________.

lprm

You are trying to create a new series of nested directories: /a/b/c/d/. What is the fastest way to create this nested directory set?

mkdir -p /a/b/c/d

The _____ command allows sending the output of two or more commands as input to a file or another command.

pipe

#!/bin/bash is ____?

placed at the top of a shell script, known as shebang

Use the _____ command to get input from the terminal for a shell script.

read

Which of the following is an example of a variable used to obtain user input (STDIN)?

read name

A scheduling command in Linux is used to ___________.

run tasks at specific times and dates

You want to package up Fred's home directory on a USB stick to send with him as he's leaving your company. Which command is the best? Hurry, because there's cake!

tar -czf /home/fred > /media/removable/fred.tar.gz

To write a bash script, a ________ should be used.

text editor

What command would be used to update the date on a file

touch

The apt-________ command should be used periodically to install the latest versions of the packages currently installed on a Debian Linux system.

upgrade

The cat command can be used to ______, which makes it quite useful in generating scripts.

view files in STDOUT, Send text to a file, create a file

You know that you have multiple copies of the doit command on your system. How do you find which one you will run if you type doit at the command line?

which doit


संबंधित स्टडी सेट्स

Investment Planning: Portfolio Management & Measures (Module 9)

View Set

Module 4 Ch 8 The Flow of Food: Preparation

View Set

Somatosensory Nervous System (touch, pain, temperature)

View Set