Looking for CMP4265 Applied Operating Systems A S2 2024/5 test answers and solutions? Browse our comprehensive collection of verified answers for CMP4265 Applied Operating Systems A S2 2024/5 at moodle.bcu.ac.uk.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
What is the result of the following script?
#! /bin/bash
echo hello world!
for i in `seq 1 5`;
do
echo -n $i
done
exit 0
Modify your script from the previous question so it can create and set attributes on multiple files.
Write a script that takes in the path and file name as an argument and creates a blank file, sets the immutable file attribute and then changes the permissions to give everyone access.
Write a script that takes the username as an argument and creates a user account of that name, also setting the password. Paste it in the box below.
What does the following line mean?
exit 1What does the following line mean?
touch $1What does the following line mean?
if [ $# -eq 1 ]What does the following line mean?
if [ $# -gt 0 ]