{{위키데이터 속성 추적}}
{{소문자}}
{{소프트웨어 정보
| name                   = banner
| logo                   = 
| screenshot             = 
| screenshot size        = 
| caption                = 
| author                 = 
| developer              = 
| released               = 
| latest release version = 
| latest release date    = 
| operating system       = [[유닉스]] 및 [[유닉스 계열]]
| genre                  = [[명령어 (컴퓨팅)|명령어]]
| license                = 
| website                = 
}}
'''banner'''는 [[명령 줄 인터페이스|명령 줄 변수]]에 지정되는 텍스트를 대형 [[아스키 아트]] 버전의 텍스트로 출력시키는 [[유닉스]] 및 [[유닉스 계열]] [[운영 체제]]의 프로그램이다.

== 출력 예시 ==
터미널 지향 배너 프로그램에서:
<syntaxhighlight lang="bash">
 $ banner 'Hello!'
 #     #                                   ###
 #     #  ######  #       #        ####    ###
 #     #  #       #       #       #    #   ###
 #######  #####   #       #       #    #    #
 #     #  #       #       #       #    #
 #     #  #       #       #       #    #   ###
 #     #  ######  ######  ######   ####    ###
</syntaxhighlight>

[[BSD]] 및 파생판에서 흔히 볼 수 있는 프린터 지향 배너 프로그램의 한 문자:

<syntaxhighlight lang="bash">
 $ banner -w80 "a"
                          #####
                        #########
                     ###############        ###
                    ################      ######
                   ##################     ########
                   #####         #####    #########
                   ####           ####      ##  ###
                   ###            ####           ##
                   ###            ###            ##
                   ###            ###           ###
                    ####         ###           ####
                      #############################
                    ##############################
                   ##############################
                   ############################
                   ###########################
                   ###
                   #
                   #
</syntaxhighlight>

약 1000초의 지속적인 시각을 표시:{{r|group=lower-alpha|name=repeat|refn=
If the following code is not run on a [[Zsh]] shell then the repeat command needs to be defined,<ref name=zsh>{{웹 인용|last=Frankowski|first=Jędrzej|date=May 8, 2020|title=Linux Commands – Repeat a Command n Times|url=https://www.baeldung.com/linux/repeat-command|url-status=live|archive-url=https://web.archive.org/web/20211119163230/https://www.baeldung.com/linux/repeat-command|archive-date=November 19, 2021|access-date=January 22, 2022}}</ref> as in this code:
<syntaxhighlight lang="bash">
function repeat(){
for ((i=0;i<$1;i++)); do
   eval ${*:2}
}
</syntaxhighlight>
or that definition can be avoided by replacing the repeat command with a [[While loop|while loop]], like this:
<syntaxhighlight lang="bash">$ i=0 ; while (($i<1000)); do sh -c '( clear ; date +" %H.%M.%S" | xargs banner ; sleep 1 ; ((i=$i+1)))' ; done</syntaxhighlight>
}}<ref group=lower-alpha name=figlet>It can also be done using [[FIGlet]] utility with the substitution of <code>banner</code> with <code>figlet -f banner</code></ref>
<syntaxhighlight lang="bash">
 $ repeat 1000 sh -c '( clear ; date +" %H.%M.%S" | xargs banner ; sleep 1)'

   #     #####             #     #####          ####### #######
  ##    #     #           ##    #     #         #       #
 # #    #                # #          #         #       #
   #    ######             #     #####          ######  ######
   #    #     #   ###      #    #         ###         #       #
   #    #     #   ###      #    #         ###   #     # #     #
 #####   #####    ###    #####  #######   ###    #####   #####
</syntaxhighlight>

== 각주 ==
{{내용주}}

== 외부 링크 ==
* {{man|6|banner|4.2BSD}}
* {{man|6|banner|FreeBSD}}

{{유닉스 명령어}}

[[분류:유닉스 텍스트 처리 유틸리티]]