Answers 2023/2024
If you wanted to disable a second network interference in Linux what command would you enter at the
shell? - ANSWER-ifdown eth1
You have been editing a configuration file using vi. You realize that you've made many mistakes and need
to quit without saving the changes so that you can start over. Which command will allow you to do this?
- ANSWER-:q! Or Q bang
What directory would the ~ character represent? - ANSWER-The home directory of the currently logged
in user.
What is the default shell for most Linux distributions - ANSWER-Bash
You need to troubleshoot a hardware issue. Which command would let you view the kernel ring buffer to
see what hardware was just added? - ANSWER-dmesg | less (driver message)
Which of the following sections give a brief review of the syntax used for a particular command or utility
within a man page? - ANSWER-SYNOPSIS
In which directory could you add files so that a newly created user will automatically have them when
they first log in? - ANSWER-/etc/skel
Which of the following provides binary files containing prewritten code elements or interfaces that
programmers can call when writing Linux programs? - ANSWER-Libraries
You are running a ping command to see if a particular host is set up. How would you specify to the ping
command that only five packets get sent to the remote host? - ANSWER-ping -c 5 host.example.com
, You need to verify that a remote host with a hostname of dns2.linuxacademy.com is up and running.
Which of the following commands would you enter at the shell prompt to do this? - ANSWER-ping
dns2.linuxacademy.com
While using vi to edit a file in command mode, you try to use the BACKSPACE key to delete a word, but
nothing happens. What's wrong? - ANSWER-You have to switch to insert mode.
Which command would uncompress the contents in the file 'important.bz2' - ANSWER-bunzip2
How would you add a new user account to a system? - ANSWER-useradd newguy
Which software development model is considered to be less structured than the others? - ANSWER-
Bazaar
Which command in a script would display the text "hello world" to the screen, followed by a new line? -
ANSWER-Echo "hello world"
Which file(s) are used for DNS resolution? - ANSWER-/etc/hosts and /etc/resolv.conf
An application has the following permissions set on it:
Rw-r—r—
Yet it does not run. Why is that? - ANSWER-There is no execute permission set
What protocol is used by network programs/applications that need very low latency and, therefore, can
tolerate a degree of unreliability? - ANSWER-User Datagram Protocol
How would you set permissions on a newly created script so that it could be executed? - ANSWER-
Chmod u+x script.sh
What is the proper syntax for creating a parent directory, followed by a child subdirectory? - ANSWER-
mkdir -p dir1/dir2