Answered step by step
Verified Expert Solution
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:::
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started