Open main menu

CDOT Wiki β

Changes

Tutorial2: Unix / Linux File Management

6 bytes added, 18:56, 8 January 2020
Part 1: Creating Text Files Using Nano and Vi Text Editors
# Create the following directory structure (displayed on the right side) by issuing a single Linux command:<br><br>
# Issue the following Linux command to edit a text file called '''mytext.txt''' in the '''linux/practice''' directory:<br><span style="color:blue;font-weight:bold;font-family:courier;">nano uli101/practice/mytext.txt</span><br><br>'''NOTE:''' When using the Nano text editor, you are placed in INPUT mode, so you can enter text immediately.<br><br>
# Enter the lines shown in the other diagram of the nano text editor on the right side.<br><br>'''NOTE: ''' The '''^''' symbol represents press the '''&lt;ctrl&gt;''' followed by a character.<br><br>
# To '''save''' your editing session, press: <span style="color:blue;font-weight:bold;font-family:courier;">&lt;ctrl&gt;&lt;x&gt;</span><br><br>
# You will be prompted to modify your file: type the letter '''y''' for yes.<br><br>
13,420
edits