Press the ESC key and enter :wq to save and exit the file.Ĭopy the file new_myfile.txt to the practice directory by entering the command: INSERT should appear at the bottom of the vi editor.Įnter the text: Test text for my new_myfile.txt Press the i key to enter insert mode in vi. ![]() Use the vi editor to open the file new_myfile.txt for editing by entering the command vi new_myfile.txt For the rest of this lab assume you must press the enter key to execute the command.Ĭreate a new file in the wadams home directory by entering the command touch new_myfile.txtĮnter the command ls -l to see that the file new_myfile.txt is created. For the first three commands above the Enter command is included. With every command it is necessary to press the Enter Key to execute the command. Confirm by typing y or yes and then press the Enter KeyĮnter the command ls -l and then press Enter Key to see that the file old_myfile.txt is removed from the directory. You are currently in the wadams home directory.Įnter the command ls -l and then press Enter Key to see a listing of the files in the directory.Įnter the command rm old_myfile.txt and then press the Enter Key to delete the file old_myfile.txt. It is also critical to insert the appropriate spaces in commands as well as case ![]() ![]() Many students struggle with this lab because some of the instructions include punctuation (periods “.”) which are not part of the Linux commands, and pressing the Enter Key after typing a command is often left out. Category: EET 131 1.4.5 Using Shell Commands
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |