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
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.