Please solve all the question on Linux or ubuntu solve all the question in this project Question
Fantastic news! We've Found the answer you've been seeking!
Question:
Please solve all the question on Linux or ubuntu
solve all the question in this project
Transcribed Image Text:
Question 1 Write the proper Linux command(s) to perform each of the following tasks. For each task record the task number and the corresponding answer (i.e., commands) in a file named (q1_answers). (Task1) Use find command to compile a list of all directories in your system (under root '/' directory). The command must redirect the output so that the list of directories ends up in a file called directories.txt and the list of error messages in a file called errors.txt. (Task2) Try the command sleep 5. What does the command do? (Task3) Run the command sleep 5 in background using &. (Task4) Run the command sleep 80 in foreground, then suspend it with CTRL+z, then put it into the background using bg. Next, run the command jobs, then the command ps. Finally, bring the job back into the foreground with fg. (Task5) Run the command sleep 30 in background using &, then use kill command to terminate the process by its job number. Repeat this task but this time kill the process by specifying its PID. (Task6) Run the command sleep 40 in background using &, then use kill command to suspend (stop) the process. Finally, use the bg command to resume running the process. (Task7) Start a number of sleep 60 processes in background, then terminate them all at the same time using the pkill command. (Task8) Create a variable called myprj2var in your current bash shell with value good, then make sure that the variable myprj2var is passed from bash to ksh when you run a ksh shell under your bash shell. (Task9) Add directory /etc to the beginning and end of you current PATH environment variable. (Task10) Give a usage example for each of the commands: nice and exec. Question 1 Write the proper Linux command(s) to perform each of the following tasks. For each task record the task number and the corresponding answer (i.e., commands) in a file named (q1_answers). (Task1) Use find command to compile a list of all directories in your system (under root '/' directory). The command must redirect the output so that the list of directories ends up in a file called directories.txt and the list of error messages in a file called errors.txt. (Task2) Try the command sleep 5. What does the command do? (Task3) Run the command sleep 5 in background using &. (Task4) Run the command sleep 80 in foreground, then suspend it with CTRL+z, then put it into the background using bg. Next, run the command jobs, then the command ps. Finally, bring the job back into the foreground with fg. (Task5) Run the command sleep 30 in background using &, then use kill command to terminate the process by its job number. Repeat this task but this time kill the process by specifying its PID. (Task6) Run the command sleep 40 in background using &, then use kill command to suspend (stop) the process. Finally, use the bg command to resume running the process. (Task7) Start a number of sleep 60 processes in background, then terminate them all at the same time using the pkill command. (Task8) Create a variable called myprj2var in your current bash shell with value good, then make sure that the variable myprj2var is passed from bash to ksh when you run a ksh shell under your bash shell. (Task9) Add directory /etc to the beginning and end of you current PATH environment variable. (Task10) Give a usage example for each of the commands: nice and exec.
Expert Answer:
Related Book For
Introduction To Management Science and Business Analytics A Modeling And Case Studies Approach With
ISBN: 9781260716290
7th Edition
Authors: Frederick S. Hillier, Mark S. Hillier
Posted Date:
Students also viewed these operating system questions
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
Python and most Python libraries are free to download or use, though many users use Python through a paid service. Paid services help IT organizations manage the risks associated with the use of...
-
The Rosa model of Mohave Corp. is currently manufactured as a very plain umbrella with no decoration. The company is considering changing this product to a much more decorative model by adding a...
-
Chips USA is considering the following projects to improve their production process. Chips have a short life, so a 3-year horizon is used in evaluation. Which projects should be done if the budget is...
-
Stevens Fabricators (SF) is a maker of small steel machine parts. The company's total factory overhead costs are a linear function of the number of tons of steel processed. The company's theoretical...
-
What is the half-life of a pion in the reference frame of the patient undergoing pion therapy? A. \(1.8 \times 10^{-10} \mathrm{~s}\) B. \(1.8 \times 10^{-8} \mathrm{~s}\) C. \(1.8 \times 10^{-7}...
-
Consider the following actions of a college trying to manage the costs of its library. Required Match each of the process improvements listed with how they deliver cost reductions. Process...
-
Heidi runs a small bicycle store. The business is registered for GST. All sales are taxable supplies. As Heidi's tax agent, it is your responsibility to calculate the GST for each product sold. In...
-
Why is it important for media historians to be critical of progress narratives? Choose an example from "the invention of printing" by Lewis mumford and draw a connection to progress narratives.
-
Question 1 You are required to complete the given code segment. a) Given a Java class named Validate Bean.java with data members and methods. Complete the given code segment for getter method and...
-
Hafnaoui Company reported pretax net income from continuing operations of $903,500 and taxable income of $712,500. The book-tax difference of $191,000 was due to a $242,000 favorable temporary...
-
How can organizational leaders implement sophisticated empowerment frameworks that transcend traditional hierarchical structures, fostering a sense of autonomy and accountability among employees ?
-
If only trust were easy to gain and keep. Companies today are struggling with the relationship between them and their employees. Why? Talk about trust in Boeing Defense organization and what you...
-
What is reputation management? Use an example to illustrate your answer 2- What information do you need to include in a media buying brief? Use an example that include Radio, Outdoors and Social...
-
Valpar Company produces several lines of laundry hampers. The factory is highly automated and uses an activity-based costing system to allocate overhead costs to its various products. During the...
-
Use this circle graph to answer following Exercises. 1. What fraction of areas maintained by the National Park Service are designated as National Recreation Areas? 2. What fraction of areas...
-
The following table shows the interest rates on the fixed and floating borrowing choices available to three firms. Firms A and B want to be exposed to a floating interest rate while Firm C would...
-
Explain why trading derivatives on centralized exchanges rather than in over-the counter markets helps reduce systemic risk. Can you think of a way in which more trading on centralized exchanges...
-
Futures contracts are standardized contracts for the delivery of a specified quantity of a commodity or financial instrument on a prearranged future date, at an agreed- upon price. They are a bet on...
Study smarter with the SolutionInn App