Which of the following options will change the ownership of files and directories recursively within a directory choose all that apply quizlet?

Home

Subjects

Expert solutions

Create

Log in

Sign up

Upgrade to remove ads

Only ₩37,125/year

  • Flashcards

  • Learn

  • Test

  • Match

  • Flashcards

  • Learn

  • Test

  • Match

Terms in this set (30)

A symbolic link is also known as a soft link and is depicted by an @ symbol appearing at the beginning of the filename when viewed using the ls -l command. True or False?

False

What was created to define a standard directory structure and common file location for Linux?

FHS

There is no real difference between the "S" and "s" special permissions when displayed using the ls -l command. One just means it is on a file, and the other that it is on a directory. True or False?

False

The default permissions given by the system prior to analyzing the umask are ___________for directories and __________ for files.

rwxrwxrwx and rw-rw-rw-

What must a user do to run cp or mv interactively and be asked whether to overwrite an existing file?

Just type cp or mv as they run in interactive mode by default.

The root user utilizes the chgrp command to give ownership of a file to another user. What must the root user do to regain ownership of the file?

Run chgrp again listing the root user as the new owner.

After typing the ls -F command, you see the following line in the output:

-rw-r-xr-- 1 user1 root 0 Apr 29 15:40 file1

What does this mean?

User1 has read and write, members of the root group have read and execute, and all others have read permissions to the file.

After typing the command umask 731, the permissions on all subsequently created files and directories will be effected. In this case, what will be the permissions on all new files?

---r--rw-

You noticed a file in your home directory that has a + symbol appended to the mode. What does this indicate?

Additional entries exist within the ACL of the file that can be viewed using the getfacl command.

When you change the data in a file that is hard-linked to three others, __________.

the data in the file you modified as well as the data in all hard-linked files are modified because they share the same data and all have the same inode and file size

The command chmod 317 file1 would produce which of the following lines in the ls command?

--wx--xrwx 1 user1 root 0 Apr 29 15:40 file1

Which of the following commands will change the user ownership and group ownership of file1 to user1 and root, respectively?

chown user1:root file1

What does the /var directory contain?

spools and log files

What does the mv command do? (Choose all that apply.)

1. It moves a directory.
2. It moves a file.

A file has the following permissions r----x-w-. The command chmod 143 would have the same effect as the command _________. (Choose all that apply.)

chmod u=x,g=r,o=wx file1

The which command _________________.

searches for a file only in directories that are in the PATH variable

Hard links need to reside on the same filesystem as the target, whereas symbolic links need not be on the same filesystem as the target. True or False?

True

When applied to a directory, the SGID special permission____________________.

causes all new files created in the directory to have the same group membership as the directory and not the entity that created them

Which command do you use to rename files and directories?

mv

What are the three standard Linux permissions?

execute, read, write

Given the following output from the ls command, how many files are linked with file1?

drwxr-xr-x 3 root root 4096 Apr 8 07:12 Desktop
-rw-r--r-- 3 root root 282 Apr 29 22:06 file1
-rw-r--r-- 1 root root 282 Apr 29 22:06 file2
-rw-r--r-- 4 root root 282 Apr 29 22:06 file3
-rw-r--r-- 2 root root 282 Apr 29 22:06 file4
-rw-r--r-- 1 root root 282 Apr 29 22:06 file5
-rw-r--r-- 1 user1 sys 282 Apr 29 22:06 file6

two

Only the root user can modify a file that has the immutable attribute set. True or False?

False

Lynn runs the locate command and the results include many files from a directory that she doesn't want to include in her search. Which of the following files could Lynn modify so that the locate command no longer includes those results?

/etc/updatedb.conf

(The locate command uses the configuration file located at /etc/updated.conf.)

Mindy wants to create a new subdirectory at ~/2019projects/projectx/projectplans to start storing the initial project plans for projectx. However, this is the first project she has worked on in 2019 and the 2019projects directory does not exist yet. Which of the following commands will create the higher level directories if they do not already exist?

mkdir -p ~/2019projects/project/projectplans

(The -p option will create parent directories when they do not already exist.)

Which of the following commands can be used to update the last modified timestamp on a file, or if the file specified does not exist will create the file?

touch file.txt

(The touch command will update the last modified date on a file when used on a file that exists. When used on a file that does not exist, it will create a blank file.)

Which of the following commands will delete a directory and all of the files contained within it? (Choose all that apply.)

rm -rf olddir

(The -r option for the rm command will recursively delete directories as well as any subdirectories contained within them, as well as files contained in any of those directories or subdirectories. The -f option is to force delete them without asking for confirmation on each file or subdirectory.)

Which of the following umask settings will result in new files receiving the default permissions -rw-------?

0177

(If the x (1) for user, rwx (7) for group, and rwx (7) for others is masked off, the default permissions should be -rw-------.)

What would be the result of running the command chown :root file1.txt

This would set the group ownership of file1 to root.

(The correct syntax is chown user:group filename. The user and group are both individually optional. You can specify one, the other, or both.)

Which of the following permissions would show for a symbolic link when displayed with the ls -l command?

lrwxrwxrwx

(A symbolic link will have the first letter as a lowercase l with the read, write, and execute bits set for user, group, and others.)

Which of the following commands will create a symbolic link named foo.txt to an original file named bar.txt

ln -s bar.txt foo.txt

(The -s option will create a symbolic link, not a hard link.)

Sets found in the same folder

CompTIA Linux+ (XKO-004) Pre-Assessment Quiz - [LI…

10 terms

Jamie_Holliday8

LPIC-1 (101-500) Pre-Assessment Quiz - [LINUX Syst…

10 terms

Jamie_Holliday8

LPIC-1 (102-500) Pre-Assessment Quiz - [LINUX Syst…

10 terms

Jamie_Holliday8

Introduction to Linux (review questions) - [LINUX…

28 terms

Jamie_Holliday8

Other sets by this creator

Hands-On Server 2019 Post-Assessment Quiz Review

60 terms

Jamie_Holliday8

Module 12 Review - [Systems and Procedures]

10 terms

Jamie_Holliday8

Module 11 Review - [Systems and Procedures]

10 terms

Jamie_Holliday8

Module 10 Review - [Systems and Procedures]

10 terms

Jamie_Holliday8

Other Quizlet sets

P335: Questions from Quizzes 1-3

26 terms

iclarke86

WKU CIS PIG Test

30 terms

Chloe_Elle27

Pharm 545- test 1

37 terms

jensesie000PLUS

Business stat final

67 terms

larsenp1117PLUS

Which of the following commands is used to change the ownership and primary group?

The chown command allows you to change the user and/or group ownership of a given file, directory, or symbolic link. In Linux, all files are associated with an owner and a group and assigned with permission access rights for the file owner, the group members, and others.

Which of the following commands will delete a directory and all of the files contained within it quizlet?

The -r option for the rm command will recursively delete directories as well as any subdirectories contained within them, as well as files contained in any of those directories or subdirectories.

What command is used to change the owner the group and both for a file or a directory quizlet?

The chown command changes the owner assigned to a file.

What command can you use to change the owner assigned to a file?

How to Change the Owner of a File.
Become superuser or assume an equivalent role..
Change the owner of a file by using the chown command. # chown new-owner filename. new-owner. Specifies the user name or UID of the new owner of the file or directory. filename. ... .
Verify that the owner of the file has changed. # ls -l filename..