how will u execute a file in unix

Answer Posted / narendrasairam

Depending on the type of shell you can execute a file in
either of the ways
1) ksh <filename>
2) sh <filename>
If the file already possess execute bit set on it, then you
can directly execute the file with its name alone
1) <filename>

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I find previous commands in unix?

585


What is grep and how do you use it?

563


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

580


What is the size of time_t?

633


Write a command to display a file’s contents in various formats?

612






hw will u use awk in replacing cahrs and files

2719


What is time_t?

575


What is the command to find maximum memory taking process on the server?

661


Enlist some filename manipulation commands in unix.

539


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

614


Explain ‘library functions’ with respect to unix commands?

594


What is the command to find hidden files in the current directory?

570


Write a command that will display files in the current directory, in a colored, long format.

668


What is the pipe command?

564


What is awk used for?

611