HIST WK 1-5 Homework

Apr 22nd, 2015
Studypool Tutor
Absolute Safety Training Paramedic Program
Price: $10 USD

Tutor description

Question 1. In the same folder as last week, create a new file titled week4prog1[name].scr. Answer: Question 2. Change the permissions on this new file to add the execute bit for user, group, and owner. Answer: Question 3. Run the following script: a. #!/bin/bash b. count=1 c. echo "start of the program" d. while [ $count -le 10 ] e. do 1) echo "Loop #$count" 2) sleep 10 3) count=$[ count + 1 ] f. done g. echo "end of the program Question 4. Modify the program to add a trap for SIGINT and SIGTERM. Answer: Question 5. Save the script and then run the script in the background. Answer: Question 6. Use the jobs commandto display a list of the jobs currently running. Answer: Question 7. Find the process id of the script and kill the job. Answer: Question 8. Check to see if you get the trap message. Answer: Question9. Run the script again using the at command to schedule the job in the future. Wait for the job to run to make sure it executes. Answer

Word Count: 463
Showing Page: 1/4
1. create a new file titledweek4prog1[name].scr Open a terminal.Gain access to terminal from the redhat screen[student@bsit_rh62 ~]$2. Create a new group called mygroup. Hint: /usr/sbin/groupadd.Had many errors, but a lot of group id errors[student@bsit_rh62 sbin]$ sudo groupadd -g 001 mygroup[sudo] password for student:groupadd: GID '1' already exists[student@bsit_rh62 sbin]$ sudo groupadd -g 002 mygroupgroupadd: GID '2' already exists[student@bsit_rh62 sbin]$ sudo groupadd -g 2012 mygroupCreate a new folder and name it your first name.I forgot to put sudo the first time, and then when I copied I reverted to my Windows knowledge[student@bsit_rh62 sbin]$ mkdir namemkdir: cannot create directory `name': Permission denied[student@bsit_rh62 sbin]$ sudo mkdir name[student@bsit_rh62 sbin]$ ^C[student@bsit_rh62 sbin]$Get a directory listing of the home folder using the long listing format.Home directory and little information[student@bsit_rh62 sbin]$ ls /homestudent student2 tmp[student@bsit_rh62 sbin]$Modify the permissions on your new folder to set read, write, and execute permissions for the user and group.Had some issues and then realized th

Review from student

Studypool Student
" Outstanding Job!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1826 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors