Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
47 views341 pages

Linux Adm 2

Uploaded by

6.6.6.non.entity
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views341 pages

Linux Adm 2

Uploaded by

6.6.6.non.entity
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 341

MCA-305

Linux System Administration

VARDHMAN MAHAVEER OPEN UNIVERSITY


KOTA
www.vmou.ac.in
MCA-305

Vardhman Mahaveer Open University, Kota

Linux System Administration


Course Development Committee
Chair Person
Prof. Ashok Sharma Prof. L.R. Gurjar
Vice-Chancellor Director Academic
Vardhman Mahaveer Open University, Kota Vardhman Mahaveer Open University, Kota

Convener and Members

Convener
Neeraj Arora
Assistant Professor, Computer Science
School of Science and Technology,
Vardhman Mahaveer Open University, Kota.

Members
1. Prof. (Dr.) Reena Dadich 2. Prof. (Dr.) N.K. Joshi
Professor and Head (CS) Professor (CS) and Director, MIMT, Kota
University of Kota, Kota
3. Dr. Harish Sharma 4. Mr. Abhishek Nagar,
Associate Professor, CSE Deptt. Programmer Officer, VMOU, Kota
Rajasthan Technical University, Kota

5. Dr. Anuradha Dubey


Deputy Director
School of Science &Technology
Vardhman Mahaveer Open University, Kota
Editor & Unit Writers MCA-305: Linux System Administration

Editor
Prof. (Dr.) Reena Dadich
Professor and Head, Dept. of CS and Informatics,
University of Kota, Kota

Unit Writers Units


Mr. Mudit Chaturvedi 1, 2
Assistant Professor, Computer Science and Engineering, Jaipur National University, Jaipur
Mr. Om Prakash Suthar 3
Asst. Prof. (SR. Scale), Department of CSE, J.I.E.T., Jodhpur.
Mr. Vinay Mathur 4, 9
Associate Professor, CSE Department, J.I.E.T., Jodhpur.
Mr. Poonam Chand Shukla 5
Jr. Technical Superintendent, Dept. of CSE, IIT Jodhpur.
Mr. Amresh Kumar Singh 6, 11
Assistant Prof, Dept of CS, MGSU Bikaner
Mr. Nitin Mathur 7, 8, 10, 12, 13, 14
Assistant Professor, Dept. Of CSE, J.I.E.T., Jodhpur.
Mr. Vishnu Sharma 15, 16
Asst. Prof. , School of Computer and System Sciences, Jaipur National University, Jaipur

Academic and Administrative Management


Prof. Ashok Sharma Prof. L.R. Gurjar
Vice-Chancellor, Director (Academic)
Vardhman Mahaveer Open University, Kota Vardhman Mahaveer Open University, Kota
Dr. Shiv Kumar Mishra
Director (MP&D)
Vardhman Mahaveer Open University, Kota

Print: 2018 ISBN: : 978-81-8496-644-2

All Right reserved. No part of this Book may be reproduced in any form by mimeograph or any other means
without permission in writing from Vardhman Mahaveer Open University, Kota.
Printed and Published on behalf of the Registrar, Vardhman Mahaveer Open University, Kota.
Printed by :
MCA-305

Vardhman Mahaveer Open University, Kota


Linux System Administration
Contents
Unit No. Unit Pages
Unit-1 Introduction: 1-20
Introduction to Linux, Basic idea on proprietary, Open Source, Free Software etc..
Unit-2 Variants of Linux/GNU: 21-43
Introduction of Various Linux Distribution (Red Hat Enterprise Linux, Cent OS,
Fedora Projects, Debian Linux, Ubuntu, etc.), GNU-Linux connection.
Unit-3 Architecture: 44-61
Basic Architecture of Unix/Linux system, kernel, shell.
Unit-4 File System: 62-76
Linux File System, Boot block, Super block, Inode table, Data blocks, Khow
Linux access files, storage files, Linux standard directories, LILO,GRUB boot
Loader.
Unit-5 Installation: 77-93
Installation of Linux system, Using Live CD, Virtual Machine, Direct Installation
Partitioning the Hard drive for Linux, init and run levels.
Unit-6 Getting started with Linux: 94-108
Login process, Creating Users Account and Group, Getting Help. Services and
Process.
Unit-7 File in Linux: 109-125
Files and File System, File Types and Permissions, Links, Size and Space, Date
and Time.
Unit-8 Working with file 126-142
Reading Files, Searching for files, Copying, Moving, Renaming, Deleting,
Linking, and Editing Files
Unit-9 File Commands in Linux: 143-162
ls, rm, rmdir, pwd, more ,less. grep, awt, sort, cat, head, tail, wc, tee, ps, top, tar,
unzip, nice, kill, netstat, Disk related commands, checking disk free spaces..
Unit-10 Programming with shell script: 163-188
Various types of Shell available in Linux, Comparisons between various Shells,
Shell programming in bash, Read command, Conditional and looping statements,
Case statements, Parameter passing and arguments, Shell variables, System shell
variables, Shell keywords, Creating Shell programs for performing various tasks.
Unit-11 System Administration: 189-210
Common administrative tasks, identifying administrative files – configuration and
log files, Managing user accounts-adding & deleting users, changing permissions
and ownerships, Creating and managing groups, modifying group attributes.
Unit-12 User Accounts : 211-230
Temporary disable user’s accounts, creating and mounting file system, checking
and monitoring system performance file security & Permissions, becoming super
user using su.
Unit-13 Getting system information:
Getting system information with uname, host name, disk partitions & sizes, users, 231-253
kernel, Backup and restore files, reconfiguration hardware with kudzu, installing
and removing packages in Linux.
Unit-14 Introduction to X-windows system: 254-280
Configure X-windows starting & using X desktop, KDE & Gnome graphical
interfaces, changing X windows settingse.
Unit-15 Linux Networking: 281-304
Installation and configuration of a simple LAN, Installation and configuration of
Proxy server(Squid).
Unit-16 Introduction to Server: 305-333
DNS server (BIND), Mail server, Web server (Apache), File server (Samba),
DHCP server, Installation and configuration of a SSH server and client,
Installation and configuration of FTP server and client.
Preface
The present book entitled “Linux System Administration” has been designed so as to cover the
unit-wise syllabus of MCA-305 course for MCA 3rd year students of Vardhman Mahaveer Open
University, Kota.
This book introduces the participants to the Linux computing environment or Linux Based
Operating System, its architecture, Linux File System and the commands associated with them,
programming with shell script, some administrative task in Linux and fundamentals of Linux
networking and servers.
Each unit begins with objectives , introduction and principles together with illustrative and
other descriptive material .The illustrative examples serve to illustrate and amplify the theory,
bring into focus on important concepts .Numerous proofs of the theorems and derivations of the
fundamental results are included . The units have been written by various experts in the field. We
believe that this book is well suited to self learning. The text is written in a logical sequence and
is beneficial for students. The concise and sequential nature of the book makes it easier to learn.
Although we have made all efforts to make the text error free, yet errors may remain in the text.
We shall be thankful to the students and teachers alike if they point these out to us. Any further
comments and suggestions for future improvement are welcome and will be most gratefully
acknowledged.

You might also like