Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Linux::: Task 22 Create a new script called info.sh. This script should display the following: 1. A greeting. 2. The time and date. 3.

In Linux:::

image text in transcribedimage text in transcribed

Task 22 Create a new script called info.sh. This script should display the following: 1. A greeting. 2. The time and date. 3. The system's uptime 4. The operating system you are running. 5. The kernel version Note: To get the Operating System and Kernel information use the "hostnamectl" command. When your script runs it should look like the screenshot below. [sysadmin@centos7 Scripts]$ bash info.sh Welcome to your Linux System Today is: Fri Oct 23 12:39:21 CDT 2020 Uptime: 12:39:21 up 31 days, 2:22 operating System: Centos Linux 8 (Core) Running Kernel version: Linux 3.10.0-1127.19.1.el7.x86_64 INFO 1111: Linux INFO-1111: LINUX Please paste a screenshot of your script's code below. Your screenshot below: Task 23 Use the following command to create some sample picture files in your home's Picture directory. touch /Pictures/pics(1..5).jpg Task 24 Create a script called backup-pics.sh that backups all your jpg files in the Pictures directory to the /tmp directory. When executed the script should look like the screenshot below. [sysadmin@centos7 Scripts]$ bash backup-pics.sh Copying jpg files to the /tmp directory. '/home/sysadmin/Pictures/pics1.jpg' -> '/tmp/pics1.jpg' 17home/sysadmin/Pictures/pics2.jpg' -> '/tmp/pics2.jpg' /home/sysadmin/Pictures/pics3.jpg' -> '/tmp/pics3.jpg' '/home/sysadmin/Pictures/pics4.jpg' -> '/tmp/pics4.jpg' '/home/sysadmin/Pictures/pics5.jpg' -> '/tmp/pics5.jpg' Transfer complete! [sysadmin@centos7 Scripts]$ Note: Use the echo command to display the top "Copying jpg files." and bottom "Transfer completel" text. Use the cp -v command to copy the files. The -v stands for verbose and displays everything being copied on the screen. Use absolute paths when copying the files. Please paste a screenshot of your script's code below. INFO 1111: Linux INFO-1111: LINUX 13 Your screenshot below

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions

Question

How is physical evidence used to investigate fraud?

Answered: 1 week ago

Question

2. How will the team select a leader?

Answered: 1 week ago