While configuring security groups, how do you connect all IPs to your cloud
server Right Ans - 0.0.0.0/0
What is an important requirement to SSH into your cloud server? Right Ans
- A key pair
whoami Right Ans - Displays the user you are currently logged in as
Ip addr show Right Ans - Displays ip address information
free -m Right Ans - Displays free and used memory in the system (-m flag
indicates memory in MB)
df -h Right Ans - view device free space in human readable form
find mnt Right Ans - Displays file systems mounted on the server
What is the bash shell? Right Ans - a command line interpreter that
processes Linux commands
What provides the capability to tab x2 for more command options? Right
Ans - The bash shell
What partition can you not boot from? Right Ans - LVM (you need to boot
from a standard partition)
How would you disable the auto lock feature? Right Ans - Settings -> power
-> blankscreen -> never
What are the command line symbols to show a normal user and admin?
Right Ans - $= normal user #= admin
How do you login to root? Right Ans - su -
How do you run a command as root? Right Ans - sudo (command)
,What program is used to deploy cloud servers and what are instances?
Right Ans - EC2 and instances are the amount of servers
history Right Ans - Displays all commands previously ran
!2 Right Ans - Runs the second command displayed when you run the
history command
!a Right Ans - Runs the command that starts with an a ,when running the
history command
CTRL + r Right Ans - Re-runs a command that you previously typed.
ps aux Right Ans - Displays all processes running
How do you display the word count for a commands output? Right Ans -
(Command) | wc
How do you redirect the commands output to a specific file path? Right Ans
- > (>> redirects without overriding existing information)
How do you redirect the commands error output and which file path deletes
files sent to it? Right Ans - 2> /dev/null
What is an example of an environment variable that changes the bash shell?
Right Ans - s_colors
alias g=grep Right Ans - Creates a shortcut for the command so you can
now type g to use the command
Standard Input (STOIN), Standard Output (STOUT), and Standard Error
(STOERR) Right Ans - You (STOIN) -> Command -> Terminal (STOUT)
For STOERR the default is STOERR -> Terminal (using 2> redirects STOERR)
who Right Ans - Displays users currently connected to the server
grep -R student /etc Right Ans - grep: searches for files/directories -R:
Looks for sub-directories student: searches for the word student /etc:
searches in /etc
, ls -l /etc | grep host Right Ans - lists files that only have host in the name
What is FHS? Right Ans - Filesystem Hierarchy Standard
defines structure and contents.
The boot directory Right Ans - files needed to boot the system. Ex: vmlinuz-
4.18.0-32 is the kernel (allows the software to talk to the hardware).
The dev directory Right Ans - contains device file for the system to talk to
certain hardware
The etc directoy Right Ans - configuration files. Ex: user password file
home directory Right Ans - individual user directories
usr directory Right Ans - binaries, commands, and software executables
var directory Right Ans - used to write dynamic data. Ex: log files
While in the manual pages how do you search, go to the next result, and go to
the bottom of the manual page. Right Ans - / (word) n G
How many manual page sections are there and what are the 3 important
ones? Right Ans - 9 1 = executable programs, 5 = file formats, and 8 =
system admin commands.
Where could you find related commands in the man pages? Right Ans - See
also
If you are using the man -k commands and are receiving a "nothing
appropriate" error, what command do you use? Right Ans - mandb
man -k user | grep 8 Right Ans - searches man pages for the word user but
only in section 8
What is the minimum amount of information that you need to provide during
Linux installation? Right Ans - Installation destination and the root
password.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller LeCrae. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $14.99. You're not tied to anything after your purchase.