CompTIA LINUX+: Devices and File Systems Flashcards

1
Q

Match the description to the file management option.

1) Copies the data block and creates a new inode
2) Doesn’t duplicate data blocks or create a new inode
3) Creates a separate inode but doesn’t contain the data blocks themselves

A) Soft Link

B) Hard Link

C) Copy

A

1) C
2) B
3) A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Write the command to change ownership to tbrown for all files ending in .xlsx in the finance directory.

linux-oro0:/finance # ________

A

chown tbrown *.xlsx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which option will complete the command to set the group ID bit for mycode. sh?

chmod _____ mycode.sh

A) u+s

B) g+s

C) g-u

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which option will create a hard link to the groupcontact. xlsx file, located in the /financedocs directory, on the root of the filesystem?

A) ln —s /financedocs/groupcontact.xlsx /groupcontact_BAK.xlsx

B) In /financedocs/groupcontact.xlsx / groupcontact_BAK. xlsx

C) ls —h /financedocs/groupcontact.xlsx /groupcontact_BAK.xlsx

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which option will mount the disk /dev/sdb2 to the subdirectory setting /maintmount as the mount point subdirectory?

A) mount /dev/sdb2 /maimnount

B) mount- /maimnount /dev/edb2

C) mount /dev/sdb2 cd mainmount

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Complete the code to find files owned by user jsmith in the financedocs directory that was created in the last 15 minutes.

find / financedocs _______

A

find /financedocs -user jsmith -mmin -15????

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Complete the code to find files owned by user jsmith in the financedocs directory that was created in the last 15 minutes.

find / financedocs _______

A

-user jsmith -mmin -15????

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Complete the code to find files owned by user jsmith in the financedocs directory that was created in the last 15 minutes.

find / financedocs _______

A

-user jsmith -cmin -15

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Complete the code to see and edit the current disk blocks being consumed by files owned by the group financegroup.

______ financegroup

A

edqouta -

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Complete the code to see and edit the current disk blocks being consumed by files owned by the group financegroup.

______ financegroup

A

edquota -g

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

You’ve changed the disk quota settings is the fstab file for a disk that is currently mounted. Complete the code to remount the disk to the location /mainmount.

mount ______ /mainmount

A

-o remount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Complete the code to omit .doc files from a du calculation.

Linux-oro0:/finddocs # du ______“*.doc”

A

–exclude=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Complete the code to omit .doc files from a du calculation.

Linux-oro0:/finddocs # du ______“*.doc”

A

–exclude=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Complete the command to create a Linux swap partition on the drive /dev/sdb4.

Linux-oro0:~# _____ /dev/sdb4

A

mkswap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Complete the command to create a Linux swap partition on the drive /dev/sdb4.

Linux-oro0:~# _____ /dev/sdb4

A

mkswap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Match the file type codes to their descriptions.

1) l
2) s
3) -
4) p

A) Symbolic Link

B) Socket

C) Normal data or executable file

D) Named pipe

A

1) A
2) B
3) C
4) D

17
Q

You’re working in the parted interactive command prompt working on disk /dev/sdc and you want to change the size of the second partition on the disk.

Which option provides the code to do this?

A) resize ext2

B) resize 2

C) resize /dev/sdc

A

B

18
Q

You want to get a list of deleted files from your filesystem. How would you being to do this?

A) Using the debugfs interactive command prompt

B) Using the e2fsck command

C) By running fsck

A

A

19
Q

Complete the command to change the group ownership of the file salesresults.txt to the fingroup.

linux-oro0:/finance # ______ salesresults.txt

A

chown :fingroup

20
Q

Complete the command to change the group ownership of the file salesresults.txt to the fingroup.

linux-oro0:/finance # ______ salesresults.txt

A

chown :fingroup

21
Q

In which subdirectory does the Linux kernel reside?

A) /dev

B) /boot

C) / (filesystem root)

A

B

22
Q

You want to allow other users to access a specific directory, but you don’t want to reset the owning group or permissions.

What’s the best option file management option in this case?

A) Copy

B) Soft link

C) Hard link

A

C