Jump to content

User Scripts examples: Difference between revisions

Line 169: Line 169:




'''4.''' To edit the filename, use '''vi <filename>.sh'''. Press '''I'''. To save and exit, '''Press Esc''' then ''':x''' or to exit without saving, '''Press Esc''' then ''':q!'''.
'''4.''' To edit the filename, use <code><span class="highlight">vi <filename>.sh</span></code>. Press '''I'''. To save and exit, '''Press Esc''' then ''':x''' or to exit without saving, '''Press Esc''' then ''':q!'''.




Line 175: Line 175:




'''5.''' After editing, save then run command '''chmod +x <filename>''' to make the script executable.
'''5.''' After editing, save then run command <code><span class="highlight">chmod +x <filename></span></code> to make the script executable.