Question

What is the difference between running program with and without exec? What does the ps command...

  • What is the difference between running program with and without exec?
  • What does the ps command do, and how can it be useful for you?
  • Why do we need 3 sets of file permission for a file or folder?
0 0
Add a comment Improve this question Transcribed image text
Answer #1
  • Running a program without exec will run the program on the currently running process while running a program with exec will lead to removal of the current process from the process table and add a new entry of a new process in the table.
  • ps commands is used to see the information of all the currently running process along with their process ID and many more things. This information can be used to determine which processes are running and which processes have greater priority and which have less priority.
  • The three sets are for the three types of users. First is the owner second is the group and third one is for others. Sometimes we need to give permission only to user to read or write a file that's why 3 sets of permissions are given.

If the answer helped please upvote. It means a lot. For any query comment below.

Add a comment
Know the answer?
Add Answer to:
What is the difference between running program with and without exec? What does the ps command...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Linux ps is a command that displays information about all processes currently running in your system....

    Linux ps is a command that displays information about all processes currently running in your system. Read man page of ps command. Enter the following commands: (1) ps-ef more and (1) ps -ef | more and (2) ps-aux | more. Both of these will result in displaying a long list of processes. Identify what processes are started when the system is booted, and what processes are started later on. For each process, find out who owns it, what code it...

  • What is the difference between laissez-faire capitalism, the command system, and the market system? How does...

    What is the difference between laissez-faire capitalism, the command system, and the market system? How does the "invisible hand" operate and why do market economies usually do a better job than command economies at efficiently transforming economic resources into desirable output?

  • What does OFAC do? What is the difference between a sanction and an export control? Which...

    What does OFAC do? What is the difference between a sanction and an export control? Which countries fall under our comprehensive sanctions program? What is an SDN? According to the OFAC – what are the elements of the new investment ban and trade embargo? What are 3 red flags when dealing with a foreign buyer and explain why they would be a red flag. Explain the difference between EAR99 and NLR Who licenses Customs Brokers? What are the responsibilities of...

  • do numbers 4-8 4. Given any directory, use the Is command to display: • all files...

    do numbers 4-8 4. Given any directory, use the Is command to display: • all files and sub-directories starting with the letter "D" (note do not list anything in any sub-directory) • its immediate sub-directories (sub-directories only, and no other ordinary files) its immediate hidden sub-directories only - take a screenshot (#3-3) that clearly shows the command and the result. 5. Assume that the following files are in the working directory: $ ls intro notesb ref2 section 1 section3 section4b...

  • Design and implement a simple, interactive shell program that prompt the user for a command, parser...

    Design and implement a simple, interactive shell program that prompt the user for a command, parser the command (you do not need to write a parser) and then execute it. The commands are: attrib file. To make the file read only. copy fileA fileB To copy fileA into fileB. delete file To delete the file. dir name or just dir The listing of the directory name is displayed. In case of just dir, the list of the      items in the current...

  • How does the"-d" option of javac command work for Java program development? What does it need...

    How does the"-d" option of javac command work for Java program development? What does it need to be specified?

  • QUESTION 1 From YOUR home directory, execute a find command string that will locate the file...

    QUESTION 1 From YOUR home directory, execute a find command string that will locate the file called resolv.conf. Include the -exec flag in the find command to cat the file to the screen. Begin your find search from the letc directory. Select the correct find command string below that will accomplish this. find /etc -name 'resolv.conf-cat f} \; find /etc -name 'resolv.conf' -exec cat {} \; find . -name 'resolv.conf' -exec cat {} \; O find / -name 'resolv.conf' -exec...

  • 1 What is a difference between override and new when it comes to inheritance? 2 What...

    1 What is a difference between override and new when it comes to inheritance? 2 What is the difference between List<type> and ArrayList? AND Which one should you use and why? 3. If I have a file test.txt, and have committed it to the git repository using: $ git commit test.txt Then made some changes, what command (or option) do you use to get the original file back (ie restore the contents of the committed file)? 4 What command (or...

  • QUESTION 1 From YOUR home directory, execute a find command string that will locate the file...

    QUESTION 1 From YOUR home directory, execute a find command string that will locate the file called resolv.conf. Include the -exec flag in the find command to cat the file to the screen. Begin your find search from the letc directory Select the correct find command string below that will accomplish this. find /etc-name 'resolv.conf -cat D find /etc-name 'resolv.conf -exec cat 0 find. -name 'resolv.conf -exec cat 0\ find /-name 'resolv.conf' -exec cat 0 QUESTION 2 What find command...

  • Starting New Processes We can create a new process from within another program using the system...

    Starting New Processes We can create a new process from within another program using the system library function: #include <stdlib.h> int system ( const char *str ); The system function runs the command passed to it as str and waits for it to complete. The command is executed as if the command, $ sh -c str Use the "man" command to study both the "sh" and "system" command. i.e. Execute $ man sh $ man system For example, $ sh...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT