Question: Given any directory, use the ls command to display :all files and sub-directories starting with the letter H (note do not list anything in any

Given any directory, use the ls command to display

:all files and sub-directories starting with the letter H (note do not list anything in any sub-directory)

its immediate sub-directories (sub-directories only, and no other ordinary files)

its immediate hidden sub-directories only

Assume that the following files are in the working directory: $ ls intro notesb ref2 section1 section3 section4b notesa ref1 ref3 section2 section4a sentrev 2 Give commands for each of the following, using wildcards to express filenames with as few characters as possible. 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. Include the command in the submission document .

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.

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!