AWS, Linux, and Vi

  • What does AWS stand for and what services does it provide?
  • What does VM stand for and what is a VM?
  • What is an Operating System?
  • Who created Linux?
  • What programs provide us a command prompt?
  • What program do we run from the command line in order to connect to our VMs?
  • What is a .pem file?
  • What 3 pieces of information are needed in order to connect to our VM using ssh?
  • What command can you use to print your working directory?
  • What command can you use to clear the screen?
  • What command can you use to list the contents of your working directory?
  • Many commands require a path as an argument. Name and define the two types of paths.
  • Suppose your working directory is /users/jane. List two ways to change your working directory to /users.
  • What command can you use to create in your working directory a directory named android_app?
  • Suppose a file named Poker.java exists in your working directory. What command can you use to rename the file to PokerGame.java?
  • Suppose your working directory is /home/jane and in it exists a file named Contacts.java. Suppose the directory /home/jane/csci105/contacts exists. What command can you use to move Contacts.java to /home/jane/csci105/contacts?
  • Suppose your working directory is /home/jane and in it exists a file named Contacts.java. Suppose the directory /home/jane/csci105/contacts exists. What command can you use to copy Contacts.java to /home/jane/csci105/contacts?
  • Suppose Bookmarks.java exists in your working directory. What command can you use to delete Bookmarks.java?
  • Suppose your working directory is /home/jane and it contains a subdirectory named practice. What command can you use to delete the directory named practice (assume it is empty).
  • What is vi?
  • What are the 2 modes in vi, what are they used for, and how do you toggle between them.
  • What vi command writes the contents of the edited file to the hard drive?
  • What vi command terminates vi?
  • What vi command cuts/yanks 2 lines of code?
  • What vi command pastes the code that is in the clipboard to the location of the cursor?
  • What vi command replaces the character at the location of the cursor?
  • What vi command deletes a single character?
  • What vi command deletes 2 lines of code?
  • What vi command moves the cursor to the 20th line of code?
  • What vi command moves the cursor to the end of the current line.
  • What vi command moves the cursor to the beginning of the current line.

© 2019 – 2020, Eric. All rights reserved.