linux terminal commands for the following questions: 7. Link a) Go to your Documents directory; b) Create
Fantastic news! We've Found the answer you've been seeking!
Question:
linux terminal commands for the following questions:
Transcribed Image Text:
7. Link a) Go to your "Documents" directory; b) Create a file "file1" with the text "hello" in it; c) Create a hard link named "file2" linked to "file1"; d) Create a soft link named "soft1" linked to "file1"; create another soft link named "soft2" linked to "file2". e) View information of the 4 files (what command should you use to produce some output same to the figure below) - what's the difference of these 4 files? 935008 -rw-r--r-- 2 root root 6 2011-09-08 00:52 filel 935008 -rw-r--r-- 2 root root 6 2011-09-08 00:52 file2 936795 lrwxrwxrwx 1 root root 5 2011-09-08 00:59 soft1 -> filel 936796 lrwxrwxrwx 1 root root 5 2011-09-08 00:53 soft2 -> file2 f) Are contents of the 4 files the same? What command do you use to verify that? g) Create a hard link "file3" linked to "soft1". 2 h) Use a text editor (Nano or VIM) to edit "soft2": change "hello" to "hello, world". Now, what is the content in each of the 5 files? Are they the same? What if you change the text in any of these files? i) Rename "file1" to "change". Now, how many files can you still open and view the content? Use the same command you used in step e) to view file information. What's the change? j) Use a text editor to edit "file3": type "Linux" and save. Now what will happen? Which files share the same content? Why? k) List all files you have now (use the -l option). Take a screenshot (#3-6) of the command and the result. 7. Link a) Go to your "Documents" directory; b) Create a file "file1" with the text "hello" in it; c) Create a hard link named "file2" linked to "file1"; d) Create a soft link named "soft1" linked to "file1"; create another soft link named "soft2" linked to "file2". e) View information of the 4 files (what command should you use to produce some output same to the figure below) - what's the difference of these 4 files? 935008 -rw-r--r-- 2 root root 6 2011-09-08 00:52 filel 935008 -rw-r--r-- 2 root root 6 2011-09-08 00:52 file2 936795 lrwxrwxrwx 1 root root 5 2011-09-08 00:59 soft1 -> filel 936796 lrwxrwxrwx 1 root root 5 2011-09-08 00:53 soft2 -> file2 f) Are contents of the 4 files the same? What command do you use to verify that? g) Create a hard link "file3" linked to "soft1". 2 h) Use a text editor (Nano or VIM) to edit "soft2": change "hello" to "hello, world". Now, what is the content in each of the 5 files? Are they the same? What if you change the text in any of these files? i) Rename "file1" to "change". Now, how many files can you still open and view the content? Use the same command you used in step e) to view file information. What's the change? j) Use a text editor to edit "file3": type "Linux" and save. Now what will happen? Which files share the same content? Why? k) List all files you have now (use the -l option). Take a screenshot (#3-6) of the command and the result.
Expert Answer:
Answer rating: 100% (QA)
a cd CUsersRavi Reddy GojurDocuments b cat file1txt type message hello and CTRLD It will return hell... View the full answer
Related Book For
Value at Risk The New Benchmark for Managing Financial Risk
ISBN: 978-0071464956
3rd edition
Authors: Philippe Jorion
Posted Date:
Students also viewed these programming questions
-
Give a short answer for the following questions (you might need to do some search and/or consult your textbook). (a) A well-versed programmer wrote a code to solve Laplace partial differential...
-
Select all the correct option for the following questions 1. Money a. Is more efficient than barter. b. Makes trades easier. c. Allows greater specialization. d. All of the above are correct. 2....
-
Highlight the correct option for the following questions 31. When a firm expands in the production process to supply its own raw materials and intermediate products or to provide its own sales or...
-
Prove the famous (your name) uncertainty principle, relating the uncertainty in position (A = x) to the uncertainty in energy For stationary states this doesnt tell you muchwhy not? (B = p/2m + V):
-
The accounting records of The Dakota Trading Post Company include these accounts Requirement 1. Prepare the company's net cash provided by (used for) operating activities section of statement of cash...
-
Reconsider the portfolio selection example, including its spreadsheet model in Figure 8.13, given in Section 8.2. Note in Table 8.2 that Stock 2 has the highest expected return and stock 3 has by far...
-
Based on the design, briefly discuss the data collection procedures to be used. Be sure to include the area rea of focus and targeted sample as part of these procedures. Develop a hypothetical...
-
A recent Gallup poll of 519 adults who flew in the past year (published in The Economist, June 16, 2007, p. 6) found the following their number 1 complaints about flying: cramped seats (45), cost...
-
Ethel has an existing loan which she wishes to refinance to obtain a lower rate. Her home has appraised for 352,000. She has requested a new loan in the amount of 264,000 to pay off her old loan and...
-
Write a letter to the Smith's discussing the results of their tax return, remind them of any deduction substantiation rules they need to follow (receipts, mileage log, etc.), offer suggestions for...
-
Calculate the summary statistics Arithmetic average, standard deviation, Min, Max, and geometric average. Calculate the end-of-year values for each asset class (RF, T-Bond and Equity) with $1...
-
Internet sites that allow people to post their resumes online reduce the costs of job searches and create opportunities for individuals looking for jobs to be matched with potential employers more...
-
Both a firm commitment and a forecasted transaction result in a future transaction. Why is a hedge of a firm commitment a fair value hedge and a hedge of a forecasted transaction a cash flow hedge?
-
Explain the differences in classifications between IAS 39 and IFRS 9.
-
Go to the St. Louis Federal Reserve FRED database, and find data on the unemployment rate (UNRATE) and a measure of the price level, the personal consumption expenditure price index (PCECTPI). For...
-
It was the scene of yet another lengthy board meeting. The directors had just been informed that IAS 32 required the separate presentation on an issuers statement of financial position of liability...
-
RESA-THE REVIEW SCHOOL OF ACCOUNTANCY Weeks 1-4: FINANCING CYCLE: AUDIT OF STOCKHOLDERS' EQUITY AP-100 PROBLEM 3: (SHARE ISSUE; TREASURY SHARES; CONVERTIBLE PREFERENCE SHARES) You were assigned to...
-
Explain the term global capital markets. This chapter primarily discusses global equity markets. What other types of financial instruments are traded in these markets? How important are global...
-
Discuss how performance optimizations for file systems might result in difficulties in maintaining the consistency of the systems in the event of computer crashes.
-
Consider the traffic deadlock depicted in Figure 7.1. a. Show that the four necessary conditions for deadlock indeed hold in this example. b. State a simple rule for avoiding deadlocks in this system.
-
Consider the following backup scheme: Day 1. Copy to a backup medium all files from the disk. Day 2. Copy to another medium all files changed since day 1. Day 3. Copy to another medium all files...
-
The purchasing officer for The Majestic Emporium has prepared a purchases budget for the financial year ending 31 March 2020, based on the following data. The cost of sales is 65% of sales, and the...
-
Greyt Dog Beds Ltd manufactures dog beds specifically designed for greyhounds and whippets. The company purchases all the required materials from external suppliers and designs and assembles the...
-
Ketton Ltd is in the process of preparing direct labour and factory overhead budgets for the year ending 30 June 2020. Relevant data are set out below. Required (a) Prepare the direct labour budget...
Study smarter with the SolutionInn App