Linux advanced concepts - Part 1

15
Linux ..some advanced concepts :)

description

Linux Advanced concepts

Transcript of Linux advanced concepts - Part 1

Page 1: Linux advanced concepts - Part 1

Linux ..some advanced concepts :)

Page 2: Linux advanced concepts - Part 1

The Linux File System

Default File System

● EXT3● EXT4

Other File Systems● XFS● Reiser4● GFS● BTRFS

Page 3: Linux advanced concepts - Part 1

Ext4 Enhancements

● Large Filesystem support (1 EB)

● Extends

● Multi-block allocator

● Persistent pre-allocation

● Delayed Allocation

● Journal checksuming

● Faster file system checking

● Sub-directory limit has been removed (32000)

● Nano second time stamps

Page 4: Linux advanced concepts - Part 1

Users and Persmissions

● Adding / Deleting / Modify users● Managing groups● User variables● Environment variables● ldconfig

Page 5: Linux advanced concepts - Part 1

Changing and Managing permissions

The long version of a file listing (ls -l) will display the file permissions:

-rwxrwxr-x 1 rvdheij rvdheij 5224 Dec 30 03:22 hello-rw-rw-r-- 1 rvdheij rvdheij 221 Dec 30 03:59 hello.c-rw-rw-r-- 1 rvdheij rvdheij 1514 Dec 30 03:59 hello.sdrwxrwxr-x 7 rvdheij rvdheij 1024 Dec 31 14:52 posixuft

Permissions

OwnerGroup

Page 6: Linux advanced concepts - Part 1

Interpreting File Permissions

-rwxrwxrwxOther permissions

Group permissions

Owner permissions

Directory flag (d=directory; l=link)

Page 7: Linux advanced concepts - Part 1

Changing and Managing permissions

● chgrp● chown● chmod

chmod 755 file # Owner=rwx Group=r-x Other=r-x chmod 500 file2 # Owner=r-x Group=--- Other=--- chmod 644 file3 # Owner=rw- Group=r-- Other=r--

chmod +x file # Add execute permission to file for all chmod o-r file # Remove read permission for others chmod a+w file # Add write permission for everyone

Page 8: Linux advanced concepts - Part 1

Basic System Administration

● Monitoring the System

● memory● disk space● processor

● Load Average

● Creating partitions manually and mount them (cli)

● System and Kernel update

● Sharing files between Windows and Linux

● configuring samba server

Page 9: Linux advanced concepts - Part 1

Security

● Network Security

● Iptables● TCP Wrappers● Service Level Security● SELinux

● Physical security

Page 10: Linux advanced concepts - Part 1

Linux Kernel Subsystems

Page 11: Linux advanced concepts - Part 1

Processes

● User Mode

● Kernel Mode

● Mode Switch

● Context Switch

Page 12: Linux advanced concepts - Part 1

Manage Process

● Kill Signals

● Zombies Process● Orphan Process● Process priority

Page 13: Linux advanced concepts - Part 1

Linux Kernel Subsystems

Page 14: Linux advanced concepts - Part 1

The Linux Kernel

User Commands

Shell

Kernel File System

Device Drivers

Hardware

User commands includes executable programs and scripts

The shell interprets user commands. It is responsible for

finding the commands and starting their execution.

The kernel manages the hardware resources for the rest of the

system.

Page 15: Linux advanced concepts - Part 1

Questions? Ask at www.iwillstudy.com/forum