answersLogoWhite

0

echo is often used as an easy way of printing text, or displaying the value of a system variable.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How do you display the values in shell script?

Use the builtin 'echo' or 'print' command followed by the shell variable name, which will substitute the value when printed/displayed.


What is the Command to display the default shell in unix?

There isn't a concept of a 'default' shell in Unix; you may have a login shell specified by the system administrator for use when you log in. Although it isn't a fool-proof way to find your shell, you could use the command: echo $SHELL or use the 'finger' command to see what your default login shell environment is. You could also 'grep' for your information in the password file because the last field is your login environment shell.


How do you compile and run the shell programs through vi-editor in Linux?

You don't Shell files/programs are not compiled. If you want to run a process through 'vi' then use the ':!' 'ex' command to shell out and execute it.


Which Linux command shows which shell you are in?

to get the current shell :echo $0also Use the command ps with -p {pid} option, which selects the processes whose process ID numbers appear in pid. Use following command to find out what shell you are in:ps -p $$


Which command can increase the number of filehandles that programs can open in a shell?

Use the 'ulimit' command. However, some systems may cap it at a certain value so you may not be able to raise it.


How do you make a batch file that talks to you?

1. Click on the Start Menu 2. Click on the Run command 3. Type in: cmd 4. Type in: help This should help you a lot with commands. Use: help <command> for details on a certain command. Example: help echo Use the echo command to make the batch file talk. Example is: @echo echo "This is what they will see" Make sure to include the ""s.


Why do v use shells in unix?

A shell is a command interpreter. This is not limited to Unix. The programs COMMAND.COM or CMD.EXE are also shells in the DOS/Windows environments. The program EXPLORER.EXE is also a shell, though with a graphical interface.


What are the file commands of DOS?

Use the "dir" command (without the quotes) to see all files in the current directory. Use the "type" command (Just like before, no quotation marks.) followed by a file you want to look at to see the file's contents. Use the "echo" command (Okay, I think you get the point about the quotation marks now.) to print something to the screen. Not very useful. Is it? You can use the "echo" command to overwrite files too! For example, "echo Hello >> a.txt" will overwrite a.txt with the text "Hello." If a.txt does not exist, the echo command will create one.


What symbol repeats the last MS-DOS command?

Look into the FOR command. To repeat a command 10 times, we want to use this specific variation of the FOR command: FOR /L %variable IN (start,step,end) DO command [command-parameters] Example: Do the echo command on the values (1-10). FOR /L %i IN (1,1,10) DO echo %i


What is a shell program?

A shell program is a program that runs from the computer's command line. Although they were more common in older programs, some people still use them, as the are generally faster and and more minimalist than their graphical counterparts.


Shell script to find area of a circle?

To write a shell script to find the area of a circle, you can use the formula: area = π * radius^2. Here is an example shell script using the read command to input the radius from the user: #!/bin/bash echo "Enter the radius of the circle:" read radius area=$(echo "3.14159 * $radius * $radius" | bc) echo "The area of the circle with radius $radius is $area" This script first prompts the user to enter the radius, calculates the area using the formula, and then displays the result.


Why use cmd exe in windows xp?

its a command prompt shell, must be there if you want to use command prompt