UNIX 2

¡Supera tus tareas y exámenes ahora con Quizwiz!

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

/boot

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

/root

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

Cat data

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

Cd ../..

What does the setfacl -b command do?​

It removes all extra ACL assignments on a given file

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

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

What command can be used to copy files?

Cp

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

Ctrl+g

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

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

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

Emacs editor

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

Execute

T or F: It is acceptable to use shell metacharacters when naming files.

False

T or F: Pressing the Esc key at the prompt while using the more command displays a help screen

False

T or F: Shell scripts do not require the execute permission in order to be run the same way binary programs are run.

False

T or F: The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program.

False

T or F: The rmdir command automatically removes a directory and all of its subdirectories and files.

False

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

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

Pwd

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

RM

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

Stat

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

Superblock

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

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

T or F: Linux uses a logical directory tree to organize files into different folders.

True

T or F: 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

T or F: The database for the locate command can be updated manually by using the updatedb command

True

T or F: The more command should not be used on binary files.

True

T or F: You can use wildcard metacharacters with the find command.

True

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

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

Write

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

[1-4]

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

-r

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

$

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

*

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

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

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

:q!

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

@

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

ls -l

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

{}

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

~


Conjuntos de estudio relacionados

MUS 150 - Elements of Music Smartbook

View Set

Natural Disasters (Fill In The Blank)

View Set