1 answer

Display only first filed of each line from /etc/passwd file. Find last 50-100 days modified files.

Question:

Display only first filed of each line from /etc/passwd file.
Find last 50-100 days modified files.
Display only first filed of each line from /etc/passwd file.
Find last 50-100 days modified files.

Answers

1.Dispaly only first field of each line from /etc/ passwd file

The first field of each line from /etc/passwd file can be displayed by using different methods such as cut, awk etc.

  •  Using cut
    •  cut -d':' -f1 /etc/passwd
    • The first field that is username is displayed, here -f1 denotes that first fields needs to be printed.
  • Using awk
    •  awk -F : '{print $1}' /etc/passwd 
    • The first field that is username is displayed, here $1 denotes that first fields needs to be printed.

2. Last 50-100 days modified files

  • find is used in linux for searching/finding the files with desired attributes
  •  find / -mtime +50 –mtime -100
.

Similar Solved Questions

1 answer
When marginal cost of production falls below the average total cost of production, we know that:...
When marginal cost of production falls below the average total cost of production, we know that: A. marginal cost is negative B. average total cost is decreasing C. the firm has diseconomies of scale D. average total cost is increasing...
1 answer
Question 3 Which of the following series rank the acidity of the hydrogen atoms from most...
Question 3 Which of the following series rank the acidity of the hydrogen atoms from most acidic to least. Ho b>a>c a>b>c...
1 answer
You need to be able to read an integer, which is a string of decimal digits,...
You need to be able to read an integer, which is a string of decimal digits, possibly beginning with a ‘-’ sign. Ignoring the possible minus sign, the classic algorithm for converting a string of digits into a number is based on initializing an accumulator value to 0. Then for each digit...
1 answer
Stock A has a standard deviation of return of 40%; Stock B 30%. Stock A has...
Stock A has a standard deviation of return of 40%; Stock B 30%. Stock A has a return correlation coefficient with the S&P500 of 0.32; Stock B 0.85. S&P 500 has an expected return of 12.5% and a standard deviation of return of 20%, while T-bill rate is 3.8% What is the un-diversifiable risk o...
1 answer
Q1: M has components: K = {q}, s = 4, I = 0, 0 = 0,...
Q1: M has components: K = {q}, s = 4, I = 0, 0 = 0, F = 0 M Diagram is: Mis DFA /NDFA (circle answer) because Language of M is...
1 answer
QS 22-27A Merchandising: Cash payments for merchandise LO P4 Torres Co. forecasts merchandise purchases of $14,800...
QS 22-27A Merchandising: Cash payments for merchandise LO P4 Torres Co. forecasts merchandise purchases of $14,800 in January, $17,600 in February, and $20,200 in March; 50% of purchases are paid in the month of purchase and 50% are paid in the following month. At December 31 of the prior year, the ...
1 answer
A manufacturer of nickel-hydrogen batteries randomly selects 100 nickel plates for test cells, cycles them a...
A manufacturer of nickel-hydrogen batteries randomly selects 100 nickel plates for test cells, cycles them a specified number of times, and determines that 14 of the plates have blistered. If it is really the case that 15% of all plates blister under these circumstances and a sample size of 100 is u...
1 answer
Question 4 RI True False Question 5 How many straights are there in a deck of...
Question 4 RI True False Question 5 How many straights are there in a deck of cards? 5148 10240 none of the other answers is correct 54912...
1 answer
How many microliters of original sample are required to produce a final dilution of 10-3 in...
How many microliters of original sample are required to produce a final dilution of 10-3 in a total volume of 1,000 mL? • 1 microliter is 10-6 L or 10-3 mL. • The dilution is equal to M2/M1...
1 answer
66 of 100 What term describes the sudden decrease of land by flowing water or waves...
66 of 100 What term describes the sudden decrease of land by flowing water or waves often caused by hurricanes and other storms? Erosion Accretion Reliction Avulsion...
1 answer
For my computer class I have to create a program that deals with making and searching...
For my computer class I have to create a program that deals with making and searching tweets. I am done with the program but keep getting the error below when I try the first option in the shell. Can someone please explain this error and show me how to fix it in my code below? Thanks! twitter.py - ...
1 answer
During FY 2018 Bay Manufacturing had total manufacturing costs are $440,000. Their cost of goods manufactured...
During FY 2018 Bay Manufacturing had total manufacturing costs are $440,000. Their cost of goods manufactured for the year was $425,000. The January 1, 2019 balance of Work-in-Process Inventory is $60,000. Use this information to determine the dollar amount of the FY 2018 beginning Work-in-Process I...
1 answer
Help me please ? thank you ? 23) The trial balance of Beatriz Company reflected the...
help me please ? thank you ? 23) The trial balance of Beatriz Company reflected the following liability account balances on December 31, 2018: Accounts payable 3,800,000 Accrued expense 400,000 Unearned interest income 100,000 Bonds payable 6,800,000 Premium on bonds payable 400,000 Deferred tax...
2 answers
Please explain parts a-f. I appreciate all of the help! 21) Order for Tobramycin 50mg IV...
Please explain parts a-f. I appreciate all of the help! 21) Order for Tobramycin 50mg IV q8h. The female patient weighs 143 lbs and the physician states he wants 3mg/kg/day to avoid kidney damage. Available on the ICU is Tobramycin 80mg/2ml a. How many Kg does patient weigh? e. How many mg should pa...
1 answer
Ll Business-US Identitying Borrowing Causes-Post-test Not Attempted -Attempted Bookmarked uses Question (6) A business reports investments on its balance sheet. The amount of long-term investm...
ll Business-US Identitying Borrowing Causes-Post-test Not Attempted -Attempted Bookmarked uses Question (6) A business reports investments on its balance sheet. The amount of long-term investments in corporate bonds has remained stable in dollars and has decreased from 4.5 percent of total assets to...
1 answer
1. - 18 points SerCP11 15..P.039. My Notes Ask Your Teache Refer to the figure below....
1. - 18 points SerCP11 15..P.039. My Notes Ask Your Teache Refer to the figure below. The charge lowered into the center of the hollow conductor has a magnitude of 2.9 p. Find the magnitude and sign of the charge on the inside and outside of the hollow conductor when the charge is as shown in the fo...
2 answers
A hydraulic press for compacting powdered samples has a large cylinder which is 10.0 cm in...
A hydraulic press for compacting powdered samples has a large cylinder which is 10.0 cm in diameter, and a small cylinder with a diameter of 2.0 cm. A lever is attached to the small cylinder as shown in (Figure 1). The sample, which is placed on the large cylinder, has an area of 4.0 cm? Part A What...
1 answer
During 2017, Rooney Manufacturing Company incurred $94,500,000 of research and development (R&D) costs to create a...
During 2017, Rooney Manufacturing Company incurred $94,500,000 of research and development (R&D) costs to create a long-life battery to use in computers. In accordance with FASB standards, the entire R&D cost was recognized as an expense in 2017. Manufacturing costs (direct materials, direct...
1 answer
Please show all equations used, thanks. A 5.7 gram piano wire spans 42.0 cm. To what...
please show all equations used, thanks. A 5.7 gram piano wire spans 42.0 cm. To what tension must this wire be stretched to ensure that its fundamental mode vibrates at the D, note (f 293.7 Hz)? (Enter your answer in in N.) Need Help?...