LINUX SYSTEM AND NETWORK ADMINISTRATION created by:gaurav shrivastava contact:-

Slides:



Advertisements
Similar presentations
A Guide to Unix Using Linux Fourth Edition
Advertisements

5 Basic utilities When a user logs in to the Linux operating system the directory that they will start in is their home directory. Most users will have.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
Linux+ Guide to Linux Certification, Second Edition
Linux Linux File System.
The UNIX File System.
Guide To UNIX Using Linux Third Edition
LINUX SYSTEM AND NETWORK ADMINISTRATION Navpreet Singh Computer Centre Indian Institute of Technology Kanpur Kanpur INDIA.
Basic UNIX © McGraw Hill All rights reserved.
Copyrights© 2008 BVU Amplify DITM DATA BASE MANAGEMENT system Page:1 Lesson 2: The File System By Simi.
UNIX/Linux System Programming Jordan University of Science and Technology History.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  Currently there.
File System and Directory Structure in Linux. What is File System In a computer, a file system is the way in which files are named and where they are.
Guide To UNIX Using Linux Fourth Edition
Introduction A computer system consists of hardware system programs application programs.
Chapter 10 – UNIX. History In late 1960s, two employees of Bell Labs (Ken Thompson & Dennis Ritchie) designed a new operating system to overcome the constraints.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
The file structure and related utilities CS240 Computer Science II.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
1 Lecture 2 Working with Files and Directories COP 3344 Introduction to UNIX.
Unix Basics Chapter 4.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Linux+ Guide to Linux Certification, Second Edition
Chapter Two Exploring the UNIX File System and File Security.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
UNIX File System by Tero Toikkanen, CAP02S. UNIX Multi-user system Multi-user system Multi-tasking system Multi-tasking system Wide selection of tools.
CSC414 “Introduction to UNIX/ Linux” Lecture 1. About the Course  Pre-requisites: CSC 229  Credit Hours: 3  Lecture : Tuesday ( 12:15 – 1:55 pm) 
Chapter Two Exploring the UNIX File System and File Security.
UNIX/LINUX OPERATING SYSTEM. Introduction to Linux Introduction to Unix History of UNIX What is Linux Linux Distributions Linux Installation Unix File.
CS2204: Introduction to Unix January 19 th, 2004 Class Meeting 1 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty.
E X C E E D I N G E X P E C T A T I O N S Basic LINUX Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Directory structure:
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Λειτουργικά Συστήματα - Lab1 Γιάννης Πετράκης. The Operating System  Unix is a layered operating system  The innermost layer is the hardware that provides.
1 © 2001 John Urrutia. All rights reserved. Chapter 4 The LINUX Filesystem.
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
Linux Commands C151 Multi-User Operating Systems.
1 Lecture 2 Working with Files and Directories COP 3353 Introduction to UNIX.
UNIX filesystem CS 2204 Class meeting 2 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
UNIX/LINUX OPERATING SYSTEM
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
Learning basic Unix command It 325 operating system.
Computer Center | Network Group IISER Bhopal Introduction to Basic Component of Computer System Vinay Bajpai iiserb.ac.in Computer Center Indian.
LINUX Zhengli Zhu, School of Life Sciences. Outline 1. ABC of Linux 2. Basic orers of Linux 3. Bash Programming.
ORAFACT The Linux File System. ORAFACT Filesystem Support Support for dozens of filesystem types including: Minix, ext2, MS-DOS, UMSDOS, VFAT, NTFS, NFS,
Operating Systems Introduction Moti Geva
BILKENT UNIVERSITY DEPARTMENT OF COMPUTER TECHNOLOGY AND INFORMATION SYSTEMS CTIS156 INFORMATION TECHNOLOGIES II FILES AND FILE SYSTEM STRUCTURE.
Linux Filesystem Management
Getting Started with Linux
Overview of Linux Fall 2016 Dr. Donghyun Kim
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Linux file system "On a UNIX system, everything is a file;
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
Basic Commands ls cp ls –l (in detail format) echo ls –a
Lecture 2 Working with Files and Directories
C151 Multi-User Operating Systems
9 Linux on the Desktop.
UNIX Basics Internet Technology.
Exploring the UNIX File System and File Security
Unix : Introduction and Commands
Operating Systems Lecture 4.
Chapter 2: The Linux System Part 1
CHAPTER 5 LINUX SYSTEM AND NETWORK ADMINISTRATION Introduction to Linux.
Welcome to Linux Chap#1.
Chapter 4: The Linux Filesystem
January 26th, 2004 Class Meeting 2
Presentation transcript:

LINUX SYSTEM AND NETWORK ADMINISTRATION created by:gaurav shrivastava contact:-

UNIX/LINUX OPERATING SYSTEM Introduction to Linux Introduction to Unix History of UNIX What is LINUX LINUX Distributions Unix OS Structure Unix File System Unix Directories, Files and Inodes Users, Groups and Permissions created by:gaurav shrivastava contact:-

UNIX Introduction to Linux Unix is a multi-user, multi-tasking operating system. You can have many users logged into a system simultaneously, each running many programs. It's the kernel's job to keep each process and user separate and to regulate access to system hardware, including cpu, memory, disk and other I/O devices. created by:gaurav shrivastava contact:-

History of UNIX Introduction to Linux First Version was created in Bell Labs in Some of the Bell Labs programmers who had worked on this project, Ken Thompson, Dennis Ritchie, Rudd Canaday, and Doug McIlroy designed and implemented the first version of the Unix File System on a PDP-7 along with a few utilities. It was given the name UNIX by Brian Kernighan. 00:00:00 Hours, Jan 1, 1970 is time zero for UNIX. It is also called as epoch. created by:gaurav shrivastava contact:-

History of UNIX Introduction to Linux 1973 Unix is re-written mostly in C, a new language developed by Dennis Ritchie. Being written in this high-level language greatly decreased the effort needed to port it to new machines. created by:gaurav shrivastava contact:-

History of UNIX Introduction to Linux 1977 There were about 500 Unix sites world-wide BSD 4.1 (Berkeley Software Development) 1983 SunOS, BSD 4.2, System V 1988 AT&T and Sun Microsystems jointly develop System V Release 4 (SVR4). This later developed into UnixWare and Solaris Linux was originated. created by:gaurav shrivastava contact:-

What is LINUX Introduction to Linux Linux is a free Unix-type operating system originally created by Linus Torvalds with the assistance of developers around the world. It originated in 1991 as a personal project of Linus Torvalds, a Finnish graduate student. The Kernel version 1.0 was released in 1994 and today the most recent stable version is Developed under the GNU General Public License, the source code for Linux is freely available to everyone.GNU General Public License created by:gaurav shrivastava contact:-

LINUX Distributions Introduction to Linux Mandrake: RedHat: Fedora: SuSE/Novell: Debian: Red Hat Enterprise Linux is a Enterprise targeted Operating System. It based on mature Open Source technology and available at a cost with one year Red Hat Network subscription for upgrade and support contract. created by:gaurav shrivastava contact:-

UNIX Structure Introduction to Linux created by:gaurav shrivastava contact:-

UNIX File System Introduction to Linux created by:gaurav shrivastava contact:-

File System Introduction to Linux The Unix file system looks like an inverted tree structure. You start with the root directory, denoted by /, at the top and work down through sub-directories underneath it. created by:gaurav shrivastava contact:-

File System Introduction to Linux Each node is either a file or a directory of files, where the latter can contain other files and directories. You specify a file or directory by its path name, either the full, or absolute, path name or the one relative to a location. The full path name starts with the root, /, and follows the branches of the file system, each separated by /, until you reach the desired file, e.g.: /home/condron/source/xntp created by:gaurav shrivastava contact:-

File System Introduction to Linux A relative path name specifies the path relative to another, usually the current working directory that you are at. Two special directories :. the current directory.. the parent of the current directory So if I'm at /home/frank and wish to specify the path above in a relative fashion I could use:../condron/source/xntp This indicates that I should first go up one directory level, then come down through the condron directory, followed by the source directory and then to xntp. created by:gaurav shrivastava contact:-

Structure of Standard Directories in Unix/Linux Introduction to Linux / The ancestor of all directories on the system; all other directories are subdirectories of this directory, either directly or through other subdirectories. /bin Essential tools and other programs (or binaries). /dev Files representing the system's various hardware devices. For example, you use the file `/dev/cdrom' to access the CD−ROM drive. /etc Miscellaneous system configuration files, startup files, etc. created by:gaurav shrivastava contact:-

Structure of Standard Directories in Unix/Linux Introduction to Linux /home The home directories for all of the system's users. /lib Essential system library files used by tools in `/bin'. /proc Files that give information about current system processes. /root The superuser's home directory, whose username is root. (In the past, the home directory for the superuser was simply `/'; later, `/root' was adopted for this purpose to reduce clutter in `/'.) created by:gaurav shrivastava contact:-

Structure of Standard Directories in Unix/Linux Introduction to Linux /sbin Essential system administrator tools, or system binaries. /tmp Temporary files. /usr Subdirectories with files related to user tools and applications. created by:gaurav shrivastava contact:-

Directories, Files and Inodes Introduction to Linux Every directory and file is listed in its parent directory. In the case of the root directory, that parent is itself. A directory is a file that contains a table listing the files contained within it, giving file names to the inode numbers in the list. The information about all the files and directories is maintained in INODE TABLE An Inode (Index Nodes) is an entry in the table containing information about a file (metadata) including file permissions, UID, GID, size, time stamp, pointers to files data blocks on the disk etc. created by:gaurav shrivastava contact:-

Users, Groups and Access Permissions Introduction to Linux In UNIX/LINUX, there is a concept of user and an associated group The system determines whether or not a user or group can access a file or program based on the permissions assigned to them. Apart from all the users, there is a special user called Super User or the root which has permission to access any file and directory created by:gaurav shrivastava contact:-

Access Permissions Introduction to Linux There are three permissions for any file, directory or application program. The following lists the symbols used to denote each, along with a brief description: r — Indicates that a given category of user can read a file. w — Indicates that a given category of user can write to a file. x — Indicates that a given category of user can execute the file. created by:gaurav shrivastava contact:-

Access Permissions Introduction to Linux Each of the three permissions are assigned to three defined categories of users. The categories are: owner — The owner of the file or application. group — The group that owns the file or application. others — All users with access to the system. created by:gaurav shrivastava contact:-

Access Permissions Introduction to Linux One can easily view the permissions for a file by invoking a long format listing using the command ls -l. For instance, if the user juan creates an executable file named test, the output of the command ls -l test would look like this: -rwxrwxr-x 1 juan student 0 Sep 26 12:25 test created by:gaurav shrivastava contact:-

Access Permissions Introduction to Linux The permissions for this file are listed are listed at the start of the line, starting with rwx. This first set of symbols define owner access. The next set of rwx symbols define group access The last set of symbols defining access permitted for all other users. created by:gaurav shrivastava contact:-

Access Permissions Introduction to Linux This listing indicates that the file is readable, writable, and executable by the user who owns the file (user juan) as well as the group owning the file (which is a group named student). The file is also world-readable and world- executable, but not world-writable. created by:gaurav shrivastava contact:-

Listing the Content of a Directory Introduction to Linux ls is used to list the contents of a directory. If the command ls is written with parameter –l then the command lists contents of the working directory with details. Example: $ ls –l created by:gaurav shrivastava contact:-

Moving in Directories Introduction to Linux cd try_it Changes the directory to try_it pwd Prints present working directory (e.g. /home/smith/try_it) cd.. Move to superior directory pwd : Prints /home/smith cd /home The absolute path pwd : Prints /home cd The system is returned to the user home directory pwd : Print /home/smith created by:gaurav shrivastava contact:-

Make Directory Introduction to Linux The command mkdir my_dir makes new directory my_dir (the path is given relative) as a subdirectory of the current directory. created by:gaurav shrivastava contact:-

Remove Directory Introduction to Linux The command rmdir your_dir removes directory your_dir if it is empty. created by:gaurav shrivastava contact:-

Copy File Introduction to Linux The command cp file_1 file_2 copies file_1 to file_2. The both files must be in the same working directory. If they are in various directories, the path must be given. created by:gaurav shrivastava contact:-

Rename and/or Move the File Introduction to Linux The command mv file_1 file_2 moves file_1 to file_2 The both files must be in the same working directory. If they are in different directories, the path must be given. The file_1 is removed from the disk. created by:gaurav shrivastava contact:-

Remove File Introduction to Linux The command rm file_a removes the file_a from the system If you use wildcard. For examplewildcard rm h*c you will remove all files beginning with h and ending with c which are in working directory. If you write rm * you will erase all files from your working directory. created by:gaurav shrivastava contact:-

Access Permission of File/Directory Introduction to Linux The ownership of the file or directory can be changed using the command chown The group of the file or directory can be changed using the command chgrp The permissions of the file can be changed using chmod command chmod -R ### -R is optional and when used with directories will traverse all the sub-directories of the target directory changing ALL the permissions to ###. created by:gaurav shrivastava contact:-

Access Permission of File/Directory Introduction to Linux The #'s can be: 0 = Nothing 1 = Execute 2 = Write 3 = Execute & Write (2 + 1) 4 = Read 5 = Execute & Read (4 + 1) 6 = Read & Write (4 + 2) 7 = Execute & Read & Write ( ) created by:gaurav shrivastava contact:-