answersLogoWhite

0


Best Answer

As long as the script file is readable and executable, just type the name of the script and it will execute immediately.

Otherwise, you can call the shell interpreter and have it run it immediately such as:

bash ./thefile

where ./thefile is the script you want to run. Or, substitute the shell interpreter you wish to use instead of bash, such as sh, ksh, tcsh, csh, etc.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which command in unix is used to run the script immediately?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the trap command on Unix for?

The trap command is used in a shell script to intercept certain types of software signals; usually it is used to do a "graceful" cleanup when the shell program is interrupted.


Which is the most commonly used command for referencing detailed information about a particular command in UNIX?

In Unix, use the 'man' command.


What command is used to create a folder in the command prompt?

In Windows and Unix-based and Unix-like systems, the command is mkdir (however in Windows a shortcut md can be used as well).


What file extensions are used to identify command shell scripts?

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.


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.


Command is used to show clock on xwindow in unix?

xclock


What is used to see the contents of a directory in Unix?

The ls command.


Does UNIX have alternatives to the command line user interface?

Yes, Unix has several variants of Graphical User Interfaces that may be used instead of the command line if the user wishes it.


What command displays the time on most Linux and Unix computer?

The time command is used to time a command and not display the actual time. To display the time and date, the date command must be used.


Can ipconfig be used in unix systems?

Not the actual command, no. However, the ifconfig command will give you similar information about the network interfaces.


What is a file command used to create or start a new file?

The 'touch' command creates a new empty file in Unix.


What command is used to list the contents of a directory recursively in Unix?

ls -lR directory