Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to change colors in terminal linux outputs

#!/bin/sh
RED_ON_GREEN='33[31;42m'
RESET='33[0m'
echo "${RED_ON_GREEN}Hello world${RESET}"
Comment

how to change colors in terminal linux outputs

#!/bin/sh
MOVE_UP=`tput cuu 1`
CLEAR_LINE=`tput el 1`
BOLD=`tput bold`
UNDERLINE=`tput smul`
RESET=`tput sgr0`
echo "This is normal text"
sleep 1
echo "${MOVE_UP}${CLEAR_LINE}${BOLD}This is bolded"
sleep 1
echo "${MOVE_UP}${CLEAR_LINE}${UNDERLINE}This is underlined${RESET}"
Comment

how to change colors in terminal linux outputs

#!/bin/sh
RED_FG=`tput setaf 1`
GREEN_BG=`tput setab 2`
RESET=`tput sgr0`
echo "${RED_FG}${GREEN_BG}Hello world${RESET}"
Comment

PREVIOUS NEXT
Code Example
Shell :: deepstream boost jetson nano clock 
Shell :: Get CB Defense registry 
Shell :: adminer installieren welcher ordner 
Shell :: yes/no dialog shell 
Shell :: centos 8 gui 2 
Shell :: manjaro mirrolist 
Shell :: django flush sessions on server startup 
Shell :: pacman manager package invalid problem 
Shell :: dos search include subdirectories 
Shell :: Não é possível excluir uma partição protegida sem o parâmetro de proteção forçada definido. 
Shell :: drush confi set with laguage 
Shell :: linux inhalt einer textdatei anzeigen 
Shell :: how to ushow to add hadolint as a pre-commit hook 
Shell :: createing strong swan firewall centos 7 
Shell :: windows server 2016 powershell override password complexity 
Shell :: directory listing 
Shell :: reduce directory display linux 
Shell :: openssl new certificate one line 
Shell :: grep two different ocurrencies 
Shell :: Oops… I committed all those changes to the master branch 
Shell :: ibus-daemon is not running 
Shell :: Écrire un script qui compte le nombre de fichiers et de répertoires dans le répertoire courant en llinux 
Shell :: using httrack on linux command line 
Shell :: kubernetes pending loadballancer 
Shell :: invert grep 
Shell :: run camunda in linux mint 
Shell :: sed all except last 
Shell :: vi is my terminal froze? 
Shell :: Rename all items in a directory to lower case 
Shell :: how to install olderr ersion of python 3.x 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =