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 do you list the files in an UNIX directory while also showing hidden files?
Am using Mac OS 10.4.11 on an Imac (PPC) Internal hard disk got named disk0s3 and will not mount. What commands can be used in TERMINAL to rename the internal hard disk to C96?
How would you change all occurrences of a value using VI?
What is virtual memory?
What is egrep?
. Using sed and grep, write a command which lists files and directories with following properties: (i) created in 1999 (ii) with user's as owner and group
what is the name os the first os and tell me the year when it was discovered
What is the main advantage of creating links to a file instead of copies of the file?
how to set request time out value for name resolution on clients (hp-ux) ?
what is RAID 1+0?
differentiate between named & unnamed pipe.
11 Answers Cisco, IIT, ISEC,
i am prepairing for 2+ yrs exp in oracle/unix production support,can u tell me which type issue comes in server plz help