Linux Intro Week 12 Practice 2. Discovery Exercises 1. Name the command that can be used...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Linux Intro Week 12 Practice 2. Discovery Exercises 1. Name the command that can be used to do each of the following: a. Create an alias called mm that displays only those filesystems that are mounted and contain an ext4 filesystem. b. Create and export a variable called NEWHOME that is equivalent to the value contained in the HOME variable. c. Find all files that start with the word "host" starting from the /etc directory and save the Standard Output to a file called file1 and the Standard Error to the same file. d. Display only the lines from the output of the set command that have the word "bash" in them. This output on the terminal screen should be sorted alphabetically. e. Display only the user name (first field) in the colon-delimited /etc/passwd file and save the output to a file called users in the current directory. Show the current day by printing just the first field of output from 'date' (don't use 'date's builtin formatting codes). 3. 4. Filter out all non-commented lines of /etc/services that represent UDP services (the center column is "portnumber/protocol"), then convert "udp" to uppercase with 'sed'. Save the results to a file called udpservices.txt. Sort the output of `ps aux by VSZ (virtual memory size - how much has been allocated for the process, not necessarily used in RAM) using 'sort' (not the `ps options), from highest to lowest. 5. Starting with the output of 'last', build a pipeline that counts the number of times the system was rebooted. (reboot logins) 6. vmstat shows memory usage statistics. Display just the amount of swap in use (3rd row, 3rd column). 7. Find all files in the /etc directory ending with a .conf extension, substitute ".CONF" for ".conf" in each filename in the list (do not change the actual files), and save the altered list of names to a file called "bigconf.txt" 8. Make a copy of /etc/resolv.conf in /tmp. Edit /tmp/resolv.conf in place with 'sed', making a backup with a ".bak" extension and replacing all instances of "10.6.8" with "192.5.7". (WARNING: be sure you edit the copy in /tmp or you'll lose network connectivity.) Linux Intro Week 12 Practice 2. Discovery Exercises 1. Name the command that can be used to do each of the following: a. Create an alias called mm that displays only those filesystems that are mounted and contain an ext4 filesystem. b. Create and export a variable called NEWHOME that is equivalent to the value contained in the HOME variable. c. Find all files that start with the word "host" starting from the /etc directory and save the Standard Output to a file called file1 and the Standard Error to the same file. d. Display only the lines from the output of the set command that have the word "bash" in them. This output on the terminal screen should be sorted alphabetically. e. Display only the user name (first field) in the colon-delimited /etc/passwd file and save the output to a file called users in the current directory. Show the current day by printing just the first field of output from 'date' (don't use 'date's builtin formatting codes). 3. 4. Filter out all non-commented lines of /etc/services that represent UDP services (the center column is "portnumber/protocol"), then convert "udp" to uppercase with 'sed'. Save the results to a file called udpservices.txt. Sort the output of `ps aux by VSZ (virtual memory size - how much has been allocated for the process, not necessarily used in RAM) using 'sort' (not the `ps options), from highest to lowest. 5. Starting with the output of 'last', build a pipeline that counts the number of times the system was rebooted. (reboot logins) 6. vmstat shows memory usage statistics. Display just the amount of swap in use (3rd row, 3rd column). 7. Find all files in the /etc directory ending with a .conf extension, substitute ".CONF" for ".conf" in each filename in the list (do not change the actual files), and save the altered list of names to a file called "bigconf.txt" 8. Make a copy of /etc/resolv.conf in /tmp. Edit /tmp/resolv.conf in place with 'sed', making a backup with a ".bak" extension and replacing all instances of "10.6.8" with "192.5.7". (WARNING: be sure you edit the copy in /tmp or you'll lose network connectivity.)
Expert Answer:
Posted Date:
Students also viewed these computer network questions
-
Suppose that you consider holding a stock currently valued at 50 for two years, and each year it either goes up by 30% or down by 20%. The company has already announced its dividend policy: it will...
-
Name the command that can be used to do each of the following: a. Create an alias called mm that displays only those filesystems that are mounted and contain an ext4 filesystem. b. Create and export...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
Danone will make a euro 95 million acquisition in Ethiopia, paid in three equal instalments of Ethiopian Birr in 6,12 and 24 months. The spot rate for Birr is 47.9 and one year and two year forward...
-
1. What should an employee do when he or she discovers that there is an error in a projection? Why do you suggest that action? Would your answer change if the error was not lie kely to affect other...
-
Green light has a wavelength of 5.0 10 2 nm. What is the energy, in joules, of one photon of green light? What is the energy, in joules, of 1.0 mol of photons of green light?
-
The following figures relate to the retail business of J Clarke for the month of May 19X9. Goods which are on sale fall into two categories, A and B. Calculate for each category: Cost of goods sold...
-
Alladin Company purchased Machine #201 on May 1, 2012. The following information relating to Machine #201 was gathered at the end of May. Price ......................$85,000 Credit terms...
-
What is the compound adjusting journal entry in 2016 to correct the errors committed in 2014-2015 and its effects in the following year, assuming that the books of 2015 and prior periods have already...
-
1) May1, purchased new equipment, paying cash $25,000 and signing a 90-days note payable for the balance of $87,500 2)May2, Purchased the future 12 month of insurance to begin May2, paid $4800...
-
Cain Auto Supplies Balance Sheet 31-Dec-23 $20,000 Accounts Payable $76,000 Cash Prepaid Insurance 36,000 Interest Payable 2,000 Accounts Receivable 60,000 Mortgage Payable 216,000 Inventory 204,000...
-
The following transactions are from Ohlm Company. Year 1 Dec. 16 Accepted a $10,800, 60-day, 8% note in granting Danny Todd a time extension on his past-due account receivable. 31 Made an adjusting...
-
What exactly is cytokinesis?
-
The case of Ralph: Ralph is a 47-year-old father of four children, all of whom are adolescents or older. He says that he is coming to you for counseling in order to find a way to free himself from...
-
Analyse and document findings against the risk register. Determine what threats are there in the current policy, recommendations and practices that are not accounted in the risk register and the...
-
Analyze the eight cultural dimensions (individualism, collectivism, egalitarian, hierarchal, performance orientation, future orientation, assertiveness, humane orientation, and uncertainty avoidance)...
-
What impact has the Internet had on the globalization of small firms? How do you think small companies will use the Internet for business in the future?
-
8. Hassan Qassemzadeh had an account at the IBM Poughkeepsie Employees Federal Credit Union. On December 1, he wrote a check for $9.60, which was altered and subsequently cashed for $9,000.60. In...
-
10. CPA QUESTION In general, which of the following statements is correct conceming the priority among checks drawn on a particular account and presented to the drawee bank on a particular day? a....
-
11. Rev. Janet Hooper Ritchie knew that the shoe store at Buckland Hills mall in Manchester, Connecticut, would not accept a Discover credit card, so she stopped at an ATM for a $100 cash advance....
Study smarter with the SolutionInn App