MN404 Assignment 1: OS and CLI - Fundamentals of Programming

Verified

Added on  2023/01/20

|14
|1522
|70
Homework Assignment
AI Summary
This document presents a comprehensive solution to an individual assignment for the MN404 Fundamentals of Operating Systems and Programming course. The assignment is divided into two sections. Section 1 addresses the role of operating systems, including new features for IoT devices, security features in Linux and Windows, the interaction between operating systems, device drivers, and BIOS, and the relevance of batch processing. It also explores the RIOT OS for IoT. Section 2 focuses on command-line interface (CLI) exercises, covering tasks such as password changes, directory navigation, file copying, and permission management, with corresponding screenshots. The solution provides detailed answers and explanations for all questions, demonstrating a strong understanding of operating systems and programming concepts. The assignment emphasizes practical application and theoretical knowledge, offering a valuable resource for students studying operating systems and related topics.
Document Page
Running head: FUNDAMENTALS OF OPERATING SYSTEMS AND PROGRAMMING
Fundamentals of Operating Systems and Programming
Name of the Student
Name of the University
Authors note
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
1FUNDAMENTALS OF OPERATING SYSTEMS AND PROGRAMMING
Section 1
Answer to Question 1
With the existing features, the new features will include the data confidentiality using
the data encryption [5]. As the IoT devices collects user’s personal information in order to
provide personalized services thus encryption of the collected as well as transmitted data
needs to be managed by the Operating system.
In addition to that, another feature that needs to be included is the machine learning
capabilities. This will let the operating system to provide personalized services and
optimization for the appliances.
Answer to Question 2
The Linux as well as Windows are able to provide different role based user accounts
that can help in securing the resources from unauthorised access against the intrusion and
attacks. Both, the operating system have inbuilt firewall applications that are the first defence
against any kind of malicious attack [2]. Furthermore, the operating systems are able to use
virtual memory in order to run and execute applications that are running at a given point of
time. The operating system suffers from the memory fragmentation due to the issues in the
reading and writing the files on the hard drives. Windows as well as Linux systems are able
to run as server on low-memory computing systems. Automated task scheduling and
execution are supported by the operating systems. In Linux this is handled by “cron” on the
other hand the Windows manages the same using the Task Scheduler [1]. The operating
systems, maintains the file system for the in a tree like structure with the directories and its
contents. Both the operating systems are multitasking and multiprocessing systems.
Document Page
2FUNDAMENTALS OF OPERATING SYSTEMS AND PROGRAMMING
Answer to Question 3
The Operating system uses the device drivers in order to handle the hardware’s. The
device drivers are small sized programs that are stored on the hard drive of the computer that
instructs the computer to communicate with hardware device. This helps in interaction with
the printers, modem, network card. On the other hand, basic input/output system or the BIOS
is hard-coded on the motherboard that controls the input and output from and to the operating
system [7]. The ROM BIOS chip or firmware chip also helps in the management of the
devices. The BIOS are categorised in three categories, first is the program that control I/O
devices, next one is the program to that controls start-up of the computer and the last one is
helpful in changing the setup information which is stored on CMOS [10]. Through the use of
this components the OS manages the interaction with the different devices attached to the
system. In simple words it can be stated that the kernel of the operating system instructs the
BIOS for the interacting with available devices.
Answer to Question 4
Batch processing is important for the processing of the batched processes at later time
in order make the scarce resources for the users at any peak time. With the improved
processing of the tasks can help in ensuring that the CPU is used as efficiently as possible
[2]. The computer systems do not have to wait for the operator in order to load the programs
as well as data for the process. Even though batch processing in the operating systems are
developed years ago but this are considered important even today [10]. On the contrary the
batch processing is mainly important for the offline system but as there is cloud based
computing systems are available to the users and they can get scaled computing resources
according to the requirement thus it can be stated that in the present day, the Batch processing
is not that important.
Document Page
3FUNDAMENTALS OF OPERATING SYSTEMS AND PROGRAMMING
Answer to Question 5
From the analysis of the different available information systems it can be stated that
the RIOT is one of the most important and efficient OS for IoT. Developed in a modular
manner, this OS ensures the minimal memory usage [6]. It can run with few hundred bytes of
RAM. In addition to that, with the support to the entire network stack required for IoT such
as 802.15.4 Zigbee protocol, ICMP66, LoWPAN, RPL, Ipv6, CoAP and so on. Furthermore,
it also supports the, static as well as dynamic memory allocation for the efficient usage of the
resources.
Section 2
Answer to question 1
Changing password to “mypssd”
Login with the new password
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
4FUNDAMENTALS OF OPERATING SYSTEMS AND PROGRAMMING
Answer to question 2
Getting back to the home directory of the user,
Answer to question 3
Document Page
5FUNDAMENTALS OF OPERATING SYSTEMS AND PROGRAMMING
Copying files from /etc
Answer to question 4
Creating temp2.dir
Document Page
6FUNDAMENTALS OF OPERATING SYSTEMS AND PROGRAMMING
Copying all the content of temp.dir to temp2.dir
Answer to question 5
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
7FUNDAMENTALS OF OPERATING SYSTEMS AND PROGRAMMING
Answer to question 6
With the use of the “stat” command the last modification date can be checked.
Answer to question 7
Using the ls –al option it is possible to list all the files even with the files with name
starting with .
Answer to question 8
Document Page
8FUNDAMENTALS OF OPERATING SYSTEMS AND PROGRAMMING
Answer to question 9
Answer to question 10
Document Page
9FUNDAMENTALS OF OPERATING SYSTEMS AND PROGRAMMING
Answer to question 11
Checking the logged in user using “who” command.
Answer to question 12
For the created file I would not be able to change permission. For the recently
created file there is only write permission for the owner by default assigned by the
operating system. Therefore, in this case only the friend has the write and change
permission ability. Therefore, in order to be able to change the permission for other users
who would be able to change the status which is not available in this scenario.
Answer to question 13
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
10FUNDAMENTALS OF OPERATING SYSTEMS AND PROGRAMMING
Answer to question 14
Changing permission to rwxr-xr-x
Answer to question 15
Removing the executable permission on the pertestfile.
Document Page
11FUNDAMENTALS OF OPERATING SYSTEMS AND PROGRAMMING
chevron_up_icon
1 out of 14
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]