Be sure to include your name in all files that you turn in!
- Complete
pe3_references.cpp
. - Answer the following questions in a file titled
pe3_bash.txt
.- What is the bash command to show your terminal's working directory (current location)?
- How would you create an empty file called
empty.txt
from the command line? - Using the
echo
command and>
or>>
, what is the command to write your name toempty.txt
? - What is the bash command to rename that file to
notempty.txt
? - What is the bash command to create a directory named
pe3_bash
? - What is the command to move your terminal's working directory to
pe3_bash
? - From the
pe3_bash
directory, how would you create a new directory,pe3_bash_number2
that has the same parent directory aspe3_bash
? - What is the command to move from
pe3_bash
tope3_bash_number2
(use only one command)? - What does pressing the up arrow key do?
- What does pressing the down arrow key do?
- What does pressing ctrl+r do?
- 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.)
- What command do you use to open a file with this editor?
- What command do you use to save a file while using this editor?
- What command do you use to exit this editor?
- What are two reasons you might want to use the text editors listed above?