Escolar Documentos
Profissional Documentos
Cultura Documentos
to Linux OS
CSE882- Computing for CSE
Lecture 1
Sep 09, 2015
A Simple Definition of OS
A complex layer of software between
applications and the computer hardware
An operating system (OS) is a computer program
that manages the hardware and software
resources of a computer (wikipedia)
Applications like Internet Explorer
Operating System
Computer Hardware
He is the ultimate
authority of Linux OS:
Current estimates
suggest that he has 2%
contribution to Linux
4
http
://www.techrepublic.com/blog/10things/10-fundamental-differences-betw
een-linux-and-windows/
6
WinSCP
WinSCP
Authenticating
WinSCP
Outline
Review of UNIX Concepts and Commands
Introduction to UNIX
Major components of UNIX
The file system (directory hierarchy, fstypes)
Listing directories (ls pwd command)
Creating files (touching files, vi editor)
Displaying files (cat, more, less, head, tail, file, which)
Moving around directories (cd, mkdir)
Piping ( | ) and redirection ( >, <, >>, <<)
Searching for a pattern (grep, egrep)
Finding files (find command)
Cut and paste (cp, mv, rm, cut, paste)
10/6/15
12
12
The UNIX OS
13
13
Outline
Review of UNIX Concepts and Commands
Introduction to UNIX
Major components of UNIX
The file system (directory hierarchy, fstypes)
Listing directories (ls pwd command)
Creating files (touching files, vi editor)
Displaying files (cat, more, less, head, tail, file, which)
Moving around directories (cd, mkdir)
Piping ( | ) and redirection ( >, <, >>, <<)
Searching for a pattern (grep, egrep)
Finding files (find command)
Cut and paste (cp, mv, rm, cut, paste)
10/6/15
14
14
15
Components of UNIX OS
This section introduces three
components of UNIX:
The kernel
The shell
The directory hierarchy
10/6/15
16
16
Kernel
The kernel is the core of the operating
system. The image shows the kernel,
which manages all the physical
resources of the computer, including:
File systems and structures
Device management, such as
storing data to the hard disk
Process management or CPU
functions
Memory management
10/6/15
17
17
Shell
18
18
Directory Hierarchy
init.d
etc
rc.d
bin
include
usr
lib
sbin
home
hamm
ad
var
umar
bin
wahab
sbin
10/6/15
19
19
Outline
Review of UNIX Concepts and Commands
Introduction to UNIX
Major components of UNIX
The file system (directory hierarchy, fstypes)
Listing directories (ls pwd command)
Creating files (touching files, vi editor)
Displaying files (cat, more, less, head, tail, file, which)
Moving around directories (cd, mkdir)
Piping ( | ) and redirection ( >, <, >>, <<)
Searching for a pattern (grep, egrep)
Finding files (find command)
Cut and paste (cp, mv, rm, cut, paste)
10/6/15
20
20
Listing Directory
The prompt of a shell terminal contains the
current directory.
The tilde ~ indicates that you are in the user's
home directory
You can use the following commands to list the
contents of a directory and list the current
working directory:
ls
pwd
10/6/15
21
21
ls
10/6/15
22
22
ls command
10/6/15
23
23
pwd command
10/6/15
24
24
Outline
Review of UNIX Concepts and Commands
Introduction to UNIX
Major components of UNIX
The file system (directory hierarchy, fstypes)
Listing directories (ls pwd command)
Creating files (touching files, vi editor)
Displaying files (cat, more, less, head, tail, file, which)
Moving around directories (cd, mkdir)
Piping ( | ) and redirection ( >, <, >>, <<)
Searching for a pattern (grep, egrep)
Finding files (find command)
Cut and paste (cp, mv, rm, cut, paste)
10/6/15
25
25
10/6/15
26
26
Starting vi
vi editor can be started by issuing
command vi at the command line
followed by some options then filename
vioptionsfilename
If a file does not
yet exist,
it is created.
10/6/15
27
27
Using vi
More details:
http://blog.interlinked.org/tutorials/vim_tuto
rial.html
10/6/15
28
28
Exercise
Write a file with the following
contents using the vim editor on a
UNIX system:
/* Hello World program */
#include<stdio.h>
main() {
printf("Hello World");
}
29