• Like
System Administeration  Basics
Upcoming SlideShare
Loading in...5
×

System Administeration Basics

  • 1,494 views
Uploaded on

Introduction to linux administration basics

Introduction to linux administration basics

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,494
On Slideshare
0
From Embeds
0
Number of Embeds
5

Actions

Shares
Downloads
52
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. System Administration Basics Session 3 By: Bahaa S. Salama (bahaa2008)
  • 2. Agenda
  • 9. Important Files
      /etc/passwd /etc/shadow /etc/group /etc/gshadow
  • 10. Users Administration
      Add user useradd Delete user userdel Modify user usermod Change/Set password passwd Display logged in users who Display effective user whoami Display real/effective id id
  • 11. User Administration cont.
      Who is login/what is he doing w Current logged in users users Message all users wall Add group groupadd Delete group groupdel Modify group groupmod Groups that I'm memer in groups
  • 12. Permissions
    • Why Permissions ?
    • 13. User,Group,Other
    • 14. Read,Write,Execute
    • 15. Permissions symbolically
      • r read u user
      • 16. w write g group
      • 17. x execute o other
  • 18. Permissions - cont.
      Permissions numerically
        7 rwx 3 -wx 6 rw- 2 -w- 5 r-x 1 --x 4 r-- 0 ---
    • Change user chown
    • 19. Change group chgrp
    • 20. Change permissions chmod
  • 21. Partitions Information
    • List Partition fdisk -l
    • 22. Partion Editor fdisk /dev/sda
      • -n add new partition
      • 23. -d delete partition
      • 24. -l list partition
      • 25. -a add bootable flag
  • 26. Disk space
    • File System usage df
    • 27. File Space usage du
      • -s summerize
      • 28. -h human readable
  • 29. Mounting Partitions
    • List current mounts mount
    • 30. Mount partitions
      • mount -t fstype -o options device dir
    • Examples
      • mount -t vfat /dev/sda1 /media/sda1
    • Unmount umount device
      • umount /dev/sda1
  • 31. /etc/fstab
    • File Syntax
    • 32. <file system> <mount point> <type> <options>
    • 33. UUID vs devices
  • 34. Processes Management
    • List processes ps aux
    • 35. Kill process
      • kill by pid kill -9 pid
      • 36. kill by name killall prog_name
    • Processes tree pstree
    • 37. Top processes top
  • 38. Boot Process
    • BIOS - Boot Sequence
    • 39. Stage 1 bootloader (MBR)
    • 40. Stage 2 bootloader (Grub,LILO, etc)
    • 41. Kernal (linux kernel)
    • 42. Init (starting userspace applications)
  • 43. Boot loader
  • 50. Init Runlevels
      0 halt 1 single-user mode 3 multi-user mode 5 multi-user mode + X-based login screen 6 reboot
  • 51. Init Scripts
  • 58. Installing Applications
    • Installation Methods
      • From source
      • 59. Using Package mangers
      • 60. Using Package utilites
  • 61. Installing from source
    • Get the source
    • 62. Get dependencies
    • 63. Installing dependencies
    • 64. Installing the application
    • 65. Installation Process
      • ./configure && make && make install
    • Uninstallation Process
      • make uninstall && make clean
  • 66. Package Managers
    • /etc/apt/sources.list
    • 67. /etc/apt/sources.list.d/
    • 68. Apt-get
    • Apt-cache
      • -search
  • 71. Package Utilities
    • dpkg
      • -i install .deb package
      • 72. -r remove .deb package
      • 73. -l list installed packages
      • 74. --reconfigure reconfigure package
  • 75. Configuring Network Interface
      Display interfaces ifconfig -a Set ip manually ifconfig eth0 <ip> Get ip automatic dhclient eth0 Set default route route add def gw <ip> eth0 Set wireless ap iwconfig eth1 essid <name> Set DNS Servers in /etc/resolv.conf (demo)
  • 76. Questions
  • 77. Thanks