• Archives
  • All Categories
  • All Tags

comment

1 article

bash comment database date datetime deluser df dictionary directory disk dmesg du file for host ip kernel len linux list log mkdir mysql nano network ping postgresql python rm rmdir route sed text editor time timestamp tmux traceroute tuple user userdel vim while
How to Comment in Bash

How to Comment in Bash

Monday, Aug 12, 2024

In Bash, comments are created using the # symbol. Anything following # on the same line is considered a comment and is ignored by the shell. This means the # sign prevents commands in the start after its occurence. Here are 20 examples of how to use comments in Bash scripts: Bash comments are very usefull to describe code. Add some notes about code or something else. Single-line comment: The most basic usage for the bash comment is like below.
@ İsmail Baydan
4 minutes read

© 2024 Linux and Python Tutorials

🌱 Powered by Hugo with theme Dream.