Systems Programming - Lab1
Systems Programming - Lab1
______________________________________________________________________________
Section B: In this part of the assignment, you will be required to write shell
commands to perform the following functions. After executing each command,
capture the output in image format.
1. Change the permission of abc.sh to allow read, write and execute
permission for the current user but only read and execute for the group
and other users.
2. Display the OS and kernel versions that your system is currently running.
3. First, create two text files in1.txt and in2.txt using some editor (Gedit, Vi,
etc.). Create a new directory MyOut in the home directory and create a
third file out.txt in MyOut, which has combined content from both the
input files. (Hint: use redirection operators)
4. Search for a given word in all the three text files (in1.txt, in2.txt and out.txt)
5. Using the awk command, display the current directory's total size, including
all subdirectories in MegaBytes.
6. Display only the time part using date and cut shell commands.
Submission:
StudentID.zip with all commands and screen shorts from Section B.