Cpps Lab 1
Cpps Lab 1
Theory:
What is an Operating System?
An operating system (OS) is a program loaded into a
system by a boot program that manages all the application
programs in a computer. It acts as an intermediary
between users and hardware. The OS provides services to
application programs via APIs and allows users to interact
with applications through CLI (Command Line Interface) or
GUI (Graphical User Interface). It ensures efficient
management of hardware resources and simplifies
application development by providing a consistent
environment.
Commands in Linux:
sudo command
sudo stands for superuser do and is one of the most
popular basic Linux commands. It allows users to perform
tasks that require administrative or root permissions.
When using sudo, the system will prompt users to
authenticate themselves with a password. Then, the Linux
system will log a timestamp as a tracker.
By default, every root user can run sudo commands for 15
minutes per session.
If you try to run sudo in the command line without
authenticating yourself, the system will log the activity as a
security event.
man
The man command in Linux is used to display the user
manual of any command that we can run on the terminal. It
provides a detailed view of the command, which includes
NAME, SYNOPSIS, DESCRIPTION, OPTIONS, EXIT
STATUS, RETURN VALUES, ERRORS, FILES,
VERSIONS, EXAMPLES, AUTHORS, and SEE ALSO.
Syntax: man [COMMAND NAME]
touch
The touch command is used to create a file. It can be
anything, from an empty .txt file to an empty .zip file.
Syntax: touch new.txt
rm
The rm command is used to remove a file.
echo
The echo command is a built-in utility that displays a line of
text or string using the standard output.
Syntax: echo [option] [string]
Conclusion
Through this experiment, I have gained valuable insights
into operating systems, particularly Linux. I learned that an
operating system acts as an interface between the user
and hardware, managing resources efficiently. Linux, an
open-source OS, offers powerful features like multitasking,
security, and flexibility. Understanding its components,
such as the bootloader, kernel, and daemons, provided a
clearer view of how the system functions.
Additionally, working with Linux commands enhanced my
command-line proficiency. Commands like man, touch,
echo, cd, and ls helped me navigate, manage files, and
retrieve information effectively. This experiment
strengthened my understanding of Linux OS and reinforced
the importance of command-line operations in system
administration.