3 Linux Tips to Display Message in Terminal


 3 Linux Tips to Display Message in Terminal

In this blog, you will learn 3 linux tips to display the message in linux terminal. This is done by using three commands. They are

  1. using echo command
  2. using printf command
  3. using read command with option -p

1. using echo command

  • This popular command is mainly used to show the message on terminal.
  • This will take message as an input and display the input on terminal.
Example - echo "Hello World"






2. using printf command

  • This command is optional for echo command
  • This will take message as an input and display the input on terminal.
Example - printf "Hello World\n"








3. using read command

  • This optional command is used to print the message with help of special option -p. p stands for printing the message
  • This will take message as an input and display the input on terminal.
Example - read -p "Good Morning"



Comments

Popular posts from this blog

Vivo V30 Pro 5G

Xiaomi 14 - Features, Price

Oppo F25 Pro 5G Review - Features, Price