How will you run the script in UNIX?
Answers were Sorted based on User's Feedback
Answer / najib
./scriptfile (file should be executable) or . ./scriptfile
(force the file to be executed even if the file doesnt have
execute permission)
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / pankaj cheema
1. simple open the terminal.
2. if you make file in vi then type sh and a space and file
name as $sh pankaj.sh.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / surendra bisht
actually first we have to change file permission to execute .
. to make file executable:
type
$chmod +x filename
. then for executing it :
type
$sh filename
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / abhishek
it can also be done this way "bash scriptfile" or "csh
scriptfile"
| Is This Answer Correct ? | 0 Yes | 0 No |
how can you say that unix operating system provides more security than other operating systems.
Explain iostat, vmstat and netstat.
What is the difference between grep & find?
What is the difference between windows environment and Unix environment ?
What is Expansion swap?
does the stat() function call use the inode of the file to generate the information about a file? what is inode mostly used for?
What is file system in UNIX?
What is a daemon?
What is a level 0 backup?
What does init do? What does inetd do?
What is the difference between > and >> operators?
What steps are required to perform a bare-metal recovery?