CompTIA LINUX+: Devices and File Systems Flashcards
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
1) C
2) B
3) A
Write the command to change ownership to tbrown for all files ending in .xlsx in the finance directory.
linux-oro0:/finance # ________
chown tbrown *.xlsx
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
B
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
B
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
Complete the code to find files owned by user jsmith in the financedocs directory that was created in the last 15 minutes.
find / financedocs _______
find /financedocs -user jsmith -mmin -15????
Complete the code to find files owned by user jsmith in the financedocs directory that was created in the last 15 minutes.
find / financedocs _______
-user jsmith -mmin -15????
Complete the code to find files owned by user jsmith in the financedocs directory that was created in the last 15 minutes.
find / financedocs _______
-user jsmith -cmin -15
Complete the code to see and edit the current disk blocks being consumed by files owned by the group financegroup.
______ financegroup
edqouta -
Complete the code to see and edit the current disk blocks being consumed by files owned by the group financegroup.
______ financegroup
edquota -g
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
-o remount
Complete the code to omit .doc files from a du calculation.
Linux-oro0:/finddocs # du ______“*.doc”
–exclude=
Complete the code to omit .doc files from a du calculation.
Linux-oro0:/finddocs # du ______“*.doc”
–exclude=
Complete the command to create a Linux swap partition on the drive /dev/sdb4.
Linux-oro0:~# _____ /dev/sdb4
mkswap
Complete the command to create a Linux swap partition on the drive /dev/sdb4.
Linux-oro0:~# _____ /dev/sdb4
mkswap
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
1) A
2) B
3) C
4) D
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
B
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
Complete the command to change the group ownership of the file salesresults.txt to the fingroup.
linux-oro0:/finance # ______ salesresults.txt
chown :fingroup
Complete the command to change the group ownership of the file salesresults.txt to the fingroup.
linux-oro0:/finance # ______ salesresults.txt
chown :fingroup
In which subdirectory does the Linux kernel reside?
A) /dev
B) /boot
C) / (filesystem root)
B
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
C