1 / 36

Linux Seminar

Linux Seminar. by noname. System SW Manage HW resources Provide a platform for applications Windows, Linux, Mac OS , iOS , Android, DOS, …. Operating System?. OS Made by Linus Torvalds Inspired by Unix

niran
Download Presentation

Linux Seminar

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Linux Seminar by noname

  2. System SW • Manage HW resources • Provide a platform for applications • Windows, Linux, Mac OS, iOS, Android, DOS, … Operating System?

  3. OS • Made by Linus Torvalds • Inspired by Unix • Debian, CentOS, Ubuntu, Fedora, Redhat Linux, Gentoo, Arch, Suse, Slackware, Mandriva, PintOS, … Linux?

  4. Custom • Free (in some sense) • Open source • Supports multiple users • Has compatibility with Unix-like OSs Why do we use Linux?

  5. Normal users • Root • Sudoers • In SPARCS? • presparcs group • sparcs group • wheel group User & Group

  6. Actually, both of them are files • Directory contains files • If filename starts with ‘.’ • Hidden • . • .. File & Directory

  7. Permission

  8. Three permission levels for each file • Owner(User) • Owner(Group) • Others • Slice it! • rwxrwxrwx • r-xr--rw- Permission

  9. Tree structure • / • /home • /home/noname • /etc • /root • /bin • ~/ • ~noname/ • ~/public_html/ • … Directory Structure

  10. Absolute path • /usr/bin/python • /usr/local/lib/python2.6/dist-packages/django/ • Relative path • public_html/crazy.png • Working directory Path

  11. GUI • Gnome, KDE, … • CUI • Terminal Interface

  12. Some kind of command line on terminal • Interacts with users • bash, sh, tcsh, ash, zsh, rc, … • bashrc Shell

  13. Secure Shell • Protocol (in some cases, a program) • Default port number for ssh is 22 • Opens terminal ssh

  14. Program • Supports connection via ssh/telnet • Simple & Easy, but convenient • Google ‘putty’ • or http://www.chiark.greenend.org.uk/~sgtatham/putty/ Putty

  15. Putty

  16. Putty

  17. Putty

  18. Basic Format • [command] [arg1] [arg2] … Commands

  19. ls • ls [path] • ls –a • ls –l • ls –al • ls –a –l • ls -lh • cd • cd [path] Commands

  20. pwd • rm [path] • rm –f [path] • rm –r [path] • rm –rf [path] • rm –rf / Commands

  21. mkdir [path] • rmdir [path] • cat [path1] [path2] … • cat –n [path1] [path2] … Commands

  22. cp [source1] [source2] [source3] … [destination] • cp -r [source1] [source2] [source3] … [destination] • mv [source1] [source2] [source3] … [destination] Commands

  23. more [path] • less [path] • less > more Commands

  24. passwd • passwd [username] • ps • ps aux • top Commands

  25. wget [URL] • ssh sparcs.org • ssh noname@sparcs.org • scp noname@sparcs.org:~/public_html/siva.png ./kill/ • scp –r ./kill/ root@bit.sparcs.org:~/ Commands

  26. wc [path1] [path2] … • grep [word] [path] • grep대한 애국가.txt • grep –R [word] [path] • egrep Commands

  27. chmod 744 [path] • chmod 512 [path] • chmod –R 777 [path] Commands

  28. tar –zxvf [path] • tar –zcvf [destination] [path1] [path2] … • tar –xvf [path] • tar –cvf[destination] [path1] [path2] … Commands

  29. df • df -h • kill [pid] Commands

  30. man [command] Commands

  31. E way edojonnamanayo • ln, chown, su, sudo, fg, bg, jobs, echo, export, killall, skill, nohup, shutdown, reboot, wall, yes, chsh, man, apropos, umask, chroot, clear, … Commands

  32. ? for one character • * for undecided number of characters • It works for all matching files Wildcard Character

  33. [command1] | [command2] | [command3] | … • ls –al | egrep ‘^d’ • ls –al | egrep ‘^d’ | wc • [command] > [path] • [command] < [path] • [command] >> [path] • [command] 2> [path] Pipe & Redirection

  34. !foobar… • Ctrl + r • Ctrl + d • Ctrl + l • Ctrl + a • Ctrl + e • Ctrl + u • Ctrl + c • Ctrl + z • Ctrl + \ Techniques

  35. Mouse drag • Mouse right click • Duplicate Session • Change Settings • Special Command Putty Techniques

  36. setuid, setgid, sticky bit, environment varilables, signal, … Etc..

More Related