bash comment vi code example
Example 1: how to add comments in terminal ubuntu
#!/bin/bash
# By adding hash(#) before line it will takes it as comment.
Example 2: vim comment block
#for commenting:
Press ESC
:[StartNumber],[ENDNumber]s/^/#
:66,70s/^/#
for uncommenting:
Press ESC
:[StartNumber],[ENDNumber]s/^#/
:66,70s/^#/
#PS: To see line numbers:
Pres ESC
:set number