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):
-
In the United States, labor supply tends to be inelastic relative to labor demand, and according to law, payroll taxes are essentially assessed evenly between workers and firms. Given the above...
-
Stanford Rosenberg Computing wants to establish an assembly line for producing a new product, the Personal Digital Assistant (PDA). The tasks, task times, and immediate predecessors for the tasks are...
-
If total monthly fixed costs for a company were plotted on a graph for seven months, would the line drawn between the plotted points be parallel to the base or sloped? Explain why.
-
During the last week, Sundara has read about different situations that involve money, interest rate, and different amounts of time. She has gotten interested in the major effects that time and...
-
You want to buy a $1,000,000 home. To purchase this home, you will take out a 30-year fixed mortgage after making a 20% down payment. Payments are to be made monthly with a 5.5% stated APR. Calculate...
-
The worm shaft shown in part a of the figure transmits 1.2 hp at 500 rev/min. A static force analysis gave the results shown in part b of the figure. Bearing A is to be an angular-contact ball...
-
Indicate in each section what the value of the variables involved will be after executing the instruction. Suppose A and B are integer variables with values of 4 and 8 respectively.
-
Why are contingent liabilities not recognised?
-
What are the requirements for documenting the assessed level of control risk for an assertion?
-
How may the auditor assess the level of control risk for an account balance assertion when the assessed levels of control risk for multiple related transaction class assertions are not all the same?
-
Identify the principal steps in forming a company.
-
Explain the process for assessing control risk for a. Account balance assertions affected by a single transaction class. b. Account balance assertions affected by multiple transaction classes.
-
What makes the Chargemaster a vital component of the revenue cycle? a It simplifies the charge reconciliation process. b It lists all items that can be charged to patients' accounts. c It eliminates...
-
Juanita owns a home in Richardson, TX. She purchases a Homeowners Policy (HO-3) from Farm State Ins. Co. The policy provides $100,000 in liability coverage (coverage E) and $5,000 in Med Pay coverage...
-
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...
-
Create a similar barplot as in Figure 1. 5, but now plot the corresponding proportions of males and females in each of the three situation categories. That is, the heights of the bars should sum up...
-
Import the data set EuStockMarkets from the same website as the iris data set above. The data set contains the daily closing prices of four European stock indices during the 1990s, for 260 working...
-
The iris data set, mentioned in Section1.1, contains various features, including 'Petal.Length' and 'Sepal.Length', of three species of iris: setosa, versicolor, and virginica. (a) Load the data set...
Study smarter with the SolutionInn App