Show all your work. All scripts must be included, and screenshots of all output must be included. All work must be numbered and shown in order in a single Word document. The script must be immediately...


Show all your work. All scripts must be included, and screenshots of all output must be included. All work must be numbered and shown in order in a single Word document.
The script must be immediately followed by the output for each answer.
The assignment is worth 10 points, but there are more points shown so that some extra credit is available, in case you are close on your grade.


1. (1 point) Create a file named Wines that includes the following, in this order:
Chardonnay 1984 good
SauignonBlanc 1977 best
CarbernetSauvignon 1974 good
Riesling 1977 good
Gewurtztraminer 1995 best
Riesling 1982 poor
PinotGrigio 1966 poor
Gewurztraminer 1989 good
Riesling 1984 best
CheninBlanc 1994 poor
Riesling 1979 good


(cat the file into the output here, to ensure that nothing has been missed)


2. (2 points) Create a bash script to sort this file by the third field into a new file named WinesQualityForward
(cat the file into the output here)


3. (2 points) Create a bash script to sort this file in reverse order by the second field into a new file named WinesByDateReverse
(cat the file into the output here)


4. (1 point) Create a bash script to put the contents of WinesQualityForward and WinesByDateReverse into a single file named WinesNew
(cat the file into the output here)


5. (2 points) Create a bash script to create a file that includes all running processes, a list of the file systems, and the contents of the systems hosts file. The new file should be called Sysfile
(cat the file into the output here)


6. (2 points) Create a bash script to create a new file with no content in the most efficient way. The file should have today's date in the file name, and should include that date no matter what date the current date is. That means that it must pull the date from the system, not include a date that you put in manually. Do not use a text editor for this.


7. (4 points) Create a bash script to use the 10 most important Linux commands, an explanation of each, and include each command with at least two options, and put the commands and results into a file named AllMyCommands
(cat the file into the output here)
The first command in the new file would look something like:
ls -al -> Provides a long listing of all files in the current directory.
[root@localhost /]# ls -al
total 102
dr-xr-xr-x. 23 root root 4096 Dec 12 21:49 .
dr-xr-xr-x. 23 root root 4096 Dec 12 21:49 ..
-rw-r--r-- 1 root root 0 Dec 12 21:32 .autofsck
-rw-r--r-- 1 root root 0 Jul 19 02:17 .autorelabel
dr-xr-xr-x. 2 root root 4096 Nov 23 03:13 bin
dr-xr-xr-x. 5 root root 1024 Nov 23 05:29 boot
drwxr-xr-x 10 root root 4096 Nov 23 03:42 cgroup


Do not use ls-al, as that answer has already been provided here.

May 09, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here