User Tools

Site Tools


ops102:bash_scripting_1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ops102:bash_scripting_1 [2025/03/08 03:05] – [Quoting] chrisops102:bash_scripting_1 [2025/03/11 15:11] (current) chris
Line 38: Line 38:
   The current date and time is:   The current date and time is:
   Sat Mar  6 12:03:32 EST 2038   Sat Mar  6 12:03:32 EST 2038
 +
 +===== Comments =====
 +
 +A comment in a bash script starts with a sharp symbol (#) and is ignored by the shell interpreter:
 +
 +<code># test script #1
 +# written by Jason Bourne</code>
 +
 +A comment may also be just one portion of a line:
 +
 +<code>cd - # change to the user's previous working directory</code>
 +
 +Note that a shbang line is a comment from the point of view of the shell interpreter -- it's there for the kernel to use, not the shell!
  
 ===== Variables ===== ===== Variables =====
ops102/bash_scripting_1.txt · Last modified: 2025/03/11 15:11 by chris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki