OSY
OSY
OSY
SR. NO Topics
Linux operating system is one of the popular versions of the UNIX operating system, which is designed
to offer a free or low cost operating system for personal computer users. It gained the reputation as a fast performing
and very efficient system. This is a remarkably complete operating system, including a GUI (graphical user
It is open source as its source code is freely available. It is free to use. Linux was designed considering UNIX
1. Kernel − Kernel is the core part of Linux. It is responsible for all major activities of this operating system.
It consists of various modules and it interacts directly with the underlying hardware. Kernel provides the
required abstraction to hide low level hardware details to system or application programs.
2. System Library − System libraries are special functions or programs using which application programs or
system utilities accesses Kernel's features. These libraries implement most of the functionalities of the
operating system and do not requires kernel module's code access rights.
3. System Utility − System Utility programs are responsible to do specialized, individual level tasks
Basic Features :
4. Portable − Portability means software can works on different types of hardware in same way. Linux
kernel and application programs supports their installation on any kind of hardware platform.
5. Open Source − Linux source code is freely available and it is community based development project.
Multiple teams work in collaboration to enhance the capability of Linux operating system and it is
continuously evolving.
6. Multi-User − Linux is a multiuser system means multiple users can access system resources like memory/
7. Multiprogramming − Linux is a multiprogramming system means multiple applications can run at same
time.
8. Hierarchical File System − Linux provides a standard file structure in which system files/ user files are
arranged.
9. Shell − Linux provides a special interpreter program which can be used to execute commands of the
operating system. It can be used to do various types of operations, call application programs. etc.
Security − Linux provides user security using authentication features like password protection/ controlled
Chapter 2
Aim Of The Project
The operating system is the system software which performs the basic tasks such as Process Management,
Memory Management, File System and control the execution of the user programs.
The Project entitled ‘File Operations In Linux ‘ is based on the study of the different file operations supported
by the Linux Operating system. And also deals with the different Linux Commands which performs the
The Linux OS provides shell or terminal that is used to type and execute the users typed commands For this
Project we have to. Know the basics of the operating system and especially the Linux Operating system
We have to execute the different commands for different types of file operations. The output of these
The Operating system performs the following tasks for user Applications which are follows :
1. Process Management
2. Memory Management
3. File Management
6. User Interface
Out of the these we have to deals with the File Management System which the important duty of the operating
system.
Chapter 3
File And Directory Structure In Linux
The file is nothing but the collection of information that is created by its creator, these files are stored on secondary
storage disk on the computer. The important function of the operating system is to support the file system
manipulation.
Every operating system has a particular structure of files and directories stored in the system. Here we have to deals
Directory Structure
Unix uses a hierarchical file system structure, much like an upside-down tree, with root (/) at the base of
the file system and all other directories spreading from there.
A Unix file system is a collection of files and directories that has the following properties –
The following picture shows the complete directory structure of the Linux Operating system
The directories have specific purposes and generally hold the same types of information for easily
locating files. Following are the directories that exist on the major versions of Unix –
Everything on your Linux system is located under the / directory, known as the root directory. You can
think of the / directory as being similar to the C:\ directory on Windows – but this isn’t strictly true, as
Linux doesn’t have drive letters. While another partition would be located at D:\ on Windows, this other
The following are the list of same basic Linux Commands which are
used to perform various operations on the given file as a input.
1
cat filename
Displays a filename
2
cd dirname
3
cp file1 file2
4
file filename
5
find filename dir
Finds a file/directory
6
head filename
8
ls dirname
9
mkdir dirname
10
more filename
11
mv file1 file2
12
pwd
13
rm filename
Removes a file
14
rmdir dirname
Removes a directory
15
tail filename
17
whereis filename
18
which filename
It is a command language interpreter that executes commands read from the standard input device such as
The shell gets started when you log in or open a console (terminaThe following picture shows an example
of the Linux terminal or shell used for executing the different commands.
Execution Of Commands
Listing Files
To list the files and directories stored in the current directory, use the following command −
$ls
Output
Creating Files
Example :-
Copying Files
To make a copy of a file use the cp command. The basic syntax of the command is −
$ cp source file destination file
Output
Change Directory
Syntax :- cd dirname
Example :-
Example :-
Counting Words in a File
You can use the wc command to get a count of the total number of lines,
words, and characters contained in a file. Following is a simple example to
see the information about the file created above –
Syntax :- wc filename
Example :-
Example :-
Deleting Files
To delete an existing file, use the rm command. Following is the basic
syntax −
$ rm filename
Example:-
Syntax :-
mv src_filename dest_directory
Example :-
Finding Files And Directories
The find command is used to find files and folders in your system
Syntax :-
find filename
find Directory_name
Example
Example:-
Exiting From Terminal
To exit from Linux Shell just type exit command and
press
Enter key.
Example
Chapter 6
The main Advantages of Linux over other Operating system are follows:
Open source
Linux is an Open source operating systems. You can easily get the source code for Linux and edit it to develop your
personal operating system. Today, Linux is widely used for both basic home and office uses. It is the main operating
system used for high performance business and in web servers. Linux has made a high impact in this world.
Low cost
There is no need to spend time and huge amount money to obtain licenses since Linux and much of it's software
come with the GNU General Public License. There is no need to worry about any software's that you use in Linux.
Stability
Linux has high stability compared with other operating systems. There is no need to reboot the Linux system to
maintain performance levels. Rarely it freeze up or slow down. It has a continuous up-times of hundreds of days or
more.
Performance
Linux provides high performance on various networks. It has the ability to handle large numbers of users
simultaneously.
Flexibility
Linux is very flexible. Linux can be used for high performance server applications, desktop applications, and
embedded systems. You can install only the needed components for a particular use. You can also restrict the use of
specific computers.
Compatibility
It runs all common Unix software packages and can process all common file formats.
Security
Linux is one of the most secure operating systems. File ownership and permissions make linux more secure.
Networking
Linux provides a strong support for network functionality; client and server systems can be easily set up on any
computer running Linux. It can perform tasks like network backup more faster than other operating systems.
Multitasking
Linux is a multitasking operating system. It can handle many things at the same time.
Linux uses its resources well enough even when the hard disk is almost full.
Wider Choice
There is a large number of Linux distributions which gives you a wider choice. Each organization develop and
support different distribution. You can pick the one you like best; the core function's are the same.
Chapter 7
Conclusion :- The Project entitled ‘Files Operations In Linux Operating System ‘is was
Based on the basic study of the Linux OS and its File Management Organization. By doing this project we got the
knowledge about operating system and its File System which is an important duty of any operating system.
We have see the File hierarchical structure of Files in Linux and we haca executed different Linux Commands for
performing the various operations on the files.
This project clears some basic concepts regarding the File System Manipulation in Linux Operating System.
So, in this way we have completed the Micro Project ‘Different File Operation In Linux OS successfully and
learned many new things and concepts during this project.
References :-
Websites :-
1. https://www.tutorialspoint.com/operating_system/
2. https://www.javatpoint.com/os-tutorial
3. https://www-geeksforgeeks-
4. https://www.guru99.com/must-know-linux-commands.html
Books :-