how will u execute a file in unix

Answer Posted / lokesh

There are lot of ways by which u can execute a file in Unix.

1. ./<filename>

2. <filename> #only if the permissions are in place for the
user

3. sh <filename> #uses bash shell

4. nohup <filename> #the process doesn't get killed even on
reboot

5. Batch <filename>

6. at <time> <filename> #to schedule the job

7. U can also autorun it by making an entry into the cron

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the various commands that are used for the user information in unix.

533


What is difference between grep and find command in unix?

570


Which command is used to create a directory?

557


What is used to type command?

533


How can you see the command line history?

578






What is grep r?

579


How do I open a port?

579


How do you grep recursively?

545


How do I use grep to search for a file?

576


Why is shebang used?

587


What is the command to compare two files in unix?

612


What are file commands?

644


What does #!/ Bin sh do?

578


Why is grep called grep?

768


What is s and g in sed command?

551