[Contents] [Prev] [Next] [Index] [Report an Error]

Using the JUNOS Comment Character #

The comment character in the JUNOS software enables you to copy operational mode commands that include comments from a file and paste them into the CLI. A pound sign (#) at the beginning of the command-line indicates a comment line. This is useful for describing frequently used operational mode commands; for example, a user’s work instructions on how to monitor the network. To add a comment to a command file, the first character of the line must be #. When you start a command with #, the rest of the line is disregarded by the JUNOS software.

To add comments in operational mode, start with a # and end with a new line (carriage return):

user@host> # comment-string

comment-string is the text of the comment. The comment text can be any length, but each comment line must begin with a #.

Related Topics


[Contents] [Prev] [Next] [Index] [Report an Error]