Open main menu

CDOT Wiki β

Changes

Tutorial2: Unix / Linux File Management

306 bytes added, 18:50, 8 January 2020
Part 1: Creating Text Files Using Nano and Vi Text Editors
# 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># The name of the file will be displayed: press ENTER.<br><br>NOTE: This prompt for file name allows you to change the name of the file if you wish. By pressing ENTER, it will accept the default filename.<br><br>#
===Part 2: Viewing / Manipulating Text Files ===
13,420
edits