Introduction and Overview Getting Started

Size: px
Start display at page:

Download "Introduction and Overview Getting Started"

Transcription

1 Introduction and Overview Getting Started 1 Chapter-1 Introduction and Overview Getting Started Chapter Objectives Definition of operating system and the services offered by it. Types of operating system. History of UNIX and Linux along with their features. File system architecture details. Types of users and files in UNIX/LINUX. Basic UNIX Commands. Recap. Quiz. 1.1 Definition of Operating System and the services offered by it Operating system (OS) is a set of programs that manages the activities of the computer system and lets the user use the system resources effectively. Most desktop and laptop PCs come pre loaded with Microsoft Windows. Macintosh computers come with Mac OS X. Many corporate servers use the Linux or UNIX operating systems. The operating system is the first thing loaded onto the computer without the operating system; a computer is of no use. An operating system creates the ability to: a. serve a variety of purposes b. interact with users in more complicated ways c. keep up with needs that change overtime d. management of the processor, RAM, I/O e. file and Information Management f. management of execution of applications

2 2 Linux At the simplest level, an operating system does two things: 1. It manages the hardware and software resources of the system. In a desktop computer, these resources include such things as the processor, disk space, memory and more. 2. It provides a stable, consistent way for applications to deal with the hardware without having to know all the details of the hardware. The first task, managing the hardware and software resources, is very important, as various programs and input methods compete for the attention of the central processing unit and demand memory, storage and input/output bandwidth for their own purposes. The second task, providing a consistent application interface, is especially important if there is to be more than one of a particular type of computer using the operating system, or if the hardware making up the computer is ever open to change. A consistent application program interface allows a software developer to write an application on one computer and have a high level of confidence that it will run on another computer of the same type, even if the amount of memory or the quantity of storage is different on the two machines. There are cases where processes need to communicate with each other to exchange information. It may be between processes running on the same computer or running on the different computers. By providing this service the operating system relieves the user of the worry of passing messages between processes. In case where the messages need to be passed to processes on the other computers through a network it can be done by the user programs. The user program may be customized to the specifics of the hardware through which the message transits and provides the service interface to the operating system. 1.2 Types of Operating System From the previous section, we understood that Operating systems that create a link between end users and the applications form the core of computer systems. It dissociates the programs, the hardware and simplifies resource management. Let us look at the different types of operating systems in this section. Single user and Multi user Operating Systems: In a single user OS type, only a single person has access to all resources and in case of multi user OS, multiple users can access a computer system concurrently. Time sharing system can be classified as multi user systems as they enable a multiple user access to a computer through the sharing of time. Being able to have multiple accounts on a Windows operating system does not make it a multi user system. Rather, only the network administrator is the real user. But for a Unix

3 Introduction and Overview Getting Started 3 like operating system, it is possible for two users to login at a time and this capability of the OS makes it a multi user operating system. Some examples of multi user operating systems are Linux, Unix, and Windows Single tasking and Multi tasking Operating Systems: When a single program is allowed to run at a time, the system is grouped under a single tasking system, while in case the operating system allows the execution of multiple tasks at one time, it is classified as a multitasking operating system. Multitasking can be of two types namely, pre emptive or co operative. In pre emptive multitasking, the operating system slices the CPU time and dedicates one slot to each of the process. Unix like operating systems such as Solaris and Linux support pre emptive multitasking. Cooperative multitasking is achieved by relying on each process to give time to the other processes in a defined manner. MS Windows prior to Windows 95 used to support cooperative multitasking. UNIX and Windows 2000 are examples of multitasking systems. Real time Operating System: It is a multitasking operating system that aims at executing real time applications. Real time operating systems often use specialized scheduling algorithms so that they can achieve a deterministic nature of behavior. The main object of real time operating systems is their quick and predictable response to events. They either have an event driven or a time sharing design. Time sharing operating systems switch tasks based on the clock interrupts while an event driven system switches between tasks based on their priorities. DSP BIOS is an example for real time Operating system. Distributed Operating System: An operating system that manages a group of independent computers and makes them appear like a single computer is known as distributed operating system. The development of networked computers that could be linked and communicate with each other, gave rise to distributed computing. Distributed computations are carried out on more than one machine. When computers in a group work in cooperation, they make a distributed system. Embedded System: The operating systems designed for being used in embedded computer systems are known as embedded operating systems. They are designed to operate on small machines like PDAs with less autonomy. They are able to operate with a limited number of resources. They are very compact and extremely efficient by design. Windows CE, Minix 3 and Free BSD are some examples of embedded operating systems. 1.3 History of UNIX and LINUX along with their features Unix In , Kenneth Thompson, Dennis Ritchie, and others at AT&T Bell Labs began developing a small operating system on a little used PDP-7. The

4 4 Linux operating system was soon christened UNIX, a pun on an earlier operating system project called MULTICS. In , the system was rewritten in the programming language C, an unusual step that was visionary: due to this decision, UNIX was the first widely used operating system that could switch from and outlive its original hardware. Other innovations were added to UNIX as well, in part due to synergies between Bell Labs and the academic community. In 1979, the "seventh edition'' (V7) version of UNIX was released, the oldest of all extant UNIX systems Linux In 1991, Linus Torvalds began developing an operating system kernel, which he named "Linux". This kernel could be combined with the FSF material and other components to produce a freely modifiable and very useful operating system. This book will term the kernel itself the "Linux kernel'' and an entire combination as "Linux''. Note that many use the term "GNU/Linux'' instead for this combination. Linux is not derived from UNIX source code, but its interfaces are intentionally like UNIX. Therefore, UNIX lessons learned generally apply to both, including information on security Comparison of Unix and Linux UNIX is copyrighted name only big companies are allowed to use the UNIX copyright and name, so IBM AIX, Sun Solaris and HP UX all are UNIX operating systems. Most UNIX systems are commercial in nature. Linux is a UNIX Clone. It is just a kernel. All Linux distributions include GUI system, GNU utilities (e.g., ls, cp, mv, date, bash etc), installation and management tools, GNU c/c++ Compilers, Editors (VI) and various applications (e.g., Open Office, Firefox etc). However, most UNIX operating systems are considered as a complete operating system as everything comes from a single source or vendor. Linux is Free. It can be downloaded from the Internet or redistributed under GNU licenses. There is a best community support for Linux. Most UNIX like operating systems are not free. However, some Linux distributions such as Red hat/novell provides additional Linux support, consultancy, bug fixing, and training for additional fees. Linux is considered as most user friendly UNIX like operating systems. It makes it easy to install sound card, flash players and other desktop goodies. However, Apple OS X is most popular UNIX operating system for desktop usage. Linux comes with open source netfilter/iptables based firewall tool to protect the server and desktop from crackers and hackers. UNIX operating system comes with its own firewall product or need to purchase third party software such as Checkpoint UNIX firewall.

5 Introduction and Overview Getting Started File system architecture details Generalized file system provides a simple and unified way to access resources. The basic unit is a file. A file consists of essential data, metadata (data about the data), nonessential metadata, and some information. Unless the file is a directory, the information is given "as is" and not analyzed by the file system. Essential metadata can be edited only by the file system driver and other privileged programs, since, improper editing may make the file unusable. Nonessential metadata contain information useful for indexing systems (the indexing systems are ordinary programs, and not a part of the file system). Nonessential metadata have a nested structure. A directory (also known as a folder) is a file that may contain other files inside the file. Since, the file system is flexible and extensible, different directories may have different physical implementation. Essential metadata may include file size; date created, last modified, last accessed; directory structure; and special storage properties. Metadata of a directory may apply to files inside the directory. A symbolic link is an empty file that points to a file. The link may indicate either an absolute location or a location relative to the location of the link. Unless requested otherwise, a reference to a symbolic link is a reference to the file to which the link points. Files are identified by their path, such as /file_system/folder/file. For example, name 1/name 2 identifies file name 2 inside the file name1. Copying the file copies the contents of the identified file to the identified path. The file may then or during copying be converted to the appropriate structure for files in that location. The contents of the root file system must be adequate to boot, restore, recover, and/or repair the system. a. To boot a system, enough must be present on the root partition to mount other file systems. This includes utilities, configuration, boot loader information, and other essential start up data. /usr, /opt, and /var are designed such that they may be located on other partitions or file systems. b. To enable recovery and/or repair of a system, those utilities needed by an experienced maintainer to diagnose and reconstruct a damaged system must be present on the root file system. c. To restore a system, those utilities needed to restore from system back ups (on floppy, tape, etc.) must be present on the root file system. The following directories, or symbolic links to directories, are required in /. Directory bin boot Description Essential command binaries Static files of the boot loader

6 6 Linux dev etc lib media mnt opt sbin srv tmp usr var Device files Host specific system configuration Essential shared libraries and kernel modules Mount point for removable media Mount point for mounting a file system temporarily Add on application software packages Essential system binaries Data for services provided by this system Temporary files Secondary hierarchy Variable data Each directory listed above is specified in detail in separate subsections below. /usr and /var each have a complete section in this document due to the complexity of those directories. 1.5 Types of users and files in UNIX/LINUX Linux supports numerous file system types a. Ext2: This is like UNIX file system. It has the concepts of blocks, inodes and directories. b. Ext3: It is ext2 file system enhanced with journaling capabilities. Journaling allows fast file system recovery. Supports POSIX ACL (Access Control Lists). c. Isofs (iso9660): Used by CDROM file system. d. Sysfs: It is a ram based file system initially based on ramfs. It is used to exporting kernel objects so that end user can use it easily. e. Procfs: The proc file system acts as an interface to internal data structures in the kernel. It can be used to obtain information about the system and to change certain kernel parameters at runtime using sysctl command. For example, you can find out cpuinfo with following command: # cat /proc/cpuinfo f. Or you can enable or disable routing/forwarding of IP packets between interfaces with following command: # cat /proc/sys/net/ipv4/ip_forward # echo "1" > /proc/sys/net/ipv4/ip_forward # echo "0" > /proc/sys/net/ipv4/ip_forward g. NFS: Network file system allows many users or systems to share the same files by using a client/server methodology. NFS allows sharing all of the above file system.

7 Introduction and Overview Getting Started 7 h. Linux also supports Microsoft NTFS, vfat and many other file systems. See Linux kernel source tree Documentation/file system directory for list of all supported file system. i. You can find out what type of file systems currently mounted with mount command: $ mount OR $ cat /proc/mounts A UNIX file system is a collection of files and directories stored. Each file system is stored in a separate whole disk partition. The following are a few of the file system: a. / - Special file system that incorporates the files under several directories including /dev, /sbin, /tmp etc b. /usr - Stores application programs c. /var - Stores log files, mails and other data d. /tmp - Stores temporary files 1.6 Basic UNIX commands a. ls --- lists your files ls - l --- lists your files in 'long format', which contains lots of useful information. ls - a --- lists all files, including the ones whose filenames begin in a dot. b. more filename --- shows the first part of a file, as much as will fit on one screen. c. emacs filename --- is an editor that lets you create and edit a file. d. mv filename1 filename2 --- moves a file e. cp filename1 filename2 --- copies a file f. rm filename --- removes a file. g. diff filename1 filename2 --- compares files, and shows where they differ h. wc filename --- tells you how many lines, words and characters there are in a file i. chmod options filename --- change the read, write and execute permissions on files. j. File Compression i. gzip filename --- compresses files, so that they take up much less space. ii. gunzip filename --- uncompresses files compressed by gzip. iii. gzcat filename --- to look at a gzipped file without actually having to gunzip it.

8 8 Linux k. printing : i. lpr filename --- print. ii. lpq --- check out the printer queue. iii. lprm jobnumber --- remove something from the printer queue. Points to remember An operating system is a resource manager that is useful to handle all the available resources effectively and efficiently. The following are the available types of operating systems: Single user and Multi user operating systems Single tasking and Multi tasking operating systems Real time operating system and Distributed operating system Linux and UNIX are almost the same, except that Unix is commercial in nature. 1.7 Quiz 1. What is the need for an operating system? 2. What are the types of operating system available? 3. How does RTOS differ from other operating systems? 4. Which one is a free ware UNIX or Linux? 5. Define a file system. 6. What does dev correspond to? 7. How to change the read, write and execute permissions on files? Answers 1. It is acting as a resource manager. It enhances the utilization of available resources and it makes the user more comfortable. 2. There are single user, multi user, single- tasking, multi tasking, real time OS and distributed OS are available in the market. 3. RTOS is an operating system that works for real time system, i.e. logical correctness of the operation within a deterministic deadline is mandatory in that kind of systems. 4. Linux. 5. A UNIX file system is a collection of files and directories stored. 6. Dev refers to device files. 7. Chmod is the simplest way to change the file permissions. Chmod with number followed for user, group and others will get the permissions changed. o o o

9 Linux/Unix Commands An In-depth Analysis 9 Chapter-2 Linux/Unix Commands An In-depth Analysis Chapter Objectives Understanding Shell. Discuss directory commands. Discuss all file related commands. An analysis of rest of the Linux commands. Recap. Quiz. 2.1 What is Shell? Fortunately or unfortunately computers can only understand Binary (0 s and 1 s) and humans can only understand the English or equivalent high level language. In olden days instructions to the computer were fed in the form of binary only. But it was highly difficult for anyone (though being expert) to interpret and understand. In order to ward off this difficulty every operating system has got an inbuilt interpreter! The shell accepts instruction or command fed by user in English and will translate the same to binary language which computer can understand without any problem. After accepting the input it will process the same and get the output in English that user can easily understand. So, to be short and sweet, Shell is a language translator. Reader will be introduced to Shell of Linux and the commands that are most commonly used. A diagrammatic representation (Fig. 2.1) would make the above paragraph more meaningful and reader can understand it better. User Input (Commands) Shell English to Binary Conversion Yes, Boss! Ican understanding your request Fig. 2.1 Shell A Diagrammatic representation.

10 10 Linux And Shell is the area where user can play around with the commands and script that has to be run. It can be called as an environment where user can type and get response. Table 2.1 summarizes the available types of shell in the market and along with a brief description of each. Table 2.1: Available shells in the market with a brief description S.No. Name of Shell Description 1. Bourne Shell (bsh) This is the original Unix shell written by Steve Bourne of Bell Labs. This Shell is not as advanced as other latest shells. 2. C Shell (csh) This Shell was written at University of California, Berkeley. It provides C like language support for writing scripts. So, it is called as C Shell. 3. TC Shell (tcsh) This Shell is very advanced and all the features of the C shell together with emacs style editing of the command line is presented in this Shell. It is available for public domain. 4. Korn Shell (ksh) David Korn of Bell labs has written the Shell. This is made available in all Unix systems. Combined features of C and TC shells along with the features of Bourne shell are made available in ksh. This is very advanced and highly efficient shell. This is very interactive in nature as well. 5. Bourne Again Shell (BASH) This shell is written by free software foundation. GNU initiative helped in framing this out totally. Bash is meant totally for the usage of academic community and most of the Linux/ Unix users are using this shell. Bash provides the features of all the previously mentioned shells. It is in short a hybrid shell which combined the features of all shells. 2.2 LINUX / UNIX commands From here on the reader is exposed to the basic Linux commands. It would be very easy to understand if reader has a Linux PC. To get free Linux CD please visit One can get free CD from the site by filling the information requested or can download the OS image available from the site. If user has any other Linux OS flavours like Redhat or Fedora it can also be used to try the following commands. Get username and password from system administrator. Start the PC. It will prompt for typing name and password. Type them, Linux world will welcome!

Introduction to Linux

Introduction to Linux Introduction to Linux Prof. Jin-Soo Kim( jinsookim@skku.edu) TA Sanghoon Han(sanghoon.han@csl.skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Announcement (1) Please come

More information

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions Lanka Education and Research Network Linux Architecture, Linux File System, Linux Basic Commands 28 th November 2016 Dilum Samarasinhe () Overview History of Linux Linux Architecture Linux File System

More information

Overview of Unix / Linux operating systems

Overview of Unix / Linux operating systems Overview of Unix / Linux operating systems Mohammad S. Hasan Staffordshire University, UK Overview of Unix / Linux operating systems Slide 1 Lecture Outline History and development of Unix / Linux Early

More information

Practical Computing-II. Programming in the Linux Environment. 0. An Introduction. B.W.Gore. March 20, 2015

Practical Computing-II. Programming in the Linux Environment. 0. An Introduction. B.W.Gore. March 20, 2015 Practical Computing-II March 20, 2015 0. An Introduction About The Course CMS M.2.2 Practical Computing-II About The Course CMS M.2.2 Practical Computing-II 25 credits (33.33% weighting) About The Course

More information

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories Chapter Two Exploring the UNIX File System and File Security Lesson A Understanding Files and Directories 2 Objectives Discuss and explain the UNIX file system Define a UNIX file system partition Use the

More information

Brief Linux Presentation. July 10th, 2006 Elan Borenstein

Brief Linux Presentation. July 10th, 2006 Elan Borenstein Brief Linux Presentation July 10th, 2006 Elan Borenstein History 1965 - Bell Labs (AT&T), GE and MIT Project to develop a new (multiuser, multitasking) operating system - MULTICS. (not successful) History

More information

Systems Programming. The Unix/Linux Operating System

Systems Programming. The Unix/Linux Operating System Systems Programming The Unix/Linux Operating System 1 What is UNIX? A modern computer operating system Operating system: a program that acts as an intermediary between a user of the computer and the computer

More information

Unix System Architecture, File System, and Shell Commands

Unix System Architecture, File System, and Shell Commands Unix System Architecture, File System, and Shell Commands Prof. (Dr.) K.R. Chowdhary, Director COE Email: kr.chowdhary@iitj.ac.in webpage: http://www.krchowdhary.com JIET College of Engineering August

More information

UNIX. The Very 10 Short Howto for beginners. Soon-Hyung Yook. March 27, Soon-Hyung Yook UNIX March 27, / 29

UNIX. The Very 10 Short Howto for beginners. Soon-Hyung Yook. March 27, Soon-Hyung Yook UNIX March 27, / 29 UNIX The Very 10 Short Howto for beginners Soon-Hyung Yook March 27, 2015 Soon-Hyung Yook UNIX March 27, 2015 1 / 29 Table of Contents 1 History of Unix 2 What is UNIX? 3 What is Linux? 4 How does Unix

More information

Chapter-3. Introduction to Unix: Fundamental Commands

Chapter-3. Introduction to Unix: Fundamental Commands Chapter-3 Introduction to Unix: Fundamental Commands What You Will Learn The fundamental commands of the Unix operating system. Everything told for Unix here is applicable to the Linux operating system

More information

Introduction to Unix: Fundamental Commands

Introduction to Unix: Fundamental Commands Introduction to Unix: Fundamental Commands Ricky Patterson UVA Library Based on slides from Turgut Yilmaz Istanbul Teknik University 1 What We Will Learn The fundamental commands of the Unix operating

More information

Perl and R Scripting for Biologists

Perl and R Scripting for Biologists Perl and R Scripting for Biologists Lukas Mueller PLBR 4092 Course overview Linux basics (today) Linux advanced (Aure, next week) Why Linux? Free open source operating system based on UNIX specifications

More information

Today. Operating System Evolution. CSCI 4061 Introduction to Operating Systems. Gen 1: Mono-programming ( ) OS Evolution Unix Overview

Today. Operating System Evolution. CSCI 4061 Introduction to Operating Systems. Gen 1: Mono-programming ( ) OS Evolution Unix Overview Today CSCI 4061 Introduction to s Instructor: Abhishek Chandra OS Evolution Unix Overview Unix Structure Shells and Utilities Calls and APIs 2 Evolution How did the OS evolve? Dependent on hardware and

More information

UNIX Concepts COMPSCI 386

UNIX Concepts COMPSCI 386 UNIX Concepts COMPSCI 386 Topics History of C and UNIX The GNU Project Linux Command-Line Basics UNIX-Style File System Multics Multiplexed Information and Computing Service Time-sharing system for mainframes

More information

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University Introduction to Linux Woo-Yeong Jeong (wooyeong@csl.skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu What is Linux? A Unix-like operating system of a computer What is an

More information

Introduction to Linux

Introduction to Linux Introduction to Linux Prof. Jin-Soo Kim( jinsookim@skku.edu) TA - Kisik Jeong (kisik@csl.skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu What is Linux? A Unix-like operating

More information

Computer System Management - Unix/Linux

Computer System Management - Unix/Linux Computer System Management - Unix/Linux Amarjeet Singh August 30, 2011 Partly adopted from Computer System Management Slides by Navpreet Singh Logistics Learn-it-yourself topic assignment Many students

More information

Today. Operating System Evolution. CSCI 4061 Introduction to Operating Systems. Gen 1: Mono-programming ( ) OS Evolution Unix Overview

Today. Operating System Evolution. CSCI 4061 Introduction to Operating Systems. Gen 1: Mono-programming ( ) OS Evolution Unix Overview Today CSCI 4061 Introduction to s Instructor: Abhishek Chandra OS Evolution Unix Overview Unix Structure Shells and Utilities Calls and APIs 2 Evolution How did the OS evolve? Generation 1: Mono-programming

More information

Embedded System Design

Embedded System Design Embedded System Design Lecture 10 Jaeyong Chung Systems-on-Chips (SoC) Laboratory Incheon National University Environment Variables Environment variables are a set of dynamic named values that can affect

More information

Introduction to Cygwin Operating Environment

Introduction to Cygwin Operating Environment Introduction to Cygwin Operating Environment ICT 106 Fundamentals of Computer Systems Eric Li ICT106_Pract_week 1 1 What s Cygwin? Emulates Unix/Linux environment on a Windows Operating System; A collection

More information

Lecture Topics. Announcements. Today: Operating System Overview (Stallings, chapter , ) Next: Processes (Stallings, chapter

Lecture Topics. Announcements. Today: Operating System Overview (Stallings, chapter , ) Next: Processes (Stallings, chapter Lecture Topics Today: Operating System Overview (Stallings, chapter 2.1-2.4, 2.8-2.10) Next: Processes (Stallings, chapter 3.1-3.6) 1 Announcements Consulting hours posted Self-Study Exercise #3 posted

More information

EECS2301. Lab 1 Winter 2016

EECS2301. Lab 1 Winter 2016 EECS2301 Lab 1 Winter 2016 Lab Objectives In this lab, you will be introduced to the Linux operating system. The basic commands will be presented in this lab. By the end of you alb, you will be asked to

More information

Introduction to Linux

Introduction to Linux Introduction to Operating Systems All computers that we interact with run an operating system There are several popular operating systems Operating Systems OS consists of a suite of basic software Operating

More information

Introduction to Linux

Introduction to Linux Introduction to Linux Prof. Jin-Soo Kim( jinsookim@skku.edu) TA - Dong-Yun Lee (dylee@csl.skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu What is Linux? A Unix-like operating

More information

Linux & Shell Programming 2014

Linux & Shell Programming 2014 Unit -1: Introduction to UNIX/LINUX Operating System Practical Practice Questions: Find errors (if any) otherwise write output or interpretation of following commands. (Consider default shell is bash shell.)

More information

Basics of system administration on a Unix system

Basics of system administration on a Unix system Basics of system administration on a Unix system Contents Introduction 3 Unix 9 User environment: the shell 10 File management: starting from / 11 Text editing 12 Package management 13 User management

More information

UNIX Kernel. UNIX History

UNIX Kernel. UNIX History UNIX History UNIX Kernel 1965-1969 Bell Labs participates in the Multics project. 1969 Ken Thomson develops the first UNIX version in assembly for an DEC PDP-7 1973 Dennis Ritchie helps to rewrite UNIX

More information

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions Welcome to getting started with Ubuntu 12.04 Server. This System Administrator Manual guide to be simple to follow, with step by step instructions with screenshots INDEX 1.Installation of Ubuntu 12.04

More information

Filesystem Hierarchy and Permissions

Filesystem Hierarchy and Permissions and Linux Prepared by Steven Gordon on 19 April 2017 Common/Reports/linux-file-permissions.tex, r1417 1/15 Multiuser and Server Operating System Linux systems are commonly used as a multi-user system E.g.

More information

Filesystem Hierarchy Operating systems I800 Edmund Laugasson

Filesystem Hierarchy Operating systems I800 Edmund Laugasson Filesystem Hierarchy Operating systems I800 Edmund Laugasson edmund.laugasson@itcollege.ee There has been used materials from Margus Ernits, Katrin Loodus when creating current slides. Current document

More information

Unix/Linux: History and Philosophy

Unix/Linux: History and Philosophy Unix/Linux: History and Philosophy History and Background Multics project Unix Linux Multiplexed Information and Computing Service Collaborative venture between General Electric, Bell Telephone Labs, and

More information

Welcome to Linux. Lecture 1.1

Welcome to Linux. Lecture 1.1 Welcome to Linux Lecture 1.1 Some history 1969 - the Unix operating system by Ken Thompson and Dennis Ritchie Unix became widely adopted by academics and businesses 1977 - the Berkeley Software Distribution

More information

Introduction: What is Unix?

Introduction: What is Unix? Introduction Introduction: What is Unix? An operating system Developed at AT&T Bell Labs in the 1960 s Command Line Interpreter GUIs (Window systems) are now available Introduction: Unix vs. Linux Unix

More information

*nix Crash Course. Presented by: Virginia Tech Linux / Unix Users Group VTLUUG

*nix Crash Course. Presented by: Virginia Tech Linux / Unix Users Group VTLUUG *nix Crash Course Presented by: Virginia Tech Linux / Unix Users Group VTLUUG Ubuntu LiveCD No information on your hard-drive will be modified. Gives you a working Linux system without having to install

More information

Manage Directories and Files in Linux. Objectives. Understand the Filesystem Hierarchy Standard (FHS)

Manage Directories and Files in Linux. Objectives. Understand the Filesystem Hierarchy Standard (FHS) Manage Directories and Files in Linux Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change Directories and List Directory Contents Create and View

More information

Filesystem Hierarchy and Permissions

Filesystem Hierarchy and Permissions 2 and Prepared by Steven Gordon on 19 April 2017 Common/Reports/linux-file-permissions.tex, r1417 1 Multiuser and Server Operating System systems are commonly used as a multi-user system E.g. multiple

More information

Full file at https://fratstock.eu

Full file at https://fratstock.eu Guide to UNIX Using Linux Fourth Edition Chapter 2 Solutions Answers to the Chapter 2 Review Questions 1. Your company is discussing plans to migrate desktop and laptop users to Linux. One concern raised

More information

INTRODUCTION TO LINUX

INTRODUCTION TO LINUX INTRODUCTION TO LINUX REALLY SHORT HISTORY Before GNU/Linux there were DOS, MAC and UNIX. All systems were proprietary. The GNU project started in the early 80s by Richard Stallman Goal to make a free

More information

Linux Systems Administration Getting Started with Linux

Linux Systems Administration Getting Started with Linux Linux Systems Administration Getting Started with Linux Network Startup Resource Center www.nsrc.org These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International

More information

Operating Systems. Copyleft 2005, Binnur Kurt

Operating Systems. Copyleft 2005, Binnur Kurt 3 Operating Systems Copyleft 2005, Binnur Kurt Content The concept of an operating system. The internal architecture of an operating system. The architecture of the Linux operating system in more detail.

More information

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing Content 3 Operating Systems The concept of an operating system. The internal architecture of an operating system. The architecture of the Linux operating system in more detail. How to log into (and out

More information

Introduction to Linux Overview and Some History

Introduction to Linux Overview and Some History Introduction to Linux Overview and Some History Computational Science and Engineering North Carolina A&T State University Instructor: Dr. K. M. Flurchick Email: kmflurch@ncat.edu Operating Systems and

More information

tech. solutions T2G Page1 ALT_01_Ch1 : Introduction to Linux ideas and history The History of Linux starts with the earlier development of UNIX.

tech. solutions T2G Page1 ALT_01_Ch1 : Introduction to Linux ideas and history The History of Linux starts with the earlier development of UNIX. Page1 ALT_01_Ch1 : Introduction to Linux ideas and history The History of Linux starts with the earlier development of UNIX. UNIX In 1969-1970, Kenneth Thompson, Dennis Ritchie, and others at AT&T Bell

More information

Linux Session Part I. Kesavan M

Linux Session Part I. Kesavan M Linux Session Part I Kesavan M 180976 Overview What is an Operating System? UNIX History Parts of the UNIX OS Flavors of UNIX Before Linux GNU project Beginning of Linux Linux Today Linux - free software

More information

Linux for Beginners. Windows users should download putty or bitvise:

Linux for Beginners. Windows users should download putty or bitvise: Linux for Beginners Windows users should download putty or bitvise: https://putty.org/ Brief History UNIX (1969) written in PDP-7 assembly, not portable, and designed for programmers as a reaction by Bell

More information

Introduction to UNIX and Linux: Lecture 1

Introduction to UNIX and Linux: Lecture 1 Introduction to UNIX: Lecture One 1.1 Objectives This lecture covers: The concept of an operating system. The internal architecture of an operating system. The evolution of the UNIX operating system into

More information

System Administration

System Administration Süsteemihaldus MTAT.08.021 System Administration File system basics UNIX shell basics 1/23 2/23 3/23 4/23 5/23 6/23 System Root Mount points User Profiles /home /boot /dev/sda Boot loader files and Linux

More information

Appendix A GLOSSARY. SYS-ED/ Computer Education Techniques, Inc.

Appendix A GLOSSARY. SYS-ED/ Computer Education Techniques, Inc. Appendix A GLOSSARY SYS-ED/ Computer Education Techniques, Inc. $# Number of arguments passed to a script. $@ Holds the arguments; unlike $* it has the capability for separating the arguments. $* Holds

More information

EE516: Embedded Software Project 1. Setting Up Environment for Projects

EE516: Embedded Software Project 1. Setting Up Environment for Projects EE516: Embedded Software Project 1. Setting Up Environment for Projects By Dong Jae Shin 2015. 09. 01. Contents Introduction to Projects of EE516 Tasks Setting Up Environment Virtual Machine Environment

More information

Unix to Linux. CS 3113 Fall 2018 Dr. Christan Grant

Unix to Linux. CS 3113 Fall 2018 Dr. Christan Grant Unix to Linux CS 3113 Fall 2018 Dr. Christan Grant Outline A Brief History of Unix, C, Linux and the people involved. 2 https://commons.wikimedia.org/wiki/file:unix_history-simple.png 3 UNIX Unix definitions

More information

EECS Software Tools. Lab 2 Tutorial: Introduction to UNIX/Linux. Tilemachos Pechlivanoglou

EECS Software Tools. Lab 2 Tutorial: Introduction to UNIX/Linux. Tilemachos Pechlivanoglou EECS 2031 - Software Tools Lab 2 Tutorial: Introduction to UNIX/Linux Tilemachos Pechlivanoglou (tipech@eecs.yorku.ca) Sep 22 & 25, 2017 Material marked with will be in your exams Sep 22 & 25, 2017 Introduction

More information

INF322 Operating Systems

INF322 Operating Systems Galatasaray University Computer Engineering Department INF322 Operating Systems TP01: Introduction to Linux Ozan Çağlayan ocaglayan@gsu.edu.tr ozancaglayan.com Fundamental Concepts Definition of Operating

More information

Downloaded from various sources on the NET

Downloaded from various sources on the NET Overview Computers. Hardware components of a Computer. Purpose and functions of computer operating systems. Evolution of computer operating systems. Operating systems available today. Downloaded from various

More information

Linux Operating System

Linux Operating System Linux Operating System IT250 Unit 1 Chapters 1, 2, and 3 An Introduction to Linux Linux Operating Systems Wednesday, 9:00 am 1:20 pm Attendance is Mandatory! Each class may begin with a quiz from previous

More information

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester Linux Essentials Programming and Data Structures Lab M Tech CS First Year, First Semester Adapted from PDS Lab 2014 and 2015 Login, Logout, Password $ ssh mtc16xx@192.168.---.--- $ ssh X mtc16xx@192.168.---.---

More information

CS246 Spring14 Programming Paradigm Notes on Linux

CS246 Spring14 Programming Paradigm Notes on Linux 1 Unix History 1965: Researchers from Bell Labs and other organizations begin work on Multics, a state-of-the-art interactive, multi-user operating system. 1969: Bell Labs researchers, losing hope for

More information

h/w m/c Kernel shell Application s/w user

h/w m/c Kernel shell Application s/w user Structure of Unix h/w m/c Kernel shell Application s/w. user While working with unix, several layers of interaction occur b/w the computer h/w & the user. 1. Kernel : It is the first layer which runs on

More information

Introduction of Linux

Introduction of Linux Introduction of Linux 阳 oslab2018_class1@163.com 寅 oslab2018_class2@163.com PART I Brief Introduction Basic Conceptions & Environment Install & Configure a Virtual Machine Basic Commands PART II Shell

More information

(a) About Unix. History

(a) About Unix. History Part 1: The Unix Operating System (a) About Unix History First roots in the Bell Laboratories, early 60s Kernel rewrite in C by Ritchie / Thompson in the early 70s Source code licenses for Universities

More information

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2 Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades 2017-2018 Q2 Facultat d Informàtica de Barcelona This first lab session is focused on getting experience in working

More information

Essential Unix and Linux! Perl for Bioinformatics, ! F. Pineda

Essential Unix and Linux! Perl for Bioinformatics, ! F. Pineda Essential Unix and Linux! Perl for Bioinformatics, 140.636! F. Pineda Generic computer architecture Memory Storage Fig. 1.2 From Designing Embedded Hardware, 2 nd Ed. by John Catsoulis OS concepts Shell

More information

Introduction to Linux Basics

Introduction to Linux Basics Introduction to Linux Basics Part-I Georgia Advanced Computing Resource Center University of Georgia Zhuofei Hou, HPC Trainer zhuofei@uga.edu Outline What is GACRC? What is Linux? Linux Command, Shell

More information

Unix/Linux Operating System. Introduction to Computational Statistics STAT 598G, Fall 2011

Unix/Linux Operating System. Introduction to Computational Statistics STAT 598G, Fall 2011 Unix/Linux Operating System Introduction to Computational Statistics STAT 598G, Fall 2011 Sergey Kirshner Department of Statistics, Purdue University September 7, 2011 Sergey Kirshner (Purdue University)

More information

History of Unix and Linux

History of Unix and Linux License and cost Linux stand for Linus Unix. Linux originally developed by Linus Tarwalds of Finland, who currently owns the Linux trademark. Linux is Free (as in beer [freedom]). Using the open source

More information

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Mauro Ceccanti e Alberto Paoluzzi

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Mauro Ceccanti e Alberto Paoluzzi Lezione 8 Bioinformatica Mauro Ceccanti e Alberto Paoluzzi Dip. Informatica e Automazione Università Roma Tre Dip. Medicina Clinica Università La Sapienza Sommario Shell command language Introduction A

More information

GNU/Linux: An Essential Guide for Students Undertaking BLOSSOM

GNU/Linux: An Essential Guide for Students Undertaking BLOSSOM Copyright: The development of this document is funded by Higher Education of Academy. Permission is granted to copy, distribute and /or modify this document under a license compliant with the Creative

More information

CSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209

CSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209 CSC209 Software Tools and Systems Programming https://mcs.utm.utoronto.ca/~209 What is this Course About? Software Tools Using them Building them Systems Programming Quirks of C The file system System

More information

Unix Handouts. Shantanu N Kulkarni

Unix Handouts. Shantanu N Kulkarni Unix Handouts Shantanu N Kulkarni Abstract These handouts are meant to be used as a study aid during my class. They are neither complete nor sincerely accurate. The idea is that the participants should

More information

The UNIX operating system is a set of programs that act as a link between the computer and the user.

The UNIX operating system is a set of programs that act as a link between the computer and the user. Chapter 1: Introduction to Unix 1 INRODUCTION TO UNIX What is Unix? The UNIX operating system is a set of programs that act as a link between the computer and the user. The computer programs that allocate

More information

Underlying computer system = hardware + software

Underlying computer system = hardware + software Underlying computer system = hardware + software Thanks to Chandra Krintz and Kevin Sanft, for this figure and some other parts of these lecture notes. Processing data & instructions Program instructions

More information

Unix Introduction to UNIX

Unix Introduction to UNIX Unix Introduction to UNIX Get Started Introduction The UNIX operating system Set of programs that act as a link between the computer and the user. Developed in 1969 by a group of AT&T employees Various

More information

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Esercitazione Introduzione al linguaggio di shell

Lezione 8. Shell command language Introduction. Sommario. Bioinformatica. Esercitazione Introduzione al linguaggio di shell Lezione 8 Bioinformatica Mauro Ceccanti e Alberto Paoluzzi Esercitazione Introduzione al linguaggio di shell Dip. Informatica e Automazione Università Roma Tre Dip. Medicina Clinica Università La Sapienza

More information

Lecture 01: welcome and intro what LSD and Unix have in common

Lecture 01: welcome and intro what LSD and Unix have in common Lecture 01: welcome and intro what LSD and Unix have in common Hands-On Unix System Administration DeCal 2012-08-27 1 / 21 The Two of the most famous products of Berkeley are LSD and Unix. I don t think

More information

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering ENG224 Information Technology Part I: Computers and the Internet Laboratory 2 Linux Shell Commands and vi Editor

More information

COPYRIGHTED MATERIAL. Unix Fundamentals. Brief History

COPYRIGHTED MATERIAL. Unix Fundamentals. Brief History 1 Unix Fundamentals The Unix operating system was created more than 30 years ago by a group of researchers at AT&T s Bell Laboratories. During the three decades of constant development that have followed,

More information

Computer Systems and Architecture

Computer Systems and Architecture Computer Systems and Architecture Stephen Pauwels Computer Systems Academic Year 2018-2019 Overview of the Semester UNIX Introductie Regular Expressions Scripting Data Representation Integers, Fixed point,

More information

The UNIX Operating System. HORT Lecture 2 Instructor: Kranthi Varala

The UNIX Operating System. HORT Lecture 2 Instructor: Kranthi Varala The UNIX Operating System HORT 59000 Lecture 2 Instructor: Kranthi Varala Operating Systems Image By Golftheman - Own work, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=4558519 Operating

More information

Lecture 2: The file system

Lecture 2: The file system Lecture 2: The file system Hands-on Unix System Administration DeCal 2012-01-30 1 / 19 Basic programs Basic commands 2 / 19 Basic programs Basic programs Basic commands pwd cd ls cp, mv less, vi 3 / 19

More information

CST Algonquin College 2

CST Algonquin College 2 Partitions Lab due dates: Labs are due as specified usually on Page1 of the Lab document Lab due dates are expressed as: 10 min before the end of the lab period during a certain week There is a grace period

More information

Chapter 8 Operating Systems and Utility Programs أ.أمل زهران

Chapter 8 Operating Systems and Utility Programs أ.أمل زهران Chapter 8 Operating Systems and Utility Programs Chapter 8 Objectives Identify the types of system software Summarize the startup process on a personal computer Summarize the features of several stand-alone

More information

Introduction to Linux Part I: The Filesystem Luca Heltai

Introduction to Linux Part I: The Filesystem Luca Heltai The 2nd workshop on High Performance Computing Introduction to Linux Part I: The Filesystem Luca Heltai SISSA/eLAB - Trieste Adapted from a presentation by Michael Opdenacker Free Electrons http://free-electrons.com

More information

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14 Introduction to Linux (Part I) BUPT/QMUL 2018/03/14 Contents 1. Background on Linux 2. Starting / Finishing 3. Typing Linux Commands 4. Commands to Use Right Away 5. Linux help continued 2 Contents 6.

More information

UNIX / LINUX - GETTING STARTED

UNIX / LINUX - GETTING STARTED UNIX / LINUX - GETTING STARTED http://www.tutorialspoint.com/unix/unix-getting-started.htm Copyright tutorialspoint.com Advertisements What is Unix? The Unix operating system is a set of programs that

More information

CPS221 Lecture: Operating System Functions

CPS221 Lecture: Operating System Functions CPS221 Lecture: Operating System Functions Objectives 1. To overview key hardware concepts 2. To introduce the process concept 3. To discuss the various kinds of functionality of the OS last revised 8/25/11

More information

CISC 220 fall 2011, set 1: Linux basics

CISC 220 fall 2011, set 1: Linux basics CISC 220: System-Level Programming instructor: Margaret Lamb e-mail: malamb@cs.queensu.ca office: Goodwin 554 office phone: 533-6059 (internal extension 36059) office hours: Tues/Wed/Thurs 2-3 (this week

More information

Introduction to Linux

Introduction to Linux Introduction to Linux Mukesh Pund Principal Scientist, NISCAIR, New Delhi, India History In 1969, a team of developers developed a new operating system called Unix which was written using C Linus Torvalds,

More information

Linux Files and the File System

Linux Files and the File System Linux Files and the File System 1. Files a. Overview A simple description of the UNIX system, also applicable to Linux, is this: "On a UNIX system, everything is a file; if something is not a file, it

More information

Computer Architecture Lab 1 (Starting with Linux)

Computer Architecture Lab 1 (Starting with Linux) Computer Architecture Lab 1 (Starting with Linux) Linux is a computer operating system. An operating system consists of the software that manages your computer and lets you run applications on it. The

More information

Chapter 8 Operating Systems and Utility Programs

Chapter 8 Operating Systems and Utility Programs Chapter 8 Operating Systems and Utility Programs Chapter 8 Objectives Identify the types of system software Summarize the startup process on a personal computer Summarize the features of several stand-alone

More information

Course 55187B Linux System Administration

Course 55187B Linux System Administration Course Outline Module 1: System Startup and Shutdown This module explains how to manage startup and shutdown processes in Linux. Understanding the Boot Sequence The Grand Unified Boot Loader GRUB Configuration

More information

UNIX, GNU/Linux and simple tools for data manipulation

UNIX, GNU/Linux and simple tools for data manipulation UNIX, GNU/Linux and simple tools for data manipulation Dr Jean-Baka DOMELEVO ENTFELLNER BecA-ILRI Hub Basic Bioinformatics Training Workshop @ILRI Addis Ababa Wednesday December 13 th 2017 Dr Jean-Baka

More information

Session 1: Accessing MUGrid and Command Line Basics

Session 1: Accessing MUGrid and Command Line Basics Session 1: Accessing MUGrid and Command Line Basics Craig A. Struble, Ph.D. July 14, 2010 1 Introduction The Marquette University Grid (MUGrid) is a collection of dedicated and opportunistic resources

More information

Introduction to remote command line Linux. Research Computing Team University of Birmingham

Introduction to remote command line Linux. Research Computing Team University of Birmingham Introduction to remote command line Linux Research Computing Team University of Birmingham Linux/UNIX/BSD/OSX/what? v All different v UNIX is the oldest, mostly now commercial only in large environments

More information

Introduction to Unix. University of Massachusetts Medical School. October, 2014

Introduction to Unix. University of Massachusetts Medical School. October, 2014 .. Introduction to Unix University of Massachusetts Medical School October, 2014 . DISCLAIMER For the sake of clarity, the concepts mentioned in these slides have been simplified significantly. Most of

More information

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University Unix/Linux Basics 1 Some basics to remember Everything is case sensitive Eg., you can have two different files of the same name but different case in the same folder Console-driven (same as terminal )

More information

Introduction to Linux. Fundamentals of Computer Science

Introduction to Linux. Fundamentals of Computer Science Introduction to Linux Fundamentals of Computer Science Outline Operating Systems Linux History Linux Architecture Logging in to Linux Command Format Linux Filesystem Directory and File Commands Wildcard

More information

UNIX/Linux Fundamentals Lecture 1. Nick Stiffler Philip Conrad

UNIX/Linux Fundamentals Lecture 1. Nick Stiffler Philip Conrad UNIX/Linux Fundamentals Lecture 1 Nick Stiffler Philip Conrad Matrix Reloaded What will we cover? Operating system overview UNIX commands, shell & process mgt. Scripting languages Programming tools Various

More information

About the Presentations

About the Presentations About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning of each presentation. You may customize the presentations

More information

Introduction. Let s start with the first set of slides

Introduction. Let s start with the first set of slides Tux Wars Class - 1 Table of Contents 1) Introduction to Linux and its history 2) Booting process of a linux system 3) Linux Kernel 4) What is a shell 5) Bash Shell 6) Anatomy of command 7) Let s make our

More information

An Operating System History of Operating Systems. Operating Systems. Autumn CS4023

An Operating System History of Operating Systems. Operating Systems. Autumn CS4023 Operating Systems Autumn 2017-2018 Outline 1 2 What is an Operating System? From the user s point of view an OS is: A program that acts as an intermediary between a user of a computer and the computer

More information