Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 1.54 KB

File metadata and controls

24 lines (21 loc) · 1.54 KB

PE 3 (references and bash scripting)

Be sure to include your name in all files that you turn in!

  1. Complete pe3_references.cpp.
  2. Answer the following questions in a file titled pe3_bash.txt.
    1. What is the bash command to show your terminal's working directory (current location)?
    2. How would you create an empty file called empty.txt from the command line?
    3. Using the echo command and > or >>, what is the command to write your name to empty.txt?
    4. What is the bash command to rename that file to notempty.txt?
    5. What is the bash command to create a directory named pe3_bash?
    6. What is the command to move your terminal's working directory to pe3_bash?
    7. From the pe3_bash directory, how would you create a new directory, pe3_bash_number2 that has the same parent directory as pe3_bash?
    8. What is the command to move from pe3_bash to pe3_bash_number2 (use only one command)?
    9. What does pressing the up arrow key do?
    10. What does pressing the down arrow key do?
    11. What does pressing ctrl+r do?
    12. What are two different text editors that you can access from the command line? (Answer the following questions for each editor that you have chosen.)
      1. What command do you use to open a file with this editor?
      2. What command do you use to save a file while using this editor?
      3. What command do you use to exit this editor?
    13. What are two reasons you might want to use the text editors listed above?