EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login
Home Software Development Software Development Tutorials Unix Tutorial Unix Architecture
Secondary Sidebar
Unix Tutorial
  • Basic
    • What is Unix
    • Uses of Unix
    • Career In Unix
    • Install UNIX
    • Unix Architecture
    • Unix Commands
    • VI Command in Unix
    • AWK Command in Unix
    • Paste Command in Unix
    • SED Command in Unix
    • Sort Command in Unix
    • WHO Command in Unix
    • Unix Operators
    • UNIX Administrator
  • Advanced
    • Array in Unix
    • Functions in Unix
    • Unix File Permissions
    • Unix File System
    • Unix Shell Commands
    • Crontab in Unix
    • egrep command in Unix
    • For Loop in Unix
    • VI Editor in Unix
    • What is Unix Shell
    • Gnome Development
    • UNIX interview questions
    • Cheat sheet for UNIX
    • Unix Sort by Column
    • Find Command in Unix
    • Gnome Version

Related Courses

Linux Training Course

Kali Linux Training

Red Hat Training Course

Unix Architecture

By Priya PedamkarPriya Pedamkar

Unix Architecture

Introduction to Unix Architecture

The architecture of Unix is divided into kernel, hardware, shell, files and directories in which the kernel manages the connections related to hardware, applications and commands. While the second layer is hardware and the third layer called shell is the bridge between the user, commands executed by the user and the commands in Unix that are already predefined and the last layer is files and directories which are called Unix programs mostly and can be considered as commands in Unix.

Unix Definition

UNIX can also be called as an operating system that has its utilization in both work stations and servers. This is important for the development of the internet and the reconfiguration of computer systems. Unix was developed by Ken Thompson, Dennis Ritchie and other people working at AT&T laboratories. This was mainly developed for the intention to help the programmers develop software rather than non-programmers. However, now it is used by everyone because of its simplicity. This is designed to be accessed by multiple people at a time and be multitasking and time-sharing configuration.

Unix Working

UNIX operated systems are classified into various sub context let us know about them below-

  1. The first step is the Plain Text for data storage.
  2. This consists of the hierarchical file system.
  3. Considering treating devices and interprocess communications as a file.
  4. The fourth part is the use of a large number of software tools in other words which can be categorized into small programs connected through an interpreter using pipes.

Unix Application Programming Interface

Many of the operating systems have a simple view of how applications behave depending on their use. The application written in the operating system reads the data from disk, terminal, printer or tape and does the required processing on the other end required output is produced on to the disk, terminal, printer or tape. Generally, operating systems are inbuilt with well-implemented facilities to support such kind of applications.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

All in One Software Development Bundle(600+ Courses, 50+ projects)
Python TutorialC SharpJavaJavaScript
C Plus PlusSoftware TestingSQLKali Linux
Price
View Courses
600+ Online Courses | 50+ projects | 3000+ Hours | Verifiable Certificates | Lifetime Access
4.6 (86,560 ratings)

As the applications, demand raises the need for more sophisticated features such as network access, inter-process communication, multitasking also increases. These features are not documented and cannot be understood easily. The main thing is these are callable only from assembly level language. The kind of program written with these features is tough to handle and maintain.

The Unix os is written in C language the “input-processing-output” application can be run easily without writing assembly language.

Unix Architecture

The architecture of UNIX is basically divided into four main layers-

  1. Kernel
  2. Hardware
  3. Shell
  4. Files and directories

The first layer kernel deals with all the hardware connections all the applications and commands are associated with it. Hardware is the second layer. The third layer known as shell acts as the bridge between the user, user commands and predefined UNIX commands. Last but not the least files and directories can be concluded as the UNIX commands which will be UNIX programs in most cases. The final layer is the user. This means the whole operating system is visible to the user from the shell itself

Let us know about each of them in detail:

1. Kernel

Amongst the four layer’s kernel is the most powerful one. The kernel contains mainly utilities along with the master control program. Kernel program has the power to start or stop a program and even handle the file system. It also suggests which program to be selected when two resources try to access the device at the same time for the same resource. As the kernel has special access to the OS this leads to the division of space between user-space and kernel-space.

Kernel structure is designed in such a way it should support primary UNIX requirements. Which are divided into two categories and listed below

  1. Process management.
  2. File management.
  • Process Management

The resource allocation in CPU, memory, and services are few things which will be handled under process management.

  • File Management

File management deals with managing all the data in files needed by the process while communicating with devices and regulating data transmission.

The main operations done by the kernel are

  1. Kernel ensures the running of user-given programs is done on time.
  2. Plays a role in memory allocation.
  3. Manages the swapping between memory and disk.
  4. Transports data between peripherals.
  5. The kernel also requests service from the process.

That’s the reason why the kernel is called as the heart of the UNIX system. The kernel itself can be defined as a small program that contains enough data structure to pass arguments and receive results from a call and the process them on the calling process.

2. Hardware

Hardware can be defined as the system components which are seen through the human eye and be touched like keyboard, monitors, etc., Hardware also included speakers, clocks, devices in OS architecture.

3. Shell

The shell can easily be defined as the software program which acts as a communication bridge between kernel and user. When the user gives the commands the shell reads the commands, understands them and then sends a request to execute the program. Then when the program is executed it again sends the request to display the program to the user on-screen. The shell can also be called a command interpreter. As told above the shell calls the kernel there are all most 100 in build calls.

Various tasks which shell ask the kernel to do are

  1. File opening.
  2. File writing.
  3. Executing programs.
  4. Obtaining detailed information about the program.
  5. Termination of the process.
  6. Getting information about time and date.

4. Unix Files And Directories

This includes user-written and shell programs as well as libraries of UNIX

Directories

Directories in Unix have name, path, files, and folder. Rules for both files and folders are the same. These are stored in the up-side-down hierarchical tree structure. The main working flow of directories is as follows.

  • Displays home directories.
  • Copies files to other directories.
  • Renaming directories.
  • Deleting directories.

Files

These are the files that contain data, text and program instructions. The main workflow of files is

  • Store user information like an image drawn or some content written.
  • Mostly located under a directory.
  • It does not allow/store the data of other files.

Conclusion

In this, we have discussed the most important topics of the Unix system and also learned the basics of operating systems. The kernel makes Unix the most secure operating system than the Windows operating system. Excluding ease of operation for the user which is a windows operating system, Unix is most preferred than windows and its users are enormously increasing day-to-day. Many software companies from start-ups to Mnc’s are using Unix operating systems.

Recommended Articles

This has been a guide to Unix Architecture. Here we discussed the working, application program and architecture of Unix respectively. You can also go through our other suggested articles to learn more –

  1. What is Unix Shell?
  2. What is Unix?
  3. Unix commands
  4. Unix Operators
Popular Course in this category
Linux Training Program (16 Courses, 3+ Projects)
  16 Online Courses |  3 Hands-on Projects |  160+ Hours |  Verifiable Certificate of Completion
4.5
Price

View Course

Related Courses

Kali Linux Training (3 Courses, 3+ Projects)4.9
Red Hat Linux Training Program (4 Courses, 1+ Projects)4.8
1 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Software Development Course

C# Programming, Conditional Constructs, Loops, Arrays, OOPS Concept

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more