SlideShare a Scribd company logo
1 of 13
EssEntial nEEds of
administration
PrEsEntEd to:- mr. Purushottam das
PrEsEntEd By:- PaPu Kumar
sEction:- B
roll no.:- 2061424(47)
sEmEstEr:- iii
TOPICS
 The Superuser: Root
 Disks and Partitions
 Making New Partitions
 Mounting Filesystems
 Mounting a Filesystem: mount
 Mounting Other Filesystems
 Unmounting a Filesystem: umount
 Sample /etc/fstab
 Filesystem Types
The Superuser: Root
 Every Linux system has a user called ‘root’
 The root user is all-powerful
 Can access any files
 The root user account should only be used for system administration, such as installing
 software
 When logged in as root, the shell prompt usually ends in #
 Usually best to use su for working as root:
 $ whoami
 fred
 $ su -
 Password:
 # whoami
 root
Concepts: Disks and Partitions
 A hard disk provides a single large storage space
 Usually split into partitions
 Information about partitions is stored in the partition table
 Linux defaults to using partition tables compatible with Microsoft Windows
 For compatibility with Windows, at most four primary partitions can be made
 But they can be extended partitions, which can themselves be split into
smaller logical partitions
 Extended partitions have their own partition table to store information about
logical
 partitions
Making New Partitions
 Create new partitions with the n command
 Choose whether to make a primary, extended or logical partition
 Choose which number to assign it
 fdisk asks where to put the start and end of the partition
 The default values make the partition as big as possible
 The desired size can be specified in megabytes, e.g., +250M
 Changes to the partition table are only written when the w command is
given
Filesystems
 Some confusion surrounds the use of the term ‘filesystem’
 Commonly used to refer to two distinct concepts
 1. The hierarchy of directories and files which humans use
to organise data on a system
 (‘unified filesystem’)
 2. The formatting system which the kernel uses to store
blocks of data on physical media
 such as disks (‘filesystem types’)
Disk Naming
 The device files for IDE hard drives are /dev/hda to /dev/hdd
 hda and hdb are the drives on the first IDE channel, hdc and hdd the ones
on the second channel
 The first drive on each channel is the IDE ‘master’, and the second is the
IDE ‘slave’
 Primary partitions are numbered from 1–4
 Logical partitions are numbered from 5
 The devices /dev/hda, etc., refer to whole hard disks, not partitions
 Add the partition number to refer to a specific partition
Changing Partition Types
 Each partition has a type code, which is a number
 The fdisk command shows a list of known types
 The command t changes the type of an existing Partition
 Enter the type code at the prompt
 Linux partitions are usually of type ‘Linux native’ (type 83)
 Other operating systems might use other types of partition,
many of which can be understood by Linux
Mounting Other Filesystems
 mount /dev/sdb3 /mnt/extra mounts the filesystem stored in
the /dev/sdb3 device on the
 mount point /mnt/extra
 You may occasionally need to specify the filesystem type
explicitly:
 # mount -t vfat /dev/hdd1 /mnt/windows
 Allowable filesystem types are listed in the mount(8)
manpage
 To see a list of the filesystems currently mounted, run mount
without any options
Configuring mount: /etc/fstab
 The /etc/fstab file contains information about filesystems
that are known to the system administrator
 Specifying a filesystem in /etc/fstab makes it possible to use
its mount point as the only argument to mount
 /etc/fstab also configures which filesystems should be
mounted at boot-up
 Each line in /etc/fstab describes one filesystem
 Six columns on each line
Sample /etc/fstab
 A sample /etc/fstab file:
 # device mount-point type options (dump) pass-
no
 /dev/hda3 / ext2 defaults 1 1
 /dev/hda1 / boot ext2 defaults 1 2
 /dev/hda5 / usr ext2 defaults 1 2
 /dev/hdb1 / usr/local ext2 defaults 1 2
 /dev/hdb2 / home ext2 defaults 1 2
 none / proc proc defaults 0 0
 /dev/scd0 / mnt/cdrom iso9660 noauto, users, 0 0
 /dev/fd0 /mnt/floppy auto noauto, users 0 0
Filesystem Types
 The most common filesystem types are:
 ext2 The standard Linux filesystem
 iso9660 The filesystem used on CD-ROMs
 proc Not a real filesystem, so uses none as the device. Used as a way
 for the kernel to report system information to user processes vfat The
filesystem used by Windows 95
 auto Not a real filesystem type. Used as a way of asking the mount
 Networked filesystems include nfs (Unix-specific) and smbfs (Windows
or Samba)
 Other, less common types exist; see mount(8)
THANK U

More Related Content

What's hot

File system performance
File system performanceFile system performance
File system performanceVijay Yadav
 
Files and directories in Linux 6
Files and directories  in Linux 6Files and directories  in Linux 6
Files and directories in Linux 6Meenakshi Paul
 
101 4.7 find system files and place files in the correct location
101 4.7 find system files and place files in the correct location101 4.7 find system files and place files in the correct location
101 4.7 find system files and place files in the correct locationAcácio Oliveira
 
Asif Jamal disk (it)
Asif Jamal disk (it)Asif Jamal disk (it)
Asif Jamal disk (it)Asif Jamal
 
File system of windows xp
File system of windows xpFile system of windows xp
File system of windows xpashubhardwaj03
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemSadia Bashir
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file systemTaaanu01
 
Disk operating system
Disk operating systemDisk operating system
Disk operating systemRaza Jaan
 
File system.
File system.File system.
File system.elyza12
 
Management file and directory in linux
Management file and directory in linuxManagement file and directory in linux
Management file and directory in linuxZkre Saleh
 

What's hot (19)

File system performance
File system performanceFile system performance
File system performance
 
Files and directories in Linux 6
Files and directories  in Linux 6Files and directories  in Linux 6
Files and directories in Linux 6
 
Linux lecture5
Linux lecture5Linux lecture5
Linux lecture5
 
101 1.1 hardware settings
101 1.1 hardware settings101 1.1 hardware settings
101 1.1 hardware settings
 
Ext filesystem4
Ext filesystem4Ext filesystem4
Ext filesystem4
 
101 4.7 find system files and place files in the correct location
101 4.7 find system files and place files in the correct location101 4.7 find system files and place files in the correct location
101 4.7 find system files and place files in the correct location
 
Asif Jamal disk (it)
Asif Jamal disk (it)Asif Jamal disk (it)
Asif Jamal disk (it)
 
File system of windows xp
File system of windows xpFile system of windows xp
File system of windows xp
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Aties Presentation
Aties PresentationAties Presentation
Aties Presentation
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
 
Os
OsOs
Os
 
Filesystem
FilesystemFilesystem
Filesystem
 
Disk operating system
Disk operating systemDisk operating system
Disk operating system
 
File system.
File system.File system.
File system.
 
linux file system
linux file systemlinux file system
linux file system
 
Management file and directory in linux
Management file and directory in linuxManagement file and directory in linux
Management file and directory in linux
 

Viewers also liked

Web Application Lunacy
Web Application LunacyWeb Application Lunacy
Web Application Lunacyanandvaidya
 
Chapter 4 Lecture- Solution Stoich
Chapter 4 Lecture- Solution StoichChapter 4 Lecture- Solution Stoich
Chapter 4 Lecture- Solution StoichMary Beth Smith
 
Chapter One- Intro to Biology
Chapter One- Intro to BiologyChapter One- Intro to Biology
Chapter One- Intro to BiologyMary Beth Smith
 
Chapter 5 - Electron Configurations
Chapter 5 - Electron ConfigurationsChapter 5 - Electron Configurations
Chapter 5 - Electron ConfigurationsKendon Smith
 
Introduction 2 linux
Introduction 2 linuxIntroduction 2 linux
Introduction 2 linuxPapu Kumar
 
Chapter 2 - Matter and Change
Chapter 2 - Matter and ChangeChapter 2 - Matter and Change
Chapter 2 - Matter and ChangeKendon Smith
 
2010 05 02 10 Dr Daniel C Tsui Physics Nobel Prize King Carl Xvi Gustaf Of S...
2010 05 02 10 Dr Daniel C Tsui  Physics Nobel Prize King Carl Xvi Gustaf Of S...2010 05 02 10 Dr Daniel C Tsui  Physics Nobel Prize King Carl Xvi Gustaf Of S...
2010 05 02 10 Dr Daniel C Tsui Physics Nobel Prize King Carl Xvi Gustaf Of S...hjk888
 
Chapter 24- Seeds & Flowers
Chapter 24- Seeds & FlowersChapter 24- Seeds & Flowers
Chapter 24- Seeds & FlowersMary Beth Smith
 
Chapter 1 Lecture- Matter & Measurement
Chapter 1 Lecture- Matter & MeasurementChapter 1 Lecture- Matter & Measurement
Chapter 1 Lecture- Matter & MeasurementMary Beth Smith
 
Chapter 6 - The Periodic Table
Chapter 6 - The Periodic TableChapter 6 - The Periodic Table
Chapter 6 - The Periodic TableKendon Smith
 
Chapter 40 Lecture- The Immune System
Chapter 40 Lecture- The Immune SystemChapter 40 Lecture- The Immune System
Chapter 40 Lecture- The Immune SystemMary Beth Smith
 
Digestive & Excretory Systems- Chapter 38
Digestive & Excretory Systems- Chapter 38Digestive & Excretory Systems- Chapter 38
Digestive & Excretory Systems- Chapter 38Mary Beth Smith
 

Viewers also liked (20)

Web Application Lunacy
Web Application LunacyWeb Application Lunacy
Web Application Lunacy
 
Chapter 4 Lecture- Solution Stoich
Chapter 4 Lecture- Solution StoichChapter 4 Lecture- Solution Stoich
Chapter 4 Lecture- Solution Stoich
 
Chapter One- Intro to Biology
Chapter One- Intro to BiologyChapter One- Intro to Biology
Chapter One- Intro to Biology
 
Chapter 5 - Electron Configurations
Chapter 5 - Electron ConfigurationsChapter 5 - Electron Configurations
Chapter 5 - Electron Configurations
 
Introduction 2 linux
Introduction 2 linuxIntroduction 2 linux
Introduction 2 linux
 
Chapter 2 - Matter and Change
Chapter 2 - Matter and ChangeChapter 2 - Matter and Change
Chapter 2 - Matter and Change
 
2010 05 02 10 Dr Daniel C Tsui Physics Nobel Prize King Carl Xvi Gustaf Of S...
2010 05 02 10 Dr Daniel C Tsui  Physics Nobel Prize King Carl Xvi Gustaf Of S...2010 05 02 10 Dr Daniel C Tsui  Physics Nobel Prize King Carl Xvi Gustaf Of S...
2010 05 02 10 Dr Daniel C Tsui Physics Nobel Prize King Carl Xvi Gustaf Of S...
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
Chapter 24- Seeds & Flowers
Chapter 24- Seeds & FlowersChapter 24- Seeds & Flowers
Chapter 24- Seeds & Flowers
 
Operating system ppt
Operating system pptOperating system ppt
Operating system ppt
 
005 skyeye
005 skyeye005 skyeye
005 skyeye
 
Chapter 1 Lecture- Matter & Measurement
Chapter 1 Lecture- Matter & MeasurementChapter 1 Lecture- Matter & Measurement
Chapter 1 Lecture- Matter & Measurement
 
Chapter 6 - The Periodic Table
Chapter 6 - The Periodic TableChapter 6 - The Periodic Table
Chapter 6 - The Periodic Table
 
Smile
SmileSmile
Smile
 
Chapter 4 notes
Chapter 4 notesChapter 4 notes
Chapter 4 notes
 
سه فیزیک دان برنده نوبل ۲۰۱۶
سه فیزیک دان برنده نوبل ۲۰۱۶سه فیزیک دان برنده نوبل ۲۰۱۶
سه فیزیک دان برنده نوبل ۲۰۱۶
 
Chapter 40 Lecture- The Immune System
Chapter 40 Lecture- The Immune SystemChapter 40 Lecture- The Immune System
Chapter 40 Lecture- The Immune System
 
Digestive & Excretory Systems- Chapter 38
Digestive & Excretory Systems- Chapter 38Digestive & Excretory Systems- Chapter 38
Digestive & Excretory Systems- Chapter 38
 
1 introduction
1 introduction1 introduction
1 introduction
 
Macro economics
Macro economicsMacro economics
Macro economics
 

Similar to UNIX(Essential needs of administration)

11 linux filesystem copy
11 linux filesystem copy11 linux filesystem copy
11 linux filesystem copyShay Cohen
 
101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2Acácio Oliveira
 
Course 102: Lecture 2: Unwrapping Linux
Course 102: Lecture 2: Unwrapping Linux Course 102: Lecture 2: Unwrapping Linux
Course 102: Lecture 2: Unwrapping Linux Ahmed El-Arabawy
 
HARD DISK PARTITIONING,FORMATING
HARD DISK PARTITIONING,FORMATINGHARD DISK PARTITIONING,FORMATING
HARD DISK PARTITIONING,FORMATINGchiju chinnu
 
101 2.1 design hard disk layout
101 2.1 design hard disk layout101 2.1 design hard disk layout
101 2.1 design hard disk layoutAcácio Oliveira
 
101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystems101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystemsAcácio Oliveira
 
Linux Basics
Linux BasicsLinux Basics
Linux BasicsLokesh C
 
2.1 design hard disk layout v2
2.1 design hard disk layout v22.1 design hard disk layout v2
2.1 design hard disk layout v2Acácio Oliveira
 
logical volume manager.ppt
logical volume manager.pptlogical volume manager.ppt
logical volume manager.pptPandiya Rajan
 
File system Os
File system OsFile system Os
File system OsNehal Naik
 

Similar to UNIX(Essential needs of administration) (20)

Linux filesystemhierarchy
Linux filesystemhierarchyLinux filesystemhierarchy
Linux filesystemhierarchy
 
Unix Administration
Unix AdministrationUnix Administration
Unix Administration
 
Ch12 system administration
Ch12 system administration Ch12 system administration
Ch12 system administration
 
Ch12
Ch12Ch12
Ch12
 
11 linux filesystem copy
11 linux filesystem copy11 linux filesystem copy
11 linux filesystem copy
 
File system discovery
File system discovery File system discovery
File system discovery
 
CIT173_Ch15_Mnstr_23.pdf
CIT173_Ch15_Mnstr_23.pdfCIT173_Ch15_Mnstr_23.pdf
CIT173_Ch15_Mnstr_23.pdf
 
101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2101 2.1 design hard disk layout v2
101 2.1 design hard disk layout v2
 
Course 102: Lecture 2: Unwrapping Linux
Course 102: Lecture 2: Unwrapping Linux Course 102: Lecture 2: Unwrapping Linux
Course 102: Lecture 2: Unwrapping Linux
 
HARD DISK PARTITIONING,FORMATING
HARD DISK PARTITIONING,FORMATINGHARD DISK PARTITIONING,FORMATING
HARD DISK PARTITIONING,FORMATING
 
101 2.1 design hard disk layout
101 2.1 design hard disk layout101 2.1 design hard disk layout
101 2.1 design hard disk layout
 
101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystems101 4.1 create partitions and filesystems
101 4.1 create partitions and filesystems
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Linux Basics
Linux BasicsLinux Basics
Linux Basics
 
File and fat
File and fatFile and fat
File and fat
 
2.1 design hard disk layout v2
2.1 design hard disk layout v22.1 design hard disk layout v2
2.1 design hard disk layout v2
 
logical volume manager.ppt
logical volume manager.pptlogical volume manager.ppt
logical volume manager.ppt
 
Tutorial 2
Tutorial 2Tutorial 2
Tutorial 2
 
File system Os
File system OsFile system Os
File system Os
 
Divya
DivyaDivya
Divya
 

Recently uploaded

Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 

Recently uploaded (20)

Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 

UNIX(Essential needs of administration)

  • 1. EssEntial nEEds of administration PrEsEntEd to:- mr. Purushottam das PrEsEntEd By:- PaPu Kumar sEction:- B roll no.:- 2061424(47) sEmEstEr:- iii
  • 2. TOPICS  The Superuser: Root  Disks and Partitions  Making New Partitions  Mounting Filesystems  Mounting a Filesystem: mount  Mounting Other Filesystems  Unmounting a Filesystem: umount  Sample /etc/fstab  Filesystem Types
  • 3. The Superuser: Root  Every Linux system has a user called ‘root’  The root user is all-powerful  Can access any files  The root user account should only be used for system administration, such as installing  software  When logged in as root, the shell prompt usually ends in #  Usually best to use su for working as root:  $ whoami  fred  $ su -  Password:  # whoami  root
  • 4. Concepts: Disks and Partitions  A hard disk provides a single large storage space  Usually split into partitions  Information about partitions is stored in the partition table  Linux defaults to using partition tables compatible with Microsoft Windows  For compatibility with Windows, at most four primary partitions can be made  But they can be extended partitions, which can themselves be split into smaller logical partitions  Extended partitions have their own partition table to store information about logical  partitions
  • 5. Making New Partitions  Create new partitions with the n command  Choose whether to make a primary, extended or logical partition  Choose which number to assign it  fdisk asks where to put the start and end of the partition  The default values make the partition as big as possible  The desired size can be specified in megabytes, e.g., +250M  Changes to the partition table are only written when the w command is given
  • 6. Filesystems  Some confusion surrounds the use of the term ‘filesystem’  Commonly used to refer to two distinct concepts  1. The hierarchy of directories and files which humans use to organise data on a system  (‘unified filesystem’)  2. The formatting system which the kernel uses to store blocks of data on physical media  such as disks (‘filesystem types’)
  • 7. Disk Naming  The device files for IDE hard drives are /dev/hda to /dev/hdd  hda and hdb are the drives on the first IDE channel, hdc and hdd the ones on the second channel  The first drive on each channel is the IDE ‘master’, and the second is the IDE ‘slave’  Primary partitions are numbered from 1–4  Logical partitions are numbered from 5  The devices /dev/hda, etc., refer to whole hard disks, not partitions  Add the partition number to refer to a specific partition
  • 8. Changing Partition Types  Each partition has a type code, which is a number  The fdisk command shows a list of known types  The command t changes the type of an existing Partition  Enter the type code at the prompt  Linux partitions are usually of type ‘Linux native’ (type 83)  Other operating systems might use other types of partition, many of which can be understood by Linux
  • 9. Mounting Other Filesystems  mount /dev/sdb3 /mnt/extra mounts the filesystem stored in the /dev/sdb3 device on the  mount point /mnt/extra  You may occasionally need to specify the filesystem type explicitly:  # mount -t vfat /dev/hdd1 /mnt/windows  Allowable filesystem types are listed in the mount(8) manpage  To see a list of the filesystems currently mounted, run mount without any options
  • 10. Configuring mount: /etc/fstab  The /etc/fstab file contains information about filesystems that are known to the system administrator  Specifying a filesystem in /etc/fstab makes it possible to use its mount point as the only argument to mount  /etc/fstab also configures which filesystems should be mounted at boot-up  Each line in /etc/fstab describes one filesystem  Six columns on each line
  • 11. Sample /etc/fstab  A sample /etc/fstab file:  # device mount-point type options (dump) pass- no  /dev/hda3 / ext2 defaults 1 1  /dev/hda1 / boot ext2 defaults 1 2  /dev/hda5 / usr ext2 defaults 1 2  /dev/hdb1 / usr/local ext2 defaults 1 2  /dev/hdb2 / home ext2 defaults 1 2  none / proc proc defaults 0 0  /dev/scd0 / mnt/cdrom iso9660 noauto, users, 0 0  /dev/fd0 /mnt/floppy auto noauto, users 0 0
  • 12. Filesystem Types  The most common filesystem types are:  ext2 The standard Linux filesystem  iso9660 The filesystem used on CD-ROMs  proc Not a real filesystem, so uses none as the device. Used as a way  for the kernel to report system information to user processes vfat The filesystem used by Windows 95  auto Not a real filesystem type. Used as a way of asking the mount  Networked filesystems include nfs (Unix-specific) and smbfs (Windows or Samba)  Other, less common types exist; see mount(8)