Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with these questions in the Linux system! 19: In your /home directory modify the .bash_profile file so that when you login you

I need help with these questions in the Linux system!

image text in transcribed
19: In your /home directory modify the .bash_profile file so that when you login you are greeted with "Last Day of Class" appearing on the screen. 20: In your /home directory, create a new empty directory named test3. Change the permissions on test3 so that the owner has rwx, your primary group as r-x, and all users have r only permissions. Move into this directory. All work from this point forward should be done in this directory unless stated. 21: Create new blank files named elephant, manatee, and ostrich. Write a script named script 21.sh that deletes elephant and zebra. (No, zebra does not exist, that's the point). Run the script with standard error redirected to a file named error21.out. 22: Write a script named script22.sh that asks the user to enter a username into a variable, then plugs that username into the command ps -ef | grep username > > question22.out. Run this script. 23: Write a script named script23.sh that asks the user what file they'd like to pull data from. Accept the filename as input. Ask the user to input what delimiter to use. Accept a character as input. Use the cut command to pull the second field out of the file with the delimiter given by the user and dump this information to a file named question23.out. 24: Copy the /tmp/testpass file into this test3 directory using the same filename. Look at the file and see what character is used as a delimiter. Run script23.sh, using testpass as the filename and the correct delimiter

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

Students also viewed these Programming questions