how will u execute a file in unix
Answers were Sorted based on User's Feedback
Answer / ravneet
if the file doesn't have executable permissions than assign
the same as chmod 755 <filename>. after that execute the
same by using command ./<filename>
| Is This Answer Correct ? | 25 Yes | 2 No |
Answer / 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 |
Answer / 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 |
What is s and g in sed command?
Through which command will redirect output to bOth screen and files at the same time?
How to copy multiple files and directories into some other directory?
What command is used to switching between users in unix?
What is the use of awk command in unix?
What is the difference between a hard link and a soft link in Unix?
How do you know about running processes of a particular user?
What is a shell in Unix? Name some common Unix shells.
How to get the last ten lines of a file using awk utility?
Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.
How will you know who are the users logged in to the system before 15 minutes?
What does grep v do?