Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please to write a bash script to perform the following functions in a script named admino.sh The following subsections will describe the functions: ( -
Please to write a bash script to perform the following functions in a script named admino.sh
The following subsections will describe the functions:
hhelp Help Function:
The capture below shows the execution of the script for this argument:
$admino help
Welcome to the Admino system information script
Please follow the following instructions to use it
admino provides hostname information.
then you list the helpdescription of the following functions you have implemented
IP Address of a Network Interface:
The capture below shows the execution of the script for this argument:
$ admino ens
Your ip for ens interface is:
List of Users in the System:
The capture below shows the execution of the script for this argument:
$ admino
The list of users of your system are:
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
operator
games
ftp
nobody
systemdbusproxy
systemdnetwork
dbus
polkitd
abrt
unbound
tss
libstoragemgmt
rpc
colord
usbmuxd
saslauth
List Users Into a Specific Group:
The capture below shows the execution of the script for this argument:
$ admino adm
List of users into group: adm
syslog
user
List the number of files own by an specific user from a particular directory
The capture below shows the execution of the script for this argument:
$ admino user home
This user has a total of files
Create and encrypt a zip file for all the files in a directory
The capture below shows the content of the directory and the results of the execution of the script for this argument:
$ tree homeinstructor
homeinstructor
cyfile
cyfile
cyfile
cyfile
cyfile
cyfile
cyfile
cyfile
cyfile
cyfile
cyfile
$ admino homeinstructor content.zip password
adding: cyfilestored
adding: cyfilestored
adding: cyfilestored
adding: cyfilestored
adding: cyfilestored
adding: cyfilestored
adding: cyfilestored
adding: cyfilestored
adding: cyfilestored $
adding: cyfilestored $
adding: cyfilestored
List of IPs and number of connections from where system's users have connected:
The capture below shows the output of the script for this argument:
$ admino
Con#IP Add
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