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 |
What lives in a shell?
write a program to display all the files from the current directory which are created in particular month
Why are there shells on the beach?
How will you schedule a job that will run every month last day?(some months have 30 days,some 31 days,28,29 days)
I want to connect to a remote server and execute some commands, how can I achieve this?
What are the three main forms of enabling debugging in a shell script?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
Why should we use shell scripts?
How would you print just the 25th line in a file using smallest shell script?
what is the difference between cmp and diff commands
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What is the use of "$#" in shell scripting?