Skip to content
Pass Any WGU OA Exam Now & Pay After You Pass. Contact Us!
  1. Home
  2. WGU Exams
  3. WGU D281
  4. Set 5
WGU D281 · Linux Foundations

WGU D281 Practice Questions – Set 5

50 multiple-choice questions with answers and detailed explanations. Untimed — choose an answer to check it instantly.

Question 1 of 50

Which Linux command is used to print the last 10 lines of a file?

Question 2 of 50

What does the tar command do in Linux?

Question 3 of 50

Which command is used to list open ports and network connections?

Question 4 of 50

What is the default text editor in most Linux distributions?

Question 5 of 50

How do you search for a pattern within files in Linux?

Question 6 of 50

Which command is used to modify the default gateway in Linux?

Question 7 of 50

What does the mv command do?

Question 8 of 50

Which of the following is a valid option for the cp command to copy directories recursively?

Question 9 of 50

Which of the following commands is used to display the system's IP routing table?

Question 10 of 50

What does the du -sh command display?

Question 11 of 50

Which command is used to terminate a process by specifying its PID?

Question 12 of 50

What does the ln -s command do in Linux?

Question 13 of 50

Which file contains system-wide environment variables in Linux?

Question 14 of 50

Which command is used to compress files using the gzip algorithm?

Question 15 of 50

What does the find command do in Linux?

Question 16 of 50

How can you change the password of a user account?

Question 17 of 50

Which command is used to show the current disk usage of directories and files?

Question 18 of 50

What does the sudo command allow?

Question 19 of 50

How do you view a file's permissions in Linux?

Question 20 of 50

What is the purpose of the passwd file in Linux?

Question 21 of 50

Which of the following commands is used to reboot the Linux system?

Question 22 of 50

Which command would you use to delete a directory that contains files?

Question 23 of 50

How do you create a new directory in Linux?

Question 24 of 50

Which command lists all active processes running on a Linux system?

Question 25 of 50

What does the locate command do?

Question 26 of 50

Which command is used to monitor system performance in real-time?

Question 27 of 50

Which command is used to set permissions on files or directories in Linux?

Question 28 of 50

How can you display the current users logged in to the system?

Question 29 of 50

Which command is used to extract files from a tar archive?

Question 30 of 50

Which command is used to print the path of the current directory?

Question 31 of 50

Which command displays the available disk space on mounted filesystems?

Question 32 of 50

Which file in Linux stores group information?

Question 33 of 50

How do you check system uptime in Linux?

Question 34 of 50

Which command is used to copy files and directories?

Question 35 of 50

What does the head command do in Linux?

Question 36 of 50

Which command is used to shut down a Linux system?

Question 37 of 50

How do you extract a .tar.gz file in Linux?

Question 38 of 50

What does the chmod 755 filename command do?

Question 39 of 50

Which command displays information about the current Linux distribution?

Question 40 of 50

How do you check memory usage in Linux?

Question 41 of 50

What does the df -h command display?

Question 42 of 50

Which command lists the contents of a directory?

Question 43 of 50

Which command is used to install software on a Debian-based system?

Question 44 of 50

What does the top command display in Linux?

Question 45 of 50

How do you display the contents of a file in Linux?

Question 46 of 50

Which file in Linux contains the system's hostname?

Question 47 of 50

How do you display the current time and date in Linux?

Question 48 of 50

Which command changes the ownership of a file?

Question 49 of 50

What does the ps -e command display?

Question 50 of 50

How do you display the current shell in use?

Set 5 complete

You scored 0%

0 correct out of 0 answered (50 questions in this set).

Struggling with WGU D281?

If this exam is giving you a hard time, let us be your helping hand. Contact us, and we'll provide the assistance you need to pass and move forward.

Chat Now