You are on page 1of 4

PRAJNANANANDA INSTITUTE OF TECHNOLOGY & MANAGEMENT

CONTINUOUS ASSESSMENT 2

Paper : Unix and Shell programming

NAME : SOURAV DAS


COURSE : BCA , 6TH SEM.
ROLL NO :
REG. NO :
SUBJECT CODE : BCAC601
 Report on Kernel and Shell in UNIX
A kernel is basically the core and the heart of an OS
(Operating system). It functions to manage the operations of
the hardware and the computer. A kernel basically acts as a
bridge between any user and the various resources offered
by a system by accessing the various resources of a
computer, such as the I/O devices, CPU, and various other
resources.
It refers to a special user program or an
environment that provides a user with an interface for using
the services of the operating system. A shell executes various
programs on the basis of the input that a user provides.

 Report on Display date system in UNIX


We can set the time and date of the system by using
the date command. However, it is not recommended to
set the date and time of the system by the date command.
Because The Linux system clock is synchronized using the
sytemd-timesyncd or ntp services.
To set the time by the date command, use the "--set=
time" option. For example, if we want to set the date and
time as "08:15 pm, June 06, 2020", execute the command
as follows:
date --set="20200606 22:15"
 Command to display the present month an month
name.
Linux date Command Format Options
To format the date command’s output, you can use control
characters preceded by a + sign. Format controls begin
with the % symbol and are substituted by their current
values.

Here, the %Y character is replaced with the current year,


%m with month, and %d with the day of the month

Command :date +"Year:%Y, Month: %m, Day: %d"


%m – Month (01-12)
%B – Long month name (e.g., November)
%b – Short month name (e.g., Nov)

 Command to display the date in mm/dd/yy format

Display date in mm-dd-yy format


Open a terminal and type the following date command:
$date +"%m-%d-%y"

 Report on the use of echo command in UNIX.


echo command in linux is used to display line of
text/string that are passed as an argument. This is a built
in command that is mostly used in shell scripts and batch
files to output status text to the screen or a file.

Syntax :
echo [option] [string]
Displaying a text/string : Syntax :

echo [string] .
Example : echo -e "World \bis \bBeautiful"

You might also like