Contenu connexe
Similaire à Linux System (20)
Plus de SysPlay eLearning Academy for You
Plus de SysPlay eLearning Academy for You (11)
Linux System
- 1. Introduction to Linux System
© 2013 SysPlay eLearning Academy for You <http://sysplay.in>
All Rights Reserved.
- 2. What to Expect?
W's of Linux System
Linux Uses Basics
Magic with Vim Editor
Partitioning and Installing Linux System
X86 Booting sequence
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 2
All Rights Reserved.
- 3. W's of Linux System
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 3
All Rights Reserved.
- 4. Topic
What is Linux System?
Why Linux System?
What makes “Linux” as best Operating System?
What are the places Linux is being used?
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 4
All Rights Reserved.
- 5. Linux Usage Basics
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 5
All Rights Reserved.
- 6. Topics
Root & System Directories
Shell Basics & the 'bash' Shell
File Basics & related Commands
User Basics & related Commands
File Access Permissions
System & Help Information
Standard I/O, Redirection and Pipes
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 6
All Rights Reserved.
- 7. /
the Root of an inverted tree
The top-most or super-parent directory
The container of your computer
Type: ls /
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 7
All Rights Reserved.
- 8. System Directories
/bin, /sbin - system binaries/applications
/var - logs, mails
/proc, /sys - “virtual” windows into the kernel
/etc - configuration files
/lib - shared system libraries
/dev - device files
/boot - Linux kernel and boot related binary files
/opt - for third-party packages
/root, /home - home directory for super user & other users
/usr - user space related files and dirs (binaries, libraries, ...)
/tmp - scratch pad
/mnt - mount points
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 8
All Rights Reserved.
- 9. Shell Basics
What is a Shell?
Various types of Shells
Bourne Shell (sh)
C Shell (csh)
Korn Shell (ksh)
Bourne Again Shell (bash)
TENEX csh (tcsh)
Z Shell (zsh)
Busybox (busybox) – Embedded Systems
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 9
All Rights Reserved.
- 10. Bourne Again SHell
env - shell environment variables
export [var_name] - export a shell variable
HOME - path to user’s home directory
PATH - executable search path
PWD - present user directory
PS1 - command prompt
which - shows executable path
history - command recall
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 10
All Rights Reserved.
- 11. Bourne Again SHell ...
alias - create shortcuts to commands
file - shows the information about a file
type - shows information about a command
Scripts
/etc/profile - System wide startup script
~/.bash_profile – User specific startup script
~/.bashrc – Shell specific startup script
~/.bash_logout – User specific shutdown script
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 11
All Rights Reserved.
- 12. File Basics
Every thing is viewed as a file in Linux
A file under the /
Seven Types
Regular (-)
Directory (d)
Character Device (c)
Block Device (b)
Named Pipe (p)
Socket (s)
Symbolic Link (l)
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 12
All Rights Reserved.
- 13. File related Shell Commands
ls - list directory/file contents cat, less, head, tail - used to
cd - change directory view text files
vi, vim - editors
pwd - print working directory
touch - create and update files
df - disk free
grep - search in files
du - disk usage
find, locate - search for files
cp - copy
gzip, gunzip, bzip, bunzip -
mv - move, rename
compression
rm – remove tar - archive
mkdir - make directory sed, awk - file manipulation
rmdir - remove directory
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 13
All Rights Reserved.
- 14. User Basics
All Accesses into a Linux System are through a
User with a Password
Super User – root
Normal Users - <user_name>
Files: /etc/passwd, /etc/shadow
Users can be categorized into groups
root, bin, sys, adm, …
File: /etc/group
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 14
All Rights Reserved.
- 15. User related Shell Commands
useradd - create user
userdel - delete user
usermod - modify user
su - <username> - start new shell as different user
finger - user information lookup
passwd - change or create user password
who, w, user - to find out who is logged in
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 15
All Rights Reserved.
- 16. Related Shell Commands
chmod – Change file permissions
chown – Change file owner
chgrp – Change file group
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 17
All Rights Reserved.
- 17. Few “Help”ful Shell Commands
uname - print system information
man <topic> - manual pages
info <topic> - information pages
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 18
All Rights Reserved.
- 18. The Complete Software System
Applications
OS Services
Operating System
Hardware
“Kernel Space”
“User Space”
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 19
All Rights Reserved.
- 20. Magic with VIM Editor
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 21
All Rights Reserved.
- 21. VIM Key Sheet
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 22
All Rights Reserved.
- 22. X86 Booting sequence
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 23
All Rights Reserved.
- 23. X86 booting Flowchart
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 24
All Rights Reserved.
- 24. What all have we learnt?
Introduction to Linux System
Linux Usage Basics
Magic of VIM editor
Linux System Overview
Partitioning and Installing Linux System
X86 Booting Sequence
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 25
All Rights Reserved.
- 25. Any Queries?
© 2013 SysPlay eLearning Academy for You <http://sysplay.in> 26
All Rights Reserved.