answersLogoWhite

0


Best Answer

For windows, you might use .cmd, .bat as common file extensions.

Unix doesn't use file extensions as associations, so no file extension needs to be used in the Unix environment. A shell script in Unix is simply a text file with any name that is readable and executable.

However, file extensions are typically used in Unix as a documentation aid that states that the file is a shell script. Common extensions are .sh, .csh, .ksh, .tcsh, .zsh, etc.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What file extensions are used to identify command shell scripts?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the purpose of using echo command?

The echo command echoes out any of the command line arguments given to it. It is commonly used in shell scripts to echo what portions of the shell script are doing.


What is the command echo in unix mean?

it is a command in unix and unix like operating systems that places a string on the computer terminal.It is typically used in shell scripts and bath files screen or a file.


Which is the keyword of shell 1.shift 2.readonly 3.unset 4.ls?

answer is ls.. ls is command outside of the unix kernel.. To identify this if you do locate <command> or which<command> you can identify the source of the program.. if you do locate<keyword> or which<keyword>.. you can't identify the source of the program... :)~ss


Will shell scripts run more quickly than compiled programs?

No, scripts are slower than compiled program, and shell scripts are especially slow, for they keep running external commands.


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.


What extensions can be run from command prompt?

The shell will only execute files that end in a file extension of .exe, .bat, or .com


Where are shell scripts used?

Shell scripts are used for repeatable processes, unattended operation, anything of a repetitive nature, etc. In short, they can be very valuable for just about anything.


How can you compile and execute shell scripts in Unix?

Shell scripts are plain text files; they do not need to be compiled. To make these scripts executable, you need to add an executable flag using chmod. Consider the following example: $ chmod +x myscript


Why do most versions of Linux and windows use the CD command to chnage directories?

For simplicity and interoperability. CD means "change directory." There's really no point in changing the command name since all that'd accomplish is confusing users and breaking shell scripts. As a note: ALL versions of Linux use the cd command, it's a core part of a shell, a "builtin."


What are different Shell scripts in UNIX?

See related link.


What do you mean by shell and shell scripts?

Shell scripts are interpreted files that contain commands and logic sequences to do things. They are similar to programs in that they contain logic and sequencing, and call other programs to accomplish tasks. You use shell scripts to automate tasks in Unix, run tasks periodically, create repeatable tasks, etc.


What shell was developed as the first UNIX command processor?

The first command shell was 'sh', the Bourne shell (Steven Bourne).