CPSC298 - Intro to Nix Final Review

Ace your homework & exams now with Quizwiz!

True

A directory is a special kind of file that can contain other files and directories.

user.name

A user named Jane Doe would configure git with her name by typing :git config --global __________ "Jane Doe"

absolute

A(n) ____ path begins at the root level and lists all subdirectories to the destination file.

wildcard

A(n) ____________________ is a special character that can stand for any other character or, in some cases, a group of characters.

Name and email address

After you install Git and prior to issuing the first commit, which two configuration properties does git expect to be configured?

gzip

Compress a file and adds the ".gz"extension

text

Computer files containing nothing but printable characters are called ____ files.

/bin

Directory with operating system programs

/sbin

Directory with programs for System Administrators

/usr

Directory with programs for users

git add

How do you stage files for a commit?

git commit -m "I'm coding"

How do you supply a commit message to a commit?

/home

If you plan to have multiple users access a system, you can create a ____ partition, which is the home directory for all users' directories.

False

In vi, a tilde (~) precedes all line-oriented commands.

Bash

Linux uses the freeware ____ shell as its default command interpreter.

make

One the Makefile has been created, you can build the software by using the ________ command.

sudo make install

Suppose you have built a software package form a Makefile and verified that there were no errors.To install the software in a directory for which you do not have write permission you would type

./configure

Suppose you have extracted the files from software archive and are in the directory into which the files have been extracted. To create a Makefile with all the default values you would type___________

date

The UNIX/Linux ____ command displays the system date, which the system administrator maintains.

/etc

The ____ directory contains configuration files that the system uses when the computer starts.

/boot

The ____ directory contains the kernel (operating system) images.

/tmp

The ____ directory holds files that are created temporarily, such as files used for printing documents (spool files)

case

The ____ statement simplifies the selection of a match when you have a list of choices.

read

The ________ command stores the user's input in a variable

PATH

The ____________________ variable provides a list of directory locations where UNIX or Linux looks to find executable scripts or programs.

passwd

The command to change your password is

cp

The command to copy a file is

file

The command to determine what type of contents a file contains is

pwd

The command to display the name of your current directory is

wget

The command to download a software archive from an Internet URL is ________

rmdir

The command to remove an empty directory is

cat

The command to view the contents of a small file is

~

The current user's home directory

.

The current working directory

ten

The head and tail commands, allow you to view the first few or last few lines of a file (____ lines by default).

False

The less command scrolls only down, whereas more enables you to scroll down and up.

..

The parent directory of the current working directory

True

The rm -r command can be used to delete a directory that is not empty.

Forward slash (/)

The root of a file system is denoted by the ____

superuser

The system administrator is also called the ____________________, because the system administrator has unlimited permission to alter the system.

root

The username of the system administrator is ________

command

The vi editor works in three modes: insert mode, ____ mode, and extended mode.

PATH="$PATH:/home/bin"

To add the directory "/home/bin" to your PATH, you would type

>>

To append output to an existing file, you use ____.

who

To determine information about who is logged in, you can use the ____ command.

cmp

To determine whether two files are different, not how they are different, then use the _____________ command

wc

To display statistical information about a file, including the number of lines, words, and characters in the file, use the _____________ command:

cat -n if.sh

To display the contents of the "if.sh" wile with line numbers, you would type

tail

To display the last 10 lines of a file, use the __________ command

./

To execute a program in your current directory, what would you type in front of the program name?

tar -xvf software.tar

To extract the individual files from the archive "software.tar" you would type

N=$((N+1))

To increment the integer variable N by 1 you would type

ls -al

To list all the files in your current directory, including the hidden files and the file permissions, use the __________ command

ls -l

To list the files in your current directory including the permissions on the files use the _____________ command

ctrl+d

To log out of UNIX/Linux (Bourne, Korn, or Bash shells) you can enter exit on the command line or press ____.

mv hello.sh bin

To move the file hello.sh from your current directory into a subdirectory named bin you would type

curly brackets

To reference a variable, you use a dollar sign ($) in front of it or enclose it in ____.

rm data

To remove a file named "data" from your current directory you would type

history

To see a list of the commands you have typed, use the_____________ command

whoami

To see which account you are using, use the ______ command

gunzip software.tar.gz

To uncompress the compressed archive "software.tar.gz" you would type

vi if.sh

To use vi to create a new file named "if.sh" you would type

make check

To verify that there were no errors when building software from a Makefile, you can use the command

multitasking

UNIX and Linux are ____ systems, which allow one user to execute more than one program at a time.

multiuser

UNIX/Linux are ____ systems, which let many people simultaneously access and share the resources of a server computer.

git fetch

What's the git command that downloads the latest version your repository from GitHub to an existing repository on your computer?

git clone

What's the git command that downloads your repository from GitHub to your computer?

git merge

What's the git command that lets you combine any changes you made on another computer with the version of your repository on your current computer

git push

What's the opposite of git clone, that instead of downloading your code from GitHub, uploads your changes and code back to GitHub?

:wq

When editing a text file with vi, if you want to save your changes and exit right away, you can use ____ or ZZ from command mode.

set

With no options, ____ displays the current listing of Bash environment and shell script variables.

semicolon

You can type more than one command on the command line by separating commands with a ____.

hidden

You can use the -a option with the ls command to list ____________________ files.

chmod 755

____ gives the owner read, write, and execute permissions.

Shell Scripts

____________________ are text files that contain sequences of UNIX/Linux commands.

then

echo -n " What is my favorite color? " read COLOR if [ "$COLOR" = "red" ] _____ echo "You guessed the right one!" else echo "No, that's not it." fi

rm -rf

the command to remove a directory that contains files and/or subdirectories is

cd ..

to change directory from your current directory to your parent directory you would type

head

to display the first 10 lines of a file, use the _____________ command

chmod

to modify file permissions, use the _____________ command


Related study sets

Medical-Surgical Nursing - Cardiovascular System, Blood, and Lymphatic Systems

View Set

Maternal-Newborn chapter 16- Labor & Delivery

View Set

Intro to Economics - quiz 1 (multiple choice)

View Set

Intro to American Politics Final

View Set

public speaking midterm study guide

View Set