Server Lesson 2 Quiz

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.

*

The Filesystem Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?

/boot

Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?

[1-4]

Select below the command and the associated alias available on most Linux systems that displays ​a long listing for each file in a directory?

ll ​ls -l

In order to create a hard link, what command must be used?

ln

Select the command below that utilizes a premade database that contains a list of all the files on a system:

locate

To display the contents of a text file called data, what command should be used?

cat data

​What two commands below will grant only the execute permission to username bob on file1, assuming that bob is the file's owner?

chmod 777 file1 ​chmod a+rwx file1 ***wrong

​What two commands below can be used to locate files on a filesystem?

locate find

​What two commands below will work recursively if specified with the -R option?

rm cp

The Filesystem Hierarchy Standard specifies what directory as the root user's home directory?

/root

The LISP artificial intelligence programming language can be used with which text editor below?

Emacs editor

​What two special permissions can be applied in order to effectively allow a user to become owner of a file, or become a member of a group, by executing a file?

SGID ​SUID

If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?

Tab

Linux uses a logical directory tree to organize files into different folders.

True

What two regular expression characters can be used to match the characters at the beginning or end of a line, respectively?

^ $

In a file's mode, a permission that is unavailable is represented by what character?

-

Which switch below can be added to the ls command to show a list of files and their type?

-F

When issuing the ls -F command, what special character indicates a linked file?

@

It is acceptable to use shell metacharacters when naming files.

False

Pressing the Esc key at the prompt while using the more command displays a help screen.

False

Shell scripts do not require the execute permission in order to be run the same way binary programs are run.​

False

The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program.

False

The rmdir command automatically removes a directory and all of its subdirectories and files.

False

The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command?

$

What two characters below should not be used in filenames?​

$ *

​Select the mode below that corresponds to setting r-x:

5

When using the chmod command, the mode rwx can be represented by which number?

7

In the GNU Emacs editor, what key combination can be used to delete all characters between the cursor and the end of the line?​

Ctrl + k

Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?

Ctrl+g

The SGID allows regular users to execute a binary compiled program and become a member of the group that is attached to the file.

True

The more command should not be used on binary files.

True

You can use wildcard metacharacters with the find command.

True

​The database for the locate command can be updated manually by using the updatedb command.

True

What command can be used to copy files?

cp

Select the two ​filename extensions that are associated with C++ programming language source code files:

cpp .c ***got wrong

In a file listing, the 9 characters following the file type (for example, -rwxr-xr-x) refer to the file's _________________________.

file owner got wrong

What argument can be used with the chmod command to add read permission and remove write permission for a group on a file?

g+r-w

Select the command below that can be used to provide a long listing for each file in a directory:

ls -l

When displaying a large text file, what two commands provide the ability to show text in a page by page fashion?​

more less

What command can be issued to confirm what directory you are in at a command line prompt?

pwd

If a file's permissions are set to 760, what permission(s) are available to the group assigned to the file?​

read write

What command below takes a list of arguments specifying the absolute or relative pathnames of files to remove?

rm

What section of a filesystem contains information about the filesystem in general?

superblock

To display a text file in reverse order, what command should be used?​

tac

What command can be used to display the last five lines of a text file?

tail -5

The section of an inode that stores permissions is referred to as what?

the mode of the file

What permission grants a user the ability to open, read, and edit the contents of a file?

write

Which character(s) below represent extended regular expression metacharacter(s)?

{}

What metacharacter can be used to refer to the current user's home directory?

˜

What option, when added to the rm command, is commonly referred to as the -resume option?

​-r

​At the vi command mode prompt, what key combination below will force a quit from the vi editor without saving changes?

​:q!

What does the setfacl -b command do?​

​It removes all extra ACL assignments on a given file

​1. The full pathname to a certain file or directory starting from the root directory. 2. ​A variant of the grep command used to search files for patterns, using extended regular expressions. 3. ​The files that represent the same data as other files. 4. ​A Linux command that searches files for patterns of characters using regular expression metacharacters. The command name is short for "global regular expression print." 5. A temporary connection that sends information from one command or process in memory to another; it can also be represented by a file on the filesystem. ​6. The joining of text together to make one larger whole. In Linux, words and strings of text are joined together to form a displayed file. 7. One of the two modes in vi; it allows a user to perform any available text-editing task that is not related to inserting text into the document.​ ​8. A file that can be executed by the Linux operating system to run in memory as a process and perform a useful function. ​9. The special metacharacters used to match patterns of text within text files; they are commonly used by text tool commands, including grep ​10. A variant of the grep command that does not allow the use of regular expressions.

1. Absolute pathname 2. ​egrep command 3. ​linked file 4. grep command 5. ​named pipe file 6. ​concatenation 7. command mode​ 8. executable program​ 9. regular expressions 10. fgrep command

1. A Linux command used to display lines of text at the end of a file.​ ​2. A named pipe connecting processes on two different computers; it can also be represented by a file on the filesystem. ​3. The joining of text together to make on larger whole. In Linux, words and strings of text are joined together to form a displayed file. 4. A popular and widespread text editor more conducive to word processing that vi. It was originally developed by Richard Stallman.​ ​5. A powerful command-line text editor available on most UNIX and Linux systems. 6. A Linux command that displays the first set of lines of a text file.​ ​7. A Linux command used to display the contents of a file in octal format. ​8. The files that represent the same data as other files. ​9. A Linux command used to search for and display text characters in a binary file. ​10. A common text editor used within GUI environments.

1. ​tail command 2. ​socket file 3. ​concatenation 4. Emacs (Editor MACroS) editor​ 5. vi editor 6. head command​ 7. od command​ 8. ​linked file 9. ​strings command 10. ​gedit editor

In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued?

cd ../..

In order to set all of the special permissions on a certain file or directory, which command below should be used on a file named filename?

chmod 7777 filename

In what mode does the vi editor open by default?​

​command mode

In vi, using command mode, what ​series of key presses below will cause the line on which the cursor is on to be deleted?

​dd

What permission (when applied to a directory) allows a user to enter the directory and work with directory contents?​

​execute

What command is most effective at identifying different types of files?​

​ll got wrong

In order to quickly create an empty file, what command can be used?​

​vim file1

​What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file?

​write


Set pelajaran terkait

A & P 1 Lab Exercise 2 & 3 Mastering Module

View Set

Atomic Structure and Periodic Trends (2)

View Set

Fundamentals Networking Tech : Mid-Term Exam

View Set

MIL: Media and Information Manipulation

View Set

تاريخ قطر واثر القبائل

View Set

Nutrition Module 10 -- chapter 11 water and minerals and chapter 12 trace minerals

View Set