Presentation is loading. Please wait.

Presentation is loading. Please wait.

Linux Basics Part 1 OSU Picture © Greg Keene. Introductions Lance Albertson Greg Lund-Chaix source:

Similar presentations


Presentation on theme: "Linux Basics Part 1 OSU Picture © Greg Keene. Introductions Lance Albertson Greg Lund-Chaix source:"— Presentation transcript:

1 Linux Basics Part 1 OSU Picture © Greg Keene

2 Introductions Lance Albertson Greg Lund-Chaix source: http://shesawake.com/

3 Goals for this Talk Linux Overview Linux distributions System overview More detail: permissions, processes, package management, services

4 Linux Overview Unix-like operating system Free, open source software Runs servers, desktops, phones, tablets, network equipment and more.

5 Linux Statistics Supercomputers More than 90% of the top 500 Number of distributions More than 350 Number of developers 1,000 developers contributed in 2010 Number of commits to linux kernel last year 195,579 commits in 2010

6 Linux Distributions Packaging of applications around a Linux kernel Different distributions have different target audiences Distribution lifecycles vary source: http://www.guilfordlug.org

7 Common Linux Distributions Fedora / RedHat Enterprise / CentOS Debian / Ubuntu / Mint Gentoo / Arch source: http://www.guilfordlug.org

8 Choosing a Distribution Server/desktop/other Existing infrastructure Admin experience Support contract Release supported lifetime

9 Linux System Overview source: wikipedia

10 bash: Bourne Again SHell Default shell on Linux Originally based off of the Bourne Shell (sh) Learn it, live it, love it

11 Basic bash commands ls *.txt file1.txt file2.txt file3.txt ls *.txt > list for i in `cat list`; do cp "$i" "$i".bak ; done ls *.txt* file2.txt file1.txt.bak file2.txt file2.txt.bak file3.txt file3.txt.bak

12 Documentation Most packages include man pages for documentation More extensive than the - -help flag on CLI Stored in different 'sections' Picture © Flickr user 'bobeirasa'

13 Users and Groups Users and groups are stored in /etc/passwd and /etc/group Each user name and group name is linked to a number (UID/GID) UID 0 = root 0-99 typically used for system/service accounts

14 File Permissions Three roles: user (file owner), group, other (“world”) Three permissions: read, write, execute Picture © Flickr user 'amagil'

15 root user root user = full access to everything on the system sudo, su – change user Don't use root user unless you have to! Comic: http://xkcd.com/149/

16 Components of a process PID: Process ID number PPID: Parent PID UID & EUID: real & effective user ID GID & EGID: real & effective group ID Niceness Control terminal

17 Signals Sent to procs as communication Sent to terminal driver to kill, interrupt, or suspend Sent by admin to kill Sent by kernel Picture © Flickr user 'atomicshark'

18 Signals: Types you should know HUP, INT, QUIT, KILL, BUS, SIGV, TERM, STOP, TSTP, CONT, WINCH, USR1, USR2 Can catch, block, or dump core? BUS & SEGV – error signals KILL & STOP – cannot be blocked WINCH – term emulators

19 ps: monitor processes primary tool for monitoring processes differ between UNIX's show PID, UID, priority, control term, memory, status, etc complex over the years, archaic pstree

20 top: monitor in real-time “big picture” in real time refreshes every 2-3 seconds kill, renice, sort, memory, etc. htop – even better o color, prettier, more configurable Picture © United Artists from 'Hackers'


Download ppt "Linux Basics Part 1 OSU Picture © Greg Keene. Introductions Lance Albertson Greg Lund-Chaix source:"

Similar presentations


Ads by Google