Skip survey header

Linux+ Practice Quiz: XK0-005 Quiz 19

Enjoy the following 10-question quiz from TestOut.

1. Which of the following files could you use to create aliases that are applied when a specific user starts a bash session? (Choose two)
2. Which of the following commands stores the output of the ls -a command in a shell variable named allfiles?
3. Which of the following commands changes the /home/gshants/smile file's modification and last accessed times to the current time?
4. Leroy tries to copy some files to an ext3 volume and receives the following error:

"No space left on device."

Leroy executes the df command and determines that there is sufficient space to copy the files. He also verifies that he has permission to copy the files. Which of the following BEST describes Leroy's problem?
5. You want to change the name of a partition on the sdc storage device. You have already entered gdisk /dev/sdc to begin the editing process. Which of the following gdisk options can you enter to change the partition name?
6. You want to create a standard Linux partition on your new hard drive that starts at 1 GB and ends at 21 GB. Which of the following commands should you enter to create the new partition?
7. You are requested to help a user who reports that they have run out of local storage space. You go to the user's system and log in as the root user.

Which of the following commands will display the available disk space on all partitions? (Choose two)
8. Which of the following commands allows you to use an alternative superblock when the primary superblock has been corrupted?
9. You suspect your /dev/sda3 partition is in need of repair. Which of the following e2fsck options will repair the errors without any interaction from you?
10. You have an XFS file system in your Linux system represented by /dev/sdb1. You need to copy all the filenames on the drive to the /reviewxfs file. You must be able to read the filenames in the /reviewxfs file.

Which of the following commands should you use?
This free quiz was provided by: