Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Linux Shell Scripting, what are the commands? b. Ask the user to enter first

ID: 2247815 • Letter: I

Question

In Linux Shell Scripting, what are the commands?

b. Ask the user to enter first and last name and greet the user.

c. Display the OS release and its Linux flavor.

d. Display the record log of your past login times (your id only).

e. Display the server available memory.

f. Display all currently running processes on the server excluding root user processes.

g. Display the server IP address only.

h. Display the server current file system.

i. Display all user IDs and owner (field 1 and field 5 from /etc/passwd file).

j. Tell the user "Good bye" and display the current date and time.

Explanation / Answer

Solution==========================

cbecho Hello, Enter your first and last name?
read fname
read lname
echo Welcome, $fname $lname

c)uname -a

d)last username

e)free -m

f)ps -U root -u root -N

g)ip -4 a

h)df -h

i)awk -F':' '{ print $1,$5}' /etc/passwd

j)curDate=$(date +"%r")
echo Good Bye: $curDate

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote