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