Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Need help solving those issues

1. From my personal directory currently I'm trying to use "cd" command to change to the following directories one by

a. /bin

b./etc/apm/resume.d/temp

c. /etc/apm/event.d (use relative path)

d. The "Documents" directory under your personal directory

- I've tried cd /bin for a is ok

- for b, cd /etc/resume.d/temp give me "no such file or directory" same as cd ../apm/event.d for c.

2. Assume that the following files are in the working directory:

$ ls

intro notesb ref2 section1 section3 section4b

notesa ref1 ref3 section2 section4a sentrev 2

using wildcards to do the following

List all files that begin with "section".

List "section1", "section2", and "section3" 3 files only.

List the "intro" file only.

List "section1", "section3", "ref1", and "ref3" 4 files only.

Don't seems to find those files using different command and going to different directories.

Here I am not sure If I should create those files first in my working directory

3. File copy, move, and removal. Use one command to finish each step. You should not use "cd" command at all.

-Under your home directory, create a new text file using your campus email id as the file name.

- Create a copy of the file in the same directory using any name you like.

- Create a subdirectory "backup".

- Move the original file to "backup" and rename it using your first name.

- Create a copy of the "backup" directory (and all file in it); name it "backup2".

- Delete "backup".

- Rename "backup2" to "backup3".

-List the files in the new directory.

4. 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?

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".

) 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).

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93067561

Have any Question?


Related Questions in Computer Engineering

1 market equilibrium and deadweight lossa suppose that the

1. Market Equilibrium and Deadweight Loss a) Suppose that the supply and demand for apples are as follows: QD = 100 - 3P QS = 50 + 2P The government now levies a $5 per unit tax on producers. Draw the supply and demand c ...

7 years ago crane corporation issued 20-year bonds that had

7 years ago Crane Corporation issued 20-year bonds that had a $1,000 face value, paid interest annually, and had a coupon rate of 7 percent. If the market rate of interest is 5.5 percent today, what is the current market ...

Suppose a record has the following fields in this order a

Suppose a record has the following fields in this order: A character string of length 15, an integer of 2 bytes, a SQL date, and a SQL time (no decimal point). How many bytes does the record take if: Fields can start at ...

When a 5606g sample of walnuts is burned with excess oxygen

When a 56.06g sample of walnuts is burned with excess oxygen in a bomb calorimeter with a heat capacity of 23.25kJK-1. The temperature of the calorimeter rises fro 17.78C to 94.57C. What is the (Delta)U(rxn) value, in un ...

We can sort a given set of n numbers by first building a

We can sort a given set of n numbers by first building a BST containing these numbers (using insertion operations on each element one by one), and then printing the numbers by an inorder traversal. What are the worst cas ...

Stock portfolio gui projectgoalyou are to write a gui

Stock Portfolio GUI Project Goal You are to write a GUI program that will allow a user to buy, sell and view stocks in a stock portfolio. For example, you might track the profit or loss on the trades. You might allow for ...

Discuss the importance of using an access control model in

Discuss the importance of using an access control model in determining how employees in an organization should gain access to resources.

We use typecasting when we want to cast a value of one type

We use typecasting when we want to cast a value of one type to a value of another type. Specifically, in this program, we want to convert a value of type double to a value of type int. Recall that Java lets you assign a ...

Review questionsrq web server environment kroenke book chap

Review Questions(RQ) Web Server Environment Kroenke Book Chap 11 The Review Questions (RQ) listed below can also be found in the Kroenke textbook, starting on page 526. This is NOT the entire list of Review Questions, bu ...

What are some ways malware can effect a mac computer can

What are some ways malware can effect a mac computer? Can they be prevented?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As