whta is the use of "exec" command?
Answer / ashu
The exec command will execute a command in place of the
current shell; that is, it terminates the current shell and
starts a new process in its place.
Use of exec command:
exec is oftenly used to execute the last command of a shell
script. This would kill the shell slightly earlier;
otherwise, the shell would wait until the last command was
finished. This practice saved a process and some memory.
| Is This Answer Correct ? | 2 Yes | 0 No |
Write down the syntax for all the loops in shell scripting.
How to customise the existing shell?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
why did you apply to shell
what are special characters and explain how does text varies by the usage of single quotes,double quotes and back quotes?
How do I run a shell script on a mac?
What is .sh file in mac?
how to separate the even and odd number generated from one file to two separate file i.e. even numbers in file1.txt and odd numbers in file2.txt
What is shell scripting used for?
what is info area how many types?
State the advantages of shell scripting?
How does path variable work?