Create Home Itadmin Midterm Directory Change Create File Called Midterm Commandssh Put Fol Q37284671

create the /home/itadmin/midterm directory and change intoit

create a file called midterm-commands.sh and put the followingcommands into it:

ls -la

ps

Save and close the file

Make the script executable with chmod

Execute the script and direct the output to your logfile

Put a timestamp in your logfile with: date >>LAB-linuxsrv.log

Close your current shell and open a new shell

Set the PATH in your .profile file to include the midtermdirectory

do the env command and output to the logfile

cd to /root and execute the script again from there, output tothe logfile

change the prompt for itadmin to end with the text“ADMINISTRATOR”

source the file to make the prompt change now

Put a

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.