Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Programming»Bash Shell»How to change output Text color in Linux Shell

    How to change output Text color in Linux Shell

    RahulBy RahulNovember 15, 20141 Min Read


    # echo -e “e[0;31mText in Red Colore[0m”


    The Above commands are showing to set foreground ( Text ) color of output on Linux bash shell. The output of above command will be in red color. There are many other colors available which you can use defined as below. Just replace “0;31” with other color values in above text.

    Foreground ( Text ) Color’s:

       Black        0;30
       Red          0;31
       Green        0;32
       Yellow       0;33
       Blue         0;34
       Purple       0;35
       Cyan         0;36
       White        0;37
    
       Reset Text Color   0m
    

    Use following codes to show text in Bold with same colors.

       Black        1;30
       Red          1;31
       Green        1;32
       Yellow       1;33
       Blue         1;34
       Purple       1;35
       Cyan         1;36
       White        1;37
    
    bash color output shell
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Use Newline character ( \n ) in Bash Shell
    Next Article How to change Background Color of Text in Linux Shell

    Related Posts

    How to Backup Website to Amazon S3 using Shell Script

    Updated:March 24, 20222 Mins Read

    How to Search Recently Modified Files in Linux

    2 Mins Read

    Bash Printf Command

    Updated:December 23, 20212 Mins Read

    Bash Sequence Expression (Define Range)

    Updated:January 12, 20222 Mins Read

    Creating Menu in Shell Script (Linux Select Command)

    Updated:May 31, 20222 Mins Read

    (Resolved) -bash: /bin/mv: Argument list too long

    Updated:January 13, 20222 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    • What is difference between var, let and const in JavaScript?
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.