Question

In: Computer Science

PLEASE EXPLAIN AND SHOW HOW TO DO THESE! (especially all the passwd ones!!) Perform the following...

PLEASE EXPLAIN AND SHOW HOW TO DO THESE! (especially all the passwd ones!!)

Perform the following on your Linux instance:

-Execute the command ls -l /etc/hosts /fakepath. Send the standard output to a file named ${HOME}/ls-stdout and the standard error to a file named ${HOME}/ls-stderr.

-Print the text Hello, World! to a file named ${HOME}/info. Overwrite the file if it already exists. Then, append the text The date is: to the ${HOME}/info file. Finally, append the standard output of the date command to the ${HOME}/info file.

-Print all lines that contain both the string nologin and the string run within the /etc/passwd file. Send the standard output to the file ${HOME}/passwd-nologin.

-The /etc/passwd file contains colon-delimited values. For all lines within /etc/passwd, print the 7th field, filtering the output so it only contains unique values. Send the standard output to the ${HOME}/passwd-unique file.

-Print the first 5 lines of the /etc/passwd file, changing all occurrences of the character x to the character !. Send the standard output to the ${HOME}/passwd-modify file.

-Print all lines within the /etc/passwd file that contain a 3 digit number in the range 900 to 999. Send the standard output to the ${HOME}/passwd-number file.

-Print all lines within the /etc/passwd file that begin with the string sh, ss, or sy. Send the standard output to the ${HOME}/passwd-prefix file.

-Create a file named ${HOME}/text-edit with the following content:

This is college.

It is located in America.

This is the third line of text.

For credit on this assignment, upload one or more screenshots showing the following:

-The output of cat ${HOME}/ls-stdout.

-The output of cat ${HOME}/ls-stderr.

-The output of cat ${HOME}/info.

-The output of cat ${HOME}/passwd-nologin.

-The output of cat ${HOME}/passwd-unique.

-The output of cat ${HOME}/passwd-modify.

-The output of cat ${HOME}/passwd-number.

-The output of cat ${HOME}/passwd-prefix.

-The output of cat ${HOME}/text-edit.

Solutions

Expert Solution

Answer 1
************

Answer 2
***************

Answer 3
*************

Answer 4
*************

Answer 5
**********

Answer 6
*************

Answer 7
*************

cltr + d to save

if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and i can edit and change the answers if you argue, thanks :)


Related Solutions

explain and show how tid these . and plz provied all screenshot Perform the following on...
explain and show how tid these . and plz provied all screenshot Perform the following on your Linux instance. Make a directory named ${HOME}/courses/it340/module04 where ${HOME} is your regular user's home directory (i.e. NOT the root user). Inside of this ${HOME}/courses/it340/module04 directory perform the following. Create a file named perms01 with permissions rwxrw-r--. Create a file named perms02 with permissions rwxr-xr-x. Create a file named perms03 with permissions r-xrw-rw-. Create a file named perms04 with permissions rwsrw-r--. Create a file...
can you please do the following? (8) Step 8: type the following command: sort /etc/passwd |...
can you please do the following? (8) Step 8: type the following command: sort /etc/passwd | head -5 What is the output? Notice that this pipe can be simplified cat /etc/passwd | head -5 What is the output for this? You could accomplish the same thing more efficiently with either of the two commands: head -5 /etc/passwd head -5 < /etc/passwd (9) Step 9: The command displays all the files in the current directory sorted by file size ls -al...
Please explain your answer clearly. Please show all the formulas and calculations (please do not use...
Please explain your answer clearly. Please show all the formulas and calculations (please do not use excel): Anchor Ltd paid $15,000 last quarter for a feasibility study regarding the demand for motorboat replacement parts which would require the purchase of a new metal-shaping machine. Today, they wish to conduct an analysis of the proposed project. The machine costs $250,000 and will operate for five years and tax rules allow the machine to be depreciated to zero over a five-year life....
Explain how a battery produces a current in a wire. Please show all work!
Explain how a battery produces a current in a wire. Please show all work!
Please show how you get to the answer and explain it! Please thoroughly show how to...
Please show how you get to the answer and explain it! Please thoroughly show how to do this! I'm so confused. Given the following information for Gator Company who uses the LIFO method: ​ ​ ​ ​ Net ​ NRV Minus ​ ​ ​ Realizable Replacement Normal Item Quantity Cost Value Cost Profit 1 1 $17.70 $24.60 $18.00 $17.10 2 1 10.80 8.28 9.30 5.58 3 1 72.00 64.80 67.20 57.60 4 1 4.80 3.12 2.88 2.64 5 1 12.00...
For Networks -> Please show me how to do the following: a.)   Calculate the CRC of...
For Networks -> Please show me how to do the following: a.)   Calculate the CRC of a signal given a generating function and a # of bits to add. b.)   Calculate the checksum of a signal.
For Networks -> Please show me how to do the following: a.)   Calculate the parity of...
For Networks -> Please show me how to do the following: a.)   Calculate the parity of a signal. b.) Calculate the parity of a signal using interleaving.
Please show me how to do the following in excel. An additional "show formulas" would also...
Please show me how to do the following in excel. An additional "show formulas" would also be helpful. NOK Plastics is considering the acquisition of a new plastic injection-molding machine to make a line of plastic fittings. The cost of the machine and dies is $125,000. Shipping and installation is another $8,000. NOK estimates that new project will require $7,500 in inventory, and result in a $7,500 increase in accounts receivable and a $5,000 increase in accounts payable. The latter...
How do HABA and salicylate bind to BSA? The lab is show as below: perform a...
How do HABA and salicylate bind to BSA? The lab is show as below: perform a saturation binding study and a competitive binding assay. Use the plate reader and the absorbance at 490 nm.
PLEASE ONLY DO THE LAST PORTION " Final Questions." I already did all the other ones....
PLEASE ONLY DO THE LAST PORTION " Final Questions." I already did all the other ones. Your friend, another accountant, has bet you that with your knowledge of accounting and just the computations for common analytical measures, you can figure out many aspects of a company's financial statements. You take the bet! Match each computation to one of the liquidity and solvency measures in the table. (Hint: Begin by looking for simple computations and identifying the amounts in those computations....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT