Day1 EXPERIMENT
Day1 EXPERIMENT
The Linux file system is the structure in which all the information on your computer
is stored. Files are organized within a hierarchy of directories. Each directory can
contain files, as well as other directories.
If you were to map out the files and directories in Linux, it would look like an upside-
down tree. At the top is the root directory, which is represented by a single slash
( / ). Below that is a set of common directories in the Linux system, such as bin,
dev, home, lib , and tmp , to name a few. Each of those directories, as well as
directories added to the root, can contain subdirectories.
Some of the Linux directories that may interest you include the following:
● /bin - Contains common Linux user commands, such as ls, sort , date , and
chmod .
● /boot - Has the bootable Linux kernel and boot loader configuration files
(GRUB).
● /sys - A /proc -like file system, added with the Linux 2.6 kernel and intended
to contain files for getting hardware status and reflecting the system's device
tree as it is seen by the kernel. It pulls many of its functions from /proc .
● /tmp - Contains temporary files used by applications.
COMMAND :
1.Date Command :
$date
$date +%ch
Options :
a = Abbrevated weekday. A
= Full weekday.
b = Abbrevated month. B
= Full month.
c = Current day and time.
C = Display the century as a decimal number.
d = Day of the month.
D = Day in „mm/dd/yy‟ format
h = Abbrevated month day. H
= Display the hour.
L = Day of the year. m =
Month of the year. M =
Minute.
P = Display AM or PM S
= Seconds
T = HH:MM:SS format u
= Week of the year.
y = Display the year in 2 digit. Y
= Display the full year.
Z = Time zone .
2.Calender Command :
This command is used to display the calendar of the year or the particular month of
calendar year.
Syntax :
a.$cal <year>
b.$cal <month> <year>
Here the first syntax gives the entire calendar for given year & the second Syntax gives
the calendar of reserved month of that year.
3.Echo Command :