OYS Ganesh Bhanudas Kachare Roll Na 302
OYS Ganesh Bhanudas Kachare Roll Na 302
A MICRO-PROJECT REPORT ON
2021-22
Prof.Namrata Dakhane
SUBMITTED BY
SR NAME ENROLLMENT NO
01 KACHARE GANESH BHANUDAS 1911620138
02 CHAWARE SANIKA ARJUN 1911620096
CERTIFICATE
GOVERNMENT POLYTECHNIC, AMBAD.1162
Mr.____________________________________________
To the best of my knowledge and belief, the work embodied in this Microproject
has not formed earlier the basis for the award of any diploma of this or any other Board
or examining body.
DECLARATION
We, the undesired, hereby declare that the project entitled “Description
and Execution of Several Linux Commands” Is written and submitted by
us to Government Polytechnic Ambad during Year 2020-21, Fifth Semester
for partial fulfillment of the ‘Micro Project’ requirement of "Operating
System" subject under Maharashtra State Board of Technical
Education, Mumbai curriculum, under the guidance of
The empirical findings in this project are based on the data collected in this
project is collected from various sources.
I have great pleasure to express my immense gratitude towards a dynamic person and
my project guide Prof.namrata dakhane
I would like to extend our thanks to all our professors, staff members and all our
friends who extended their co-operation to complete the project.
I am indeed indebted to my parents and other family members for their immense
help at all levels with moral, social & financial support, care and support throughout my
studies without which my work would not have seen light of the day.
Creation :
In 1991, while attending the University of Helsinki, Torvalds became curious about
operating systems. Frustrated by the licensing of MINIX, which at the time limited it to
educational use only, he began to work on his own operating system kernel, which
eventually became the Linux kernel.
Torvalds began the development of the Linux kernel on MINIX and applications written
for MINIX were also used on Linux. Later, Linux matured and further Linux kernel
development took place on Linux systems. GNU applications also replaced all MINIX
components, because it was advantageous to use the freely available code from the GNU
Project with the fledgling operating system; code licensed under the GNU GPL can be
reused in other computer programs as long as they also are released under the same or a
compatible license. Torvalds initiated a switch from his original license, which
prohibited commercial redistribution, to the GNU GPL. Developers worked to integrate
GNU components with the Linux kernel, making a fully functional and free operating
system
Naming of Linux:
Linus Torvalds had wanted to call his invention "Freax", a portmanteau of "free",
"freak", and "x" (as an allusion to Unix). During the start of his work on the system,
some of the project's makefiles included the name "Freax" for about half a year.
Torvalds had already considered the name "Linux", but initially dismissed it as too
egotistical.[43]
In order to facilitate development, the files were uploaded to the FTP server () of FUNET
in ftp.funet.fi September 1991. Ari Lemmke, Torvalds' coworker at the Helsinki
University of Technology (HUT), who was one of the volunteer
administrators for the FTP server at the time, did not think that "Freax" was a good
name. So, he named the project "Linux" on the server without consulting Torvalds.
Later, however, Torvalds consented to "Linux".
Design:
A Linux-based system is a modular Unix-like operating system, deriving much of its
basic design from principles established in Unix during the 1970s and 1980s. Such a
system uses a monolithic kernel, the Linux kernel, which handles process control,
networking, access to the peripherals, and file systems. Device drivers are either
integrated directly with the kernel, or added as modules that are loaded while the system
is running.[59]
The GNU userland is a key part of most systems based on the Linux kernel, with Android
being the notable exception. The Project's implementation of the C library functions as
a wrapper for the system calls of the Linux kernel necessary to the kernel-userspace
interface, the toolchain is a broad collection of programming tools vital to Linux
development (including the compilers used to build the Linux kernel itself), and the
coreutils implement many basic Unix tools. The project also develops a popular CLI
shell. The graphical user interface (or GUI) used by most Linux systems is built on top
of an implementation of the X Window System.[60] More recently, the Linux community
seeks to advance to Wayland as the new display server protocol in place of X11. Many
other open-source software projects contribute to Linux systems.
1] Cal :
cal command is a calendar command in Linux which is used to see the
calendar of a specific month or a whole year. Rectangular bracket means it is
optional, so if used without option, it will display a calendar of current month and
year. cal : Shows current month calendar on the terminal.
Syntax : $ cal
Syntax : $ date
Example : $ date
3] History :
history command is used to view the previously executed command. This
feature was not available in the Bourne shell. Bash and Korn support this feature in
which every command executed is treated as the event and is associated with an event
number using which they can be recalled and changed if required. These commands are
saved in a history file. In Bash shell history command shows the whole list of the
command.
Syntax : $ history
Ex. $ history
4] Hostname :
hostname command in Linux is used to obtain the DNS(Domain Name
System) name and set the system's hostname or NIS(Network Information System)
domain name. A hostname is a name which is given to a computer and it attached to
the network. Its main purpose is to uniquely identify over a network
By default, id command is installed on most of Linux system. To use it, just type
id on your console. Typing id without no options will result as below. The result will
use the active user.
Syntax : $ id
Example : $ id
Output:
6] Man :
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..
directories.
The ls command is one the most commonly used commands in daily Linux/UNIX
operations. The command is used in listing contents inside a directory and is one of the
few commands beginners learn from the onset. In this guide, we will discuss Common
ls commands in Linux and other parameters as well that may be used alongside the
command.
The ls command without any options lists files and directories in a plain format
without displaying much information like file types, permissions, modified date and
time to mention just but a few.
8] Netstat :
netstat Command Usage on Linux. netstat (network statistics) is a
command-line tool that displays network connections (both incoming and outgoing),
routing tables, and a number of network interface statistics. It is available on Unix,
Unix-like, and Windows NT-based operating systems. Netstat command displays
various network related information such as network connections, routing tables,
interface statistics, masquerade connections, Netstat prints information about the
Linux networking subsystem
Syntax : $ netstat
9] Banner :
banner command in linux is used to print the ASCII character string in large
letter to standrad output.
BANNER COMMAND IN LINUX IS USED TO PRINT THE ASCII CHARACTER STRING IN LARGE LETTER TO
STANDRAD OUTPUT. EXAMPLE 2: PRINTING “OSY PROJECT” IN LARGE LETTERS. THERE ARE TWO
THINGS: FIRST, ALL THE LETTER WILL BE DISPLAYED IN CAPITAL LETTERS IN STANDARD OUTPUT
BANNER' IS A COMMAND WHICH PRINTS A HIGH RESOLUTION TEXT BANNER ON THE SYSTEM
CONSOLE OR IF YOU HAVE A PRINTER CONNECTED TO YOUR MACHINE . THE BANNER PROGRAM ON
UNIX AND UNIX-LIKE OPERATING SYSTEMS OUTPUTS A LARGE ASCII ART VERSION OF THE TEXT THAT IS
SUPPLIED TO IT AS ITS PROGRAM ARGUMENTS .
Syntax:
banner text
Installing :-
Basically it is available in linux but is not active or Install to work. First we
have to install it using the following command after trying banner command.
Example:
Output :
10] Passwd :
The passwd command changes passwords for user accounts. A
normal user may only change the password for his/her own account, while the
superuser may change the password for any account. passwd also changes the account
or associated password validity period.
the passwd command is used to change the password of a user account. A normal
user can run passwd to change their own password, and a system administrator (the
superuser) can use passwd to change another user's password, or define how that
account's password can be used or changed.
Syntax passwd [options] [LOGIN]
Output:
11] Pwd :
The pwd command is a command line utility for printing the
current working directory. It will print the full system path of the current working
directory to standard output. By default the pwd command ignores symlinks,
although the full physical path of a current directory can be shown with an
option
Syntax : $ pwd
12] Stty :
13] Time :
The time command is used to determine how long a given command
takes to run. It is useful for testing the performance of your scripts and commands.
For example, if you have two different scripts doing the same job and you want to
know which one performs better you can use the Linux time command to determine
the duration of execution of each script
Example : $ time
Output :
14] Uname :
The uname Command. The uname command reports basic
information about a computer's software and hardware. When used without any
options, uname reports the name, but not the version number, of the kernel (i.e., the
core of the operating system)
The -a (i.e., all) option tells uname to provide the following information: the name of
the kernel, network node host name (e.g., localhost.localdomain), kernel version
number and release level (e.g., 2.4.20-6), kernel release date, machine hardware
name, CPU (central processing unit) type, hardware platform and operating system
name (e.g., GNU/Linux).
Output :
15] Users :
users command in Linux system is used to show the user names of users
currently logged in to the current host. It will display who is currently logged in
according to FILE. If the FILE is not specified, use /var/run/utmp. /var/log/wtmp as
FILE is common.
Display login names of users currently logged in on system
Syntax
$ users
$ users [fileNameHere]
$ users --help
$ users --version
16] Who :
The Linux who command. The Linux "who" command lets you
display the users that are currently logged into your Unix computer system.
The basic who command with no command-line arguments shows the names of users
that are currently logged in, and depending on which Unix/Linux system you are
using, may also show the terminal they're logged in on, and the time they logged in.
Syntax : $ who
Example : $ who
Output :
17] Who Am I :