SlideShare a Scribd company logo
1 of 22
Introduction to
UNIX / Linux
CMSC 121 Introduction to UNIX
Much of the material in these slides was taken from
Dan Hood’s CMSC 121 Lecture Notes.
4/5/2014 1
https://sites.google.com/site/rajmirjelinu
x/home
What is an Operating System?
 The operating system (OS) is the program which starts up when
you turn on your computer and runs underneath all other
programs - without it nothing would happen at all.
 In simple terms, an operating system is a manager. It manages all
the available resources on a computer, from the CPU, to
memory, to hard disk accesses.
 Tasks the operating system must perform:
 Control Hardware - The operating system controls all the parts of the
computer and attempts to get everything working together.
 Run Applications - Another job the OS does is run application software.
This would include word processors, web browsers, games, etc...
 Manage Data and Files - The OS makes it easy for you to organize your
computer. Through the OS you are able to do a number of things to data,
including copy, move, delete, and rename it. This makes it much easier to
find and organize what you have.
4/5/2014 2
https://sites.google.com/site/rajmirjelinu
x/home
UNIX History
 The UNIX operating system was born in the late 1960s. It
originally began as a one man project led by Ken Thompson of
Bell Labs, and has since grown to become the most widely used
operating system.
 In the time since UNIX was first developed, it has gone through
many different generations and even mutations.
 Some differ substantially from the original version, like Berkeley Software
Distribution (BSD) or Linux.
 Others, still contain major portions that are based on the original source
code.
 An interesting and rather up-to-date timeline of these variations
of UNIX can be found at
http://www.levenez.com/unix/history.html.
4/5/2014 3
https://sites.google.com/site/rajmirjelinu
x/home
General Characteristics of UNIX as
an Operating System (OS)
 Multi-user & Multi-tasking - most versions of UNIX are capable of allowing multiple
users to log onto the system, and have each run multiple tasks. This is standard for most
modern OSs.
 Over 30 Years Old - UNIX is over 30 years old and it's popularity and use is still high.
Over these years, many variations have spawned off and many have died off, but most
modern UNIX systems can be traced back to the original versions. It has endured the test
of time. For reference, Windows at best is half as old (Windows 1.0 was released in the mid
80s, but it was not stable or very complete until the 3.x family, which was released in the
early 90s).
 Large Number of Applications – there are an enormous amount of applications available
for UNIX operating systems. They range from commercial applications such as CAD,
Maya, WordPerfect, to many free applications.
 Free Applications and Even a Free Operating System - of all of the applications
available under UNIX, many of them are free. The compilers and interpreters that we use in
most of the programming courses here at UMBC can be downloaded free of charge. Most
of the development that we do in programming courses is done under the Linux OS.
 Less Resource Intensive - in general, most UNIX installations tend to be much less
demanding on system resources. In many cases, the old family computer that can barely run
Windows is more than sufficient to run the latest version of Linux.
 Internet Development - Much of the backbone of the Internet is run by UNIX servers.
Many of the more general web servers run UNIX with the Apache web server - another
free application.
4/5/2014 4
https://sites.google.com/site/rajmirjelinu
x/home
Parts of the UNIX OS
 The Kernel - handles memory management, input and output requests, and
program scheduling. Technically speaking, the kernel is the OS. It provides
the basic software connection to the hardware. The kernel is very complex
and deals with the inner workings of these things, and is beyond the scope of
this course. The kernel is covered in detail in “Operating Systems.”
 The Shell and Graphical User Interfaces (GUIs) - basic UNIX shells
provides a “command line” interface which allows the user to type in
commands. These commands are translated by the shell into something the
kernel can comprehend, and then executed by the kernel.
 The Built-in System Utilities - are programs that allow a user to perform
tasks which involve complex actions. Utilities provide user interface functions
that are basic to an operating system, but which are too complex to be built
into the shell. Examples of utilities are programs that let us see the contents
of a directory, move & copy files, remove files, etc...
 Application Software & Utilities – these are not part of the operating
system, per se. They are additional programs that are bundled with the OS
distribution, or available separately. These can range from additional or
different versions of basic utilities, to full scale commercial applications.
4/5/2014 5
https://sites.google.com/site/rajmirjelinu
x/home
Flavors of UNIX
 These can be grouped into two categories: Open Source and Proprietary
 Proprietary: (redistribution and modification prohibited or restricted; not free)
 Solaris - Access to a Solaris UNIX server (solaris.gl.umbc.edu) via SSH access.
 IRIX - There are a couple of IRIX machines in the basement of the library, as well as server
access (irix.gl.umbc.edu) via SSH access.
 Mac OS X - no access currently available at UMBC.
 and many others...
 Open Source: (source code is readily available and free to modify)
 FreeBSD - no access currently available at UMBC.
 Linux Distributions - access is available in the form of dual-boot PCs scattered throughout
the Engineering building. There are also several Linux servers (linux.gl.umbc.edu) through
which access is available.
 RedHat (used by UMBC) and the Fedora Project (maintained by RedHat)
 Mandrake
 Debian
 SuSE
 Slackware
 and many others...
 As a side note, Linux is a open source UNIX-based OS that was originally developed in 1991 by
Linus Torvalds, a Finnish undergraduate student.
4/5/2014 6
https://sites.google.com/site/rajmirjelinu
x/home
UNIX Interfaces
 There are really 2 means of connecting to UNIX
computers here at UMBC:
 You can be sitting in front of a dual-bootable PC that you
have booted into Linux and logged onto. All of your
commands are then being run locally on that computer.
When you logon in this manner you have a full GUI
environment.
 You can connect remotely to one of the UNIX servers
(whether from home or at the labs). This is often how your
projects are suggested to be developed as they are graded on
those same servers. When you logon in this manner you have
a command line (or text based) environment. You can also
open up a command line on local lab machines as well.
4/5/2014 7
https://sites.google.com/site/rajmirjelinu
x/home
Graphical User Interfaces (GUIs)
 When you logon locally, you are presented with
graphical environment.
 You start at a graphical login screen. You must enter
your username and password. You also the have the
option to choose from a couple session types. Mainly
you have the choice between Gnome and KDE.
 Once you enter in your username and password, you
are then presented with a graphical environment that
looks like one of the following...
4/5/2014 8
https://sites.google.com/site/rajmirjelinu
x/home
Gnome
4/5/2014 9
https://sites.google.com/site/rajmirjelinu
x/home
KDE
4/5/2014 10
https://sites.google.com/site/rajmirjelinu
x/home
Command Line Interface
 You also have access to some UNIX servers as well.
 You can logon from virtually any computer that has internet
access whether it be Windows, Mac, or UNIX itself.
 In this case you are communicating through a local
terminal to one of these remote servers.
 All of the commands actually execute on the remote server.
 It is also possible to open up graphical applications through
this window, but that requires a good bit more setup and
software. (Time permitting, we may cover how to do this.)
4/5/2014 11
https://sites.google.com/site/rajmirjelinu
x/home
The Terminal
4/5/2014 12
https://sites.google.com/site/rajmirjelinu
x/home
Linux vs. Windows
 OS does not have to use a graphical interface.
 The OS itself (the kernel) is incredibly small.
 The GUI just another application (or set of applications) that can be
installed and run on top the existing text-based OS.
 File system differences.
 Windows typically uses FAT32 or NTFS file systems.
 Linux typically uses the ext2 or ext3 file systems
 In much larger research and university environments, where file access is
necessary across the network, something like Network File System (NFS)
or the Andrew File System (AFS) is used. We use AFS here on GL at
UMBC.
 Windows lists all drives separately (A:,C:,D:, etc…), with “My Computer”
at the highest level.
 UNIX starts its highest level at “/” and drives can be mounted anywhere
underneath it.
4/5/2014 13
https://sites.google.com/site/rajmirjelinu
x/home
UMBC’s Computing Environment
 You need a GL account username and password!
 Since almost all UNIX systems are multi-user systems you will need to
have a logon name and password to authenticate yourself to the system.
At UMBC, when you signup for a GL account, you are given a username
and password, which is your means of logging on to any computer
system, be it UNIX, Windows or Mac.
 Where is UNIX / Linux available?
 There are many labs in the Engineering (ENG) building where there are
dual-bootable Windows and Linux PCs. You can simple reboot one of
these machines and select Linux as the operating system.
 There are also a couple of other places across the campus where you can
sit directly in front of a UNIX computer. UMBC's Office of Information
Technology (OIT) maintains a list of the labs it maintains as well as
descriptions about the operating systems in those labs.
 This list is online at
http://www.umbc.edu/oit/classroomtechnology/labs/lablocation.html.
4/5/2014 14
https://sites.google.com/site/rajmirjelinu
x/home
Practical Tasks
 Rebooting the computer into Linux on a dual-
boot PC.
 Logging in.
 Locking the screen.
 Logging out.
 The non-graphical terminal!
 Press Ctrl-Alt-F2 then login
 Be sure to logout with the command “logout”
 Press Ctrl-Alt-F7 to get the GUI back.
4/5/2014 15
https://sites.google.com/site/rajmirjelinu
x/home
If all else fails in Gnome or KDE
 If your session seems to have froze up, you can
press ctrl-alt-backspace to restart the X
window server, in the process logging you out.
 Note that by doing it this way, you risk losing
unsaved work.
4/5/2014 16
https://sites.google.com/site/rajmirjelinu
x/home
What is X Window?
 X window is the program that draws windows on the screen
under most GUI-based versions of UNIX. It is important to
note that the language that X windows speaks is completely
different from that of Microsoft Windows or Mac OS X.
 Any X window system consists of 2 distinct parts - the X server
and 1 or more X clients.
 The server controls the display directly, and is responsible for all
input/output via the keyboard, mouse or display.
 The clients, on the other hand, do not access the screen directly - they
communicate with the server, which handles all input and output.
 It is the clients which do the "real" computing work - running applications or
whatever.
 The clients communicate with the server, causing the server to open one or
more windows to handle input and output for that client.
4/5/2014 17
https://sites.google.com/site/rajmirjelinu
x/home
What’s the deal about the X Window
Server and Client?!
 The X window server runs on the machine to which the monitor is
connected.
 The clients may also run on this machine, communicating directly with the
server. On most workstations, this is the normal situation. However, X is a
networked window system, and it is possible for the client to run on a remote
machine, communicating with the server via some form of network.
 It is possible to connect to one of the UMBC servers and launch graphical
applications from one of the UNIX servers.
 This does require that an X window server is installed on the machine from which
you are connecting from. This is automatically running if you are running a GUI
UNIX system.
 You can also install an X window server on top of Microsoft Windows, so that
you can open up windows locally that are talking to the server at UMBC. Like I
said earlier, this does require installing some software on the client side, and time
permitting we may talk about this later in the course.
4/5/2014 18
https://sites.google.com/site/rajmirjelinu
x/home
What is a Desktop Manager?
 Gnome and KDE are examples of desktop managers. Both of these look a lot
like Microsoft Windows.
 They have the equivalent of a Start Menu, have an equivalent of Windows
Explorer, and have some sort of control panel.
 The roll of the Desktop Manager is to provide you with the ability to manage
all of the details of your system that would otherwise require you to type in a
bunch of commands in a terminal window.
 These details include managing your files, launching programs, configuring
various aspects of your system, etc.
 It is also worthy to note that the desktop manager is optional. Many older
systems did not have a desktop manger that sat in-between the X server and
the Window manager.
4/5/2014 19
https://sites.google.com/site/rajmirjelinu
x/home
What is a Window Manager?
 The Window Manager is a program that manages the placement of Windows
on your system. The Window Manager makes it possible to move, resize, and
minimize the various programs running on your computer
 KDE handles this functionality as well, whereas Gnome does not directly
provide this functionality, but rather relies on an independent window
manager to do it for us.
 Think of the Window Manager as the framing around the windows as well as
all of the associated functionality that they provide.
 For example, most all window managers can close, minimize, maximize & resize.
 However most UNIX window managers add so much more in the way of
functionality. The decoration and customization of these windows under UNIX
tends to be much more flexible.
 Many Window Managers also provide other functionality such as shading,
sticky/nonsticky, window history, and desktop and workspace manipulations.
4/5/2014 20
https://sites.google.com/site/rajmirjelinu
x/home
Some Notes on X window, Desktop Managers &
Window Managers
 Most UNIX systems can be installed without the GUI.
 The GUI is just another application that runs on top of
the operating system.
 There are many implementations of all three of these
components.
 It is possible to mix and match implementation and versions
of these.
 They need not be alike and need not be all by the same
organization.
 This is quite a shift in paradigm from Microsoft and
Apple.
4/5/2014 21
https://sites.google.com/site/rajmirjelinu
x/home
Programming Tools and Utilities
Available under Linux
 Text Editors
 Xemacs
 Emacs
 Pico
 vi
 Compilers
 C compiler - gcc
 C++ compiler - g++
 Java compiler & Java Virtual
Machine - javac & java
 Debuggers
 C / C++ debugger - gdb
 Interpreters
 Perl - perl
 Tcl/Tk - tcl & wish
 Miscellaneous
 Web Browsers - Mozilla,
Netscape, Firefox, and Lynx
(lynx is text based)
 Instant Messengers - Gaim
 Email - Netscape is there, but
we will learn Pine
4/5/2014 22
https://sites.google.com/site/rajmirjelinu
x/home

More Related Content

What's hot

BITS: Introduction to linux, distributions and installation
BITS: Introduction to linux, distributions and installationBITS: Introduction to linux, distributions and installation
BITS: Introduction to linux, distributions and installationBITS
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating SystemMahakKasliwal
 
Unix operating system
Unix operating systemUnix operating system
Unix operating systemmidhunjose4u
 
Operating systems unix
Operating systems   unixOperating systems   unix
Operating systems unixAchu dhan
 
Introduction to Linux_by_Amit & Jiban
Introduction to Linux_by_Amit & Jiban Introduction to Linux_by_Amit & Jiban
Introduction to Linux_by_Amit & Jiban Amit Nath
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating SystemShivam Pandey
 
Unit+seven+ +introduction+to+linux+and+ubuntu
Unit+seven+ +introduction+to+linux+and+ubuntuUnit+seven+ +introduction+to+linux+and+ubuntu
Unit+seven+ +introduction+to+linux+and+ubuntuErdo Deshiant Garnaby
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux Harish R
 
Introduction to linux at Introductory Bioinformatics Workshop
Introduction to linux at Introductory Bioinformatics WorkshopIntroduction to linux at Introductory Bioinformatics Workshop
Introduction to linux at Introductory Bioinformatics WorkshopSetor Amuzu
 
Unix lecture1
Unix lecture1Unix lecture1
Unix lecture1dolleyj
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating Systemsubhsikha
 
Unit 1-a-brief-history-of-unix-ppt
Unit 1-a-brief-history-of-unix-pptUnit 1-a-brief-history-of-unix-ppt
Unit 1-a-brief-history-of-unix-pptRahul Mashal
 
Unix Introduction
Unix IntroductionUnix Introduction
Unix IntroductionAnanthi
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system pptAchyut Sinha
 
Linux & Unix Operating System's
Linux & Unix Operating System'sLinux & Unix Operating System's
Linux & Unix Operating System'sRiaz Ahmed Channa
 
UNIX and Linux - an introduction by Mathias Homann
UNIX and Linux - an introduction by Mathias HomannUNIX and Linux - an introduction by Mathias Homann
UNIX and Linux - an introduction by Mathias HomannMathias Homann
 

What's hot (20)

BITS: Introduction to linux, distributions and installation
BITS: Introduction to linux, distributions and installationBITS: Introduction to linux, distributions and installation
BITS: Introduction to linux, distributions and installation
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
UNIX Operating System ppt
UNIX Operating System pptUNIX Operating System ppt
UNIX Operating System ppt
 
Unix operating system
Unix operating systemUnix operating system
Unix operating system
 
Operating systems unix
Operating systems   unixOperating systems   unix
Operating systems unix
 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An Introduction
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Introduction to Linux_by_Amit & Jiban
Introduction to Linux_by_Amit & Jiban Introduction to Linux_by_Amit & Jiban
Introduction to Linux_by_Amit & Jiban
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
Unit+seven+ +introduction+to+linux+and+ubuntu
Unit+seven+ +introduction+to+linux+and+ubuntuUnit+seven+ +introduction+to+linux+and+ubuntu
Unit+seven+ +introduction+to+linux+and+ubuntu
 
Unix Basics
Unix BasicsUnix Basics
Unix Basics
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
 
Introduction to linux at Introductory Bioinformatics Workshop
Introduction to linux at Introductory Bioinformatics WorkshopIntroduction to linux at Introductory Bioinformatics Workshop
Introduction to linux at Introductory Bioinformatics Workshop
 
Unix lecture1
Unix lecture1Unix lecture1
Unix lecture1
 
Unix Operating System
Unix Operating SystemUnix Operating System
Unix Operating System
 
Unit 1-a-brief-history-of-unix-ppt
Unit 1-a-brief-history-of-unix-pptUnit 1-a-brief-history-of-unix-ppt
Unit 1-a-brief-history-of-unix-ppt
 
Unix Introduction
Unix IntroductionUnix Introduction
Unix Introduction
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system ppt
 
Linux & Unix Operating System's
Linux & Unix Operating System'sLinux & Unix Operating System's
Linux & Unix Operating System's
 
UNIX and Linux - an introduction by Mathias Homann
UNIX and Linux - an introduction by Mathias HomannUNIX and Linux - an introduction by Mathias Homann
UNIX and Linux - an introduction by Mathias Homann
 

Similar to Intro tounix (1) (20)

IntroToUnix.ppt
IntroToUnix.pptIntroToUnix.ppt
IntroToUnix.ppt
 
Ch1-Unix.pptx
Ch1-Unix.pptxCh1-Unix.pptx
Ch1-Unix.pptx
 
Linux
LinuxLinux
Linux
 
OS Lab: Introduction to Linux
OS Lab: Introduction to LinuxOS Lab: Introduction to Linux
OS Lab: Introduction to Linux
 
Programming and problem solving 3
Programming and problem solving 3Programming and problem solving 3
Programming and problem solving 3
 
CHAPTER 1 INTRODUCTION TO UNIX.pptx
CHAPTER 1 INTRODUCTION TO UNIX.pptxCHAPTER 1 INTRODUCTION TO UNIX.pptx
CHAPTER 1 INTRODUCTION TO UNIX.pptx
 
Foss Presentation
Foss PresentationFoss Presentation
Foss Presentation
 
UNIT I LINUX.docx
UNIT I LINUX.docxUNIT I LINUX.docx
UNIT I LINUX.docx
 
Linux
Linux Linux
Linux
 
Linux Introduction
Linux IntroductionLinux Introduction
Linux Introduction
 
84640411 study-of-unix-os
84640411 study-of-unix-os84640411 study-of-unix-os
84640411 study-of-unix-os
 
I Am Linux-Introductory Module on Linux
I Am Linux-Introductory Module on LinuxI Am Linux-Introductory Module on Linux
I Am Linux-Introductory Module on Linux
 
Unix Introduction
Unix IntroductionUnix Introduction
Unix Introduction
 
Linux
LinuxLinux
Linux
 
Linux programming lecture_notes
Linux programming lecture_notesLinux programming lecture_notes
Linux programming lecture_notes
 
Intro to linux
Intro to linuxIntro to linux
Intro to linux
 
Operating Systems 1: Introduction
Operating Systems 1: IntroductionOperating Systems 1: Introduction
Operating Systems 1: Introduction
 
windows vs Linux
windows vs Linuxwindows vs Linux
windows vs Linux
 
Characteristic & Aplication of some popular operating system.
Characteristic & Aplication of some popular operating system.Characteristic & Aplication of some popular operating system.
Characteristic & Aplication of some popular operating system.
 
Cross platform php
Cross platform phpCross platform php
Cross platform php
 

Recently uploaded

Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMartaLoveguard
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)Christopher H Felton
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Paul Calvano
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书rnrncn29
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书rnrncn29
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxDyna Gilbert
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 

Recently uploaded (20)

Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptx
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 

Intro tounix (1)

  • 1. Introduction to UNIX / Linux CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes. 4/5/2014 1 https://sites.google.com/site/rajmirjelinu x/home
  • 2. What is an Operating System?  The operating system (OS) is the program which starts up when you turn on your computer and runs underneath all other programs - without it nothing would happen at all.  In simple terms, an operating system is a manager. It manages all the available resources on a computer, from the CPU, to memory, to hard disk accesses.  Tasks the operating system must perform:  Control Hardware - The operating system controls all the parts of the computer and attempts to get everything working together.  Run Applications - Another job the OS does is run application software. This would include word processors, web browsers, games, etc...  Manage Data and Files - The OS makes it easy for you to organize your computer. Through the OS you are able to do a number of things to data, including copy, move, delete, and rename it. This makes it much easier to find and organize what you have. 4/5/2014 2 https://sites.google.com/site/rajmirjelinu x/home
  • 3. UNIX History  The UNIX operating system was born in the late 1960s. It originally began as a one man project led by Ken Thompson of Bell Labs, and has since grown to become the most widely used operating system.  In the time since UNIX was first developed, it has gone through many different generations and even mutations.  Some differ substantially from the original version, like Berkeley Software Distribution (BSD) or Linux.  Others, still contain major portions that are based on the original source code.  An interesting and rather up-to-date timeline of these variations of UNIX can be found at http://www.levenez.com/unix/history.html. 4/5/2014 3 https://sites.google.com/site/rajmirjelinu x/home
  • 4. General Characteristics of UNIX as an Operating System (OS)  Multi-user & Multi-tasking - most versions of UNIX are capable of allowing multiple users to log onto the system, and have each run multiple tasks. This is standard for most modern OSs.  Over 30 Years Old - UNIX is over 30 years old and it's popularity and use is still high. Over these years, many variations have spawned off and many have died off, but most modern UNIX systems can be traced back to the original versions. It has endured the test of time. For reference, Windows at best is half as old (Windows 1.0 was released in the mid 80s, but it was not stable or very complete until the 3.x family, which was released in the early 90s).  Large Number of Applications – there are an enormous amount of applications available for UNIX operating systems. They range from commercial applications such as CAD, Maya, WordPerfect, to many free applications.  Free Applications and Even a Free Operating System - of all of the applications available under UNIX, many of them are free. The compilers and interpreters that we use in most of the programming courses here at UMBC can be downloaded free of charge. Most of the development that we do in programming courses is done under the Linux OS.  Less Resource Intensive - in general, most UNIX installations tend to be much less demanding on system resources. In many cases, the old family computer that can barely run Windows is more than sufficient to run the latest version of Linux.  Internet Development - Much of the backbone of the Internet is run by UNIX servers. Many of the more general web servers run UNIX with the Apache web server - another free application. 4/5/2014 4 https://sites.google.com/site/rajmirjelinu x/home
  • 5. Parts of the UNIX OS  The Kernel - handles memory management, input and output requests, and program scheduling. Technically speaking, the kernel is the OS. It provides the basic software connection to the hardware. The kernel is very complex and deals with the inner workings of these things, and is beyond the scope of this course. The kernel is covered in detail in “Operating Systems.”  The Shell and Graphical User Interfaces (GUIs) - basic UNIX shells provides a “command line” interface which allows the user to type in commands. These commands are translated by the shell into something the kernel can comprehend, and then executed by the kernel.  The Built-in System Utilities - are programs that allow a user to perform tasks which involve complex actions. Utilities provide user interface functions that are basic to an operating system, but which are too complex to be built into the shell. Examples of utilities are programs that let us see the contents of a directory, move & copy files, remove files, etc...  Application Software & Utilities – these are not part of the operating system, per se. They are additional programs that are bundled with the OS distribution, or available separately. These can range from additional or different versions of basic utilities, to full scale commercial applications. 4/5/2014 5 https://sites.google.com/site/rajmirjelinu x/home
  • 6. Flavors of UNIX  These can be grouped into two categories: Open Source and Proprietary  Proprietary: (redistribution and modification prohibited or restricted; not free)  Solaris - Access to a Solaris UNIX server (solaris.gl.umbc.edu) via SSH access.  IRIX - There are a couple of IRIX machines in the basement of the library, as well as server access (irix.gl.umbc.edu) via SSH access.  Mac OS X - no access currently available at UMBC.  and many others...  Open Source: (source code is readily available and free to modify)  FreeBSD - no access currently available at UMBC.  Linux Distributions - access is available in the form of dual-boot PCs scattered throughout the Engineering building. There are also several Linux servers (linux.gl.umbc.edu) through which access is available.  RedHat (used by UMBC) and the Fedora Project (maintained by RedHat)  Mandrake  Debian  SuSE  Slackware  and many others...  As a side note, Linux is a open source UNIX-based OS that was originally developed in 1991 by Linus Torvalds, a Finnish undergraduate student. 4/5/2014 6 https://sites.google.com/site/rajmirjelinu x/home
  • 7. UNIX Interfaces  There are really 2 means of connecting to UNIX computers here at UMBC:  You can be sitting in front of a dual-bootable PC that you have booted into Linux and logged onto. All of your commands are then being run locally on that computer. When you logon in this manner you have a full GUI environment.  You can connect remotely to one of the UNIX servers (whether from home or at the labs). This is often how your projects are suggested to be developed as they are graded on those same servers. When you logon in this manner you have a command line (or text based) environment. You can also open up a command line on local lab machines as well. 4/5/2014 7 https://sites.google.com/site/rajmirjelinu x/home
  • 8. Graphical User Interfaces (GUIs)  When you logon locally, you are presented with graphical environment.  You start at a graphical login screen. You must enter your username and password. You also the have the option to choose from a couple session types. Mainly you have the choice between Gnome and KDE.  Once you enter in your username and password, you are then presented with a graphical environment that looks like one of the following... 4/5/2014 8 https://sites.google.com/site/rajmirjelinu x/home
  • 11. Command Line Interface  You also have access to some UNIX servers as well.  You can logon from virtually any computer that has internet access whether it be Windows, Mac, or UNIX itself.  In this case you are communicating through a local terminal to one of these remote servers.  All of the commands actually execute on the remote server.  It is also possible to open up graphical applications through this window, but that requires a good bit more setup and software. (Time permitting, we may cover how to do this.) 4/5/2014 11 https://sites.google.com/site/rajmirjelinu x/home
  • 13. Linux vs. Windows  OS does not have to use a graphical interface.  The OS itself (the kernel) is incredibly small.  The GUI just another application (or set of applications) that can be installed and run on top the existing text-based OS.  File system differences.  Windows typically uses FAT32 or NTFS file systems.  Linux typically uses the ext2 or ext3 file systems  In much larger research and university environments, where file access is necessary across the network, something like Network File System (NFS) or the Andrew File System (AFS) is used. We use AFS here on GL at UMBC.  Windows lists all drives separately (A:,C:,D:, etc…), with “My Computer” at the highest level.  UNIX starts its highest level at “/” and drives can be mounted anywhere underneath it. 4/5/2014 13 https://sites.google.com/site/rajmirjelinu x/home
  • 14. UMBC’s Computing Environment  You need a GL account username and password!  Since almost all UNIX systems are multi-user systems you will need to have a logon name and password to authenticate yourself to the system. At UMBC, when you signup for a GL account, you are given a username and password, which is your means of logging on to any computer system, be it UNIX, Windows or Mac.  Where is UNIX / Linux available?  There are many labs in the Engineering (ENG) building where there are dual-bootable Windows and Linux PCs. You can simple reboot one of these machines and select Linux as the operating system.  There are also a couple of other places across the campus where you can sit directly in front of a UNIX computer. UMBC's Office of Information Technology (OIT) maintains a list of the labs it maintains as well as descriptions about the operating systems in those labs.  This list is online at http://www.umbc.edu/oit/classroomtechnology/labs/lablocation.html. 4/5/2014 14 https://sites.google.com/site/rajmirjelinu x/home
  • 15. Practical Tasks  Rebooting the computer into Linux on a dual- boot PC.  Logging in.  Locking the screen.  Logging out.  The non-graphical terminal!  Press Ctrl-Alt-F2 then login  Be sure to logout with the command “logout”  Press Ctrl-Alt-F7 to get the GUI back. 4/5/2014 15 https://sites.google.com/site/rajmirjelinu x/home
  • 16. If all else fails in Gnome or KDE  If your session seems to have froze up, you can press ctrl-alt-backspace to restart the X window server, in the process logging you out.  Note that by doing it this way, you risk losing unsaved work. 4/5/2014 16 https://sites.google.com/site/rajmirjelinu x/home
  • 17. What is X Window?  X window is the program that draws windows on the screen under most GUI-based versions of UNIX. It is important to note that the language that X windows speaks is completely different from that of Microsoft Windows or Mac OS X.  Any X window system consists of 2 distinct parts - the X server and 1 or more X clients.  The server controls the display directly, and is responsible for all input/output via the keyboard, mouse or display.  The clients, on the other hand, do not access the screen directly - they communicate with the server, which handles all input and output.  It is the clients which do the "real" computing work - running applications or whatever.  The clients communicate with the server, causing the server to open one or more windows to handle input and output for that client. 4/5/2014 17 https://sites.google.com/site/rajmirjelinu x/home
  • 18. What’s the deal about the X Window Server and Client?!  The X window server runs on the machine to which the monitor is connected.  The clients may also run on this machine, communicating directly with the server. On most workstations, this is the normal situation. However, X is a networked window system, and it is possible for the client to run on a remote machine, communicating with the server via some form of network.  It is possible to connect to one of the UMBC servers and launch graphical applications from one of the UNIX servers.  This does require that an X window server is installed on the machine from which you are connecting from. This is automatically running if you are running a GUI UNIX system.  You can also install an X window server on top of Microsoft Windows, so that you can open up windows locally that are talking to the server at UMBC. Like I said earlier, this does require installing some software on the client side, and time permitting we may talk about this later in the course. 4/5/2014 18 https://sites.google.com/site/rajmirjelinu x/home
  • 19. What is a Desktop Manager?  Gnome and KDE are examples of desktop managers. Both of these look a lot like Microsoft Windows.  They have the equivalent of a Start Menu, have an equivalent of Windows Explorer, and have some sort of control panel.  The roll of the Desktop Manager is to provide you with the ability to manage all of the details of your system that would otherwise require you to type in a bunch of commands in a terminal window.  These details include managing your files, launching programs, configuring various aspects of your system, etc.  It is also worthy to note that the desktop manager is optional. Many older systems did not have a desktop manger that sat in-between the X server and the Window manager. 4/5/2014 19 https://sites.google.com/site/rajmirjelinu x/home
  • 20. What is a Window Manager?  The Window Manager is a program that manages the placement of Windows on your system. The Window Manager makes it possible to move, resize, and minimize the various programs running on your computer  KDE handles this functionality as well, whereas Gnome does not directly provide this functionality, but rather relies on an independent window manager to do it for us.  Think of the Window Manager as the framing around the windows as well as all of the associated functionality that they provide.  For example, most all window managers can close, minimize, maximize & resize.  However most UNIX window managers add so much more in the way of functionality. The decoration and customization of these windows under UNIX tends to be much more flexible.  Many Window Managers also provide other functionality such as shading, sticky/nonsticky, window history, and desktop and workspace manipulations. 4/5/2014 20 https://sites.google.com/site/rajmirjelinu x/home
  • 21. Some Notes on X window, Desktop Managers & Window Managers  Most UNIX systems can be installed without the GUI.  The GUI is just another application that runs on top of the operating system.  There are many implementations of all three of these components.  It is possible to mix and match implementation and versions of these.  They need not be alike and need not be all by the same organization.  This is quite a shift in paradigm from Microsoft and Apple. 4/5/2014 21 https://sites.google.com/site/rajmirjelinu x/home
  • 22. Programming Tools and Utilities Available under Linux  Text Editors  Xemacs  Emacs  Pico  vi  Compilers  C compiler - gcc  C++ compiler - g++  Java compiler & Java Virtual Machine - javac & java  Debuggers  C / C++ debugger - gdb  Interpreters  Perl - perl  Tcl/Tk - tcl & wish  Miscellaneous  Web Browsers - Mozilla, Netscape, Firefox, and Lynx (lynx is text based)  Instant Messengers - Gaim  Email - Netscape is there, but we will learn Pine 4/5/2014 22 https://sites.google.com/site/rajmirjelinu x/home