answersLogoWhite

0


Best Answer

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.

User Avatar

Casimir Keebler

Lvl 10
2y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

A shell script is a text file that may be executed by the "shell", also commonly known as a "command prompt" (Microsoft), "shell" (Linux), or "terminal" (Unix/Linux). It may invoke system applications, user applications, or even special shell commands that may only work within shell programming (such as Microsoft's GOTO shell command). Shell scripts are often used to customize the login experience, logout experience, operating environment, loading default background applications, and so on. They may also be used to avoid having to repeatedly enter a long chain of commands, such as the steps to compile complex source code or perform a complex set of steps for backing up data.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a shell script in computer programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the importance of Linux shell?

Linux shell is a programming language. its fully different from others progrmming language. the script which is used in Linux quite tough to remember if we comparison to other programming laguages.


What is perl good for?

The Perl Programming system is used to script language for computer tasks or programs. It can write scripts for science, finance, graphics and system administration programs.


IN which Programming language is Cisco IOS made?

Python script?


When might it be necessary or advisable to write a shell script instead of a shell function?

A shell function will do nothing unless it is explicitly called by other code, typically in a shell script. A shell script is a runnable, executable process, which can call other shell scripts and/or functions. The question might be worded backwards - it is necessary to write shell functions for shell scripts when certain logical functionality is required to be performed multiple times. Consider a shell function equivalent to a program subroutine - they operate the same way.


What are the two ways you can execute a shell script when you do not have execute access permission for the file containing the script?

To do this you will need at least read permission; if you don't have that then you will not be able to execute the script at all. One way is to copy the script to your directory and add the execute permission. The second way is to call the correct shell interpreter program directly, as in: ksh /some/file/shell

Related questions

What is the importance of Linux shell?

Linux shell is a programming language. its fully different from others progrmming language. the script which is used in Linux quite tough to remember if we comparison to other programming laguages.


Where can someone go to learn more about shell script?

Linux shell scripting tutorials are available as pdf files or videos where a lecturer speaks over a video of a computer console. This is where you can watch someone code in the bash environment and follow along.


What is the command to execute a shell script?

If the shell script is readable and executable then to execute it just type the name of the shell script file. Otherwise, you can explicity call a shell interpreter to run the file as a shell script, i.e., ksh myfile


How is computer programming is beneficial?

Knowing some basic knowledge of computer programming is useful for when you want to repeat tedious tasks. Instead of doing the same action over and over, you can write a script or an application to do it for you.


Can you execute a shell script if you do not have read permission for the file containing the script?

No, the shell needs both execute and read permissions to run the script.


What is script in Internet Programming?

javascript


Write a shell script to show that user is logged in or not?

You don't need a shell script for that; use either 'whoami' or 'id'


Parse log files-shell script?

There are following shell scripts available at the below mentioned url -1. Shell Script for Log4j Log Analysis and exception reporting2. Log Monitoring Shell Script - email upon errorsHope that's what you are looking for.


What is the Purpose of exit command in Shell of Unix?

The 'exit' command allows you to stop a running shell script at any point and to return a "status" value back to whomever called the shell script. This is a very common practice with shell scripts; sometimes you want to stop the script before it gets to the end of the shell script (for various logic reasons). The 'exit' command also allows you to give a status that any other calling process can use to determine if the shell script ended successfully or not.


How do you compile and run shell script of factorial?

Shell scripts are not compiled; they are interpreted (and therefore do not need to be compiled). Just type in the name of the shell script and any parameters it needs to execute.


What is perl good for?

The Perl Programming system is used to script language for computer tasks or programs. It can write scripts for science, finance, graphics and system administration programs.


IN which Programming language is Cisco IOS made?

Python script?