Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Kali Virtual Create a bash script named kali02.sh that will produce an HTML file named kalireport.html. - The HTML file should display the following

In Kali Virtual

Create a bash script named kali02.sh that will produce an HTML file named kalireport.html.

- The HTML file should display the following information in an HTML table.

Research the command required for each of them

o The number of users in your system (hint: get the info from /etc/passwd file)

o The number of users that cannot log in (hint: use /etc/passwd and find the ones whose homedir contain nologin)

o The number of sudo users (hint: use /etc/group and find the sudo group)

o The Linux OS distribution of your machine (you can use the uname -a command for this)

o The name of your machine (you can use the hostname command)

o The length of time this machine has been ON (you can use the uptime command)

o The total number of processes currently running in the machine (you can use the ps -ax command)

o The number of log file in your system (you can use the find command to search the /var/log for any file whose name contain the log word. Make sure to redirect any error into /dev/null

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

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions