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 unix command to find how many days the server has been up.

605


How do I search for a file in unix command?

549


Describe the usage and functionality of the command rm –r * in unix?

825


Why is shebang used?

598


Explain the steps that a shell follows while processing a command.

683






What does the command '$ls | wc –l > file1' do?

684


What are the dos commands?

652


How many unix commands are there?

631


What is grep and how do you use it?

579


What command is used to switching between users in unix?

564


What is nr in awk command?

604


Enlist some filename manipulation commands in unix.

556


What is the use of cut command in unix?

694


How do I use grep to find a file?

583


Which command should you use to find the remaining disk space in unix server?

709