Design Principles in Linux

50 %
50 %
Information about Design Principles in Linux
Education

Published on June 18, 2009

Author: ahmedajaz

Source: authorstream.com

Slide 1: DESIGN PRINCIPLES LINUX SYSTEM Slide 2: The Linux System: Design Principles Its file system adheres to traditional UNIX semantics, and it fully implements the standard UNIX networking model. Main design goals are speed, efficiency, flexibility and standardization. Linux is designed to be compliant with the relevant POSIX documents; some Linux distributions have achieved official POSIX certification. Linux is a Multiuser Multitasking system with a full set of UNIX-compatible tools. Slide 3: The layers of a UNIX system Slide 4: Components of a UNIX System Like most UNIX implementations, Linux is composed of three main bodies of code: Standard Utilities Programs Standard Library Kernel Slide 5: The shell of a UNIX System The UNIX systems have a Graphical User Interface (Linux uses KDE, GNOME …), but the programmers prefer to type the commands. Shell: the user process which executes programs (command interpreter) Shell reads command (read from input) and translates it to the operating system. User types command Slide 6: The shell of a UNIX System Can run external programs (e.g. netscape) or internal shell commands (e.g. cd) Various different shells available: Bourne shell (sh), C shell (csh), Korn shell (ksh), TC shell (tcsh), Bourne Again shell (bash). The administrator of the system provides to the user a default shell, but the user can change shell. Slide 7: The shell of a UNIX System Example of commands $ cd /usr/src/linux $ more COPYING $ cp file1 file2 $ head –20 file $ head 20 file $ ls *.c $ ls [abc]* $ sort < file1 > file2 Slide 8: The shell of a UNIX System String multiple commands together in a shell script $ sort < file | head –30 $ grep $ sort < file1 > file2; head –30 < file2 ; rm temp. Slide 9: The shell is more ... The shell is programmable, that is it possible to make the shell scripts A shell script is a file containing a sequence of commands addressed to the operating system that facilitates the repeated execution of the included commands without their having to be laboriously retyped each time they are executed. Slide 10: The shell is more ... If there is a distinct ordered list of operating system commands that the user needs to execute repeatedly, for example, immediately after every login or immediately before every logout, then most operating systems have a facility for recording the list of commands in a file, which can then either be executed automatically upon login or logout, or can be invoked by the user through the issuance of a single command that results in the execution of the entire contents of the batch file, which can contain as few as one operating system command or as many as thousands. Slide 11: UNIX Utility Programs Slide 12: The Standard Library A system call is the method that the user process uses to ask for an action from the O.S. The programs perform the system calls by mean of trap. trap instruction: changes from user mode to kernel mode returns to user mode execution done on behalf of the operating system controls the correctness of the call parameters Slide 13: The Kernel The kernel is responsible for maintaining the important abstractions of the operating system. It provides the main functions of the abstract machine (system calls and Interrupt and traps). Linux kernel can load modules dynamically . Slide 14: File System / is the root directory; reference point for all directories. Every file has a unambiguous pathname: /home/user1/papers Slide 15: Some directories found in UNIX systems /bin Binaries which are absolutely essential to run Linux. /boot All the files required for booting Linux on a system. /dev All the devices have their corresponding files here. /etc All the configuration files for the various software are stored here. Don't play with this directory. /home All users will have their 'My Documents' under this directory. If your id is rossi, your 'My Documents' (called home-directory) is /home/rossi. /lib The libraries required by system-applications. (Just like DLLs in Windows.)

Add a comment

Related presentations

Related pages

Design Principles - GITAM University

Design Principles . Linux is a multi-user, multitasking system with a full set of UNIX-compatible tools.. Its file system adheres to traditional UNIX ...
Read more

Linux Design Principles and components of Linux system ...

Linux Design Principles and components of Linux system. Posted on January 29, 2015 Updated on January 29, 2015. Design Principles. Linux is a ...
Read more

The Linux System Linux History Design Principles Kernel ...

The Linux System Linux History Design Principles Kernel Modules Process Management Scheduling Memory Management File Systems Input and Output Interprocess.
Read more

Design Principles - sailfishos.org

Design Principles User Experience ... of just doing something different, the intention behind Sailfish is to always improve, innovate and create magical ...
Read more

Mac OS X - DESIGN PRINCIPLES AND KERNEL MODULES

MAC OS X. DESIGN PRINCIPLES INNER DESIGN FEATURES Pre-emptive multitasking and memory protection. Designed to be portable.
Read more

Software Design Principles and Guidelines Design ...

Software Design Principles and Guidelines Douglas C. Schmidt ... 4 Design Principles Micro Steps in the Design Process Given a requirements spec, design
Read more

DesignPrinciples < U-Boot < DENX

U-Boot Design Principles . The 10 Golden Rules of U-Boot design: The 10 Golden Rules of U-Boot design: 1. Keep it Small; 2. Keep it Fast; 3. Keep it Simple; 4.
Read more

Unix philosophy - Wikipedia, the free encyclopedia

The Unix philosophy, ... the project lead of Slackware Linux, invoked this design principle in a criticism of the systemd architecture, stating that, ...
Read more

Modern Design at Microsoft

Though “flat design” is a popular meme right now, there is something much, much deeper going on here at Microsoft. With my own lifelong passion for ...
Read more