Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Using the Junos OS CLI Comment Character # for Operational Mode Commands

    The comment character in Junos OS 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 Junos OS.

    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 #.

    Published: 2012-11-27