Linux cit173

Ace your homework & exams now with Quizwiz!

-a

Use the ___ option to display hidden files with the ls command.

.

When specifying a path, the __ character symbolizes the current directory.

~/.bashrc

Which of the following files is specific to each user and executed every time a bash shell is opened?

sed

Which of the following is a non-interactive editor?

The SYNOPSIS section

Which of the following man page sections will provide an example of how a command is executed?

VAR=value

Which of the following will create a variable?

-S

Which option to the ls command will sort the output by size instead of alphabetically?

echo

Which command will send text to the terminal display

a shell

Bash is

cut

If you want to extract fields from a file, you can use:

Essential administrative commands

The /sbin directory contains:

command [options] [arguments]

Basic form of a command line

Timestamp

By default, using the touch command on an existing file will update the file's _____.

The ls command will list which of the following by default?

The current directory

split

If you want to break apart a large file into smaller files, you can use:

cat

If you want to see the entire contents of a text file, you can use the _____ command:

--

Long command options are preceded by which two characters?

Insert characters

Select the function that the tr command cannot perform:

1

Shell command man pages are typically located in section

4

Special file man pages are typically located in section ____.

The most fundamental commands that are essential for the operating system to function

The /bin directory contains:

Commands that have been compiled from local sources

The /usr/local/bin directory contains:

Specifying directories to search for executable files

The PATH environment variable is used for:

exec

The _____ command will take another command for the argument to execute.

-s

The _____ option to the uname command will display the kernel name.

Display the man page of Section 5 for passwd.

The command man 5 passwd will:

the "magic" file

The file command uses _____ to determine file types.

Display all but the last line of readme.txt

The head -n -1 readme.txt command will:

False

The ls command can list the contents of only one directory at a time. True or False?

True

The mv command can be used to move more than one file at a time.

These three options mean the same thing

The syntax [-u|-utc|-universal] means:

True

The touch command can be used to change a file's time-stamp to something other than the current system time.

od

This command displays binary files in a variety of representations:

pwd

To display your current location within the filesystem

ls -l

To perform a "long listing" to show file details, use which of the following commands:

sort

To put the lines of a file in alphabetical order, you can run:

/

To search for something while viewing a man page, you first type a __ character.

set

To view all current variables, you can use:

Field names must be prefixed by the table name and a period

Two tables have columns with the same field names. What is required in order to join the two tables?

!ec

Which of the following commands will execute the last command that started with ec:

creates a blank file with that name.

Using the touch command and specifying a nonexistent file...

/etc/profile

Which of the following files is for all bash shell users and executed only at login?

join

Which command merges two files like related tables in a database?

uniq

Which command will remove consecutive duplicate lines from a file?

To stop tail from following a file

Why would you press CTRL+C when executing tail?

uname

command that displays info about the Linux kernel


Related study sets

Grief and Loss - Videbeck Ch.10, Chapter 10: Grief and Loss, Chapter 10

View Set

Chapter Review Questions & Summary

View Set

Module 8: Early Adulthood (Part 1)

View Set

Biology 112 - CHapter 38 Nutrition

View Set

NU 258 ch 63 Management of Patients with Neurologic Trauma

View Set

Chapter 2 Animals & Their People

View Set

intermediate accounting 2 exam 1 review

View Set