1 / 56

Introduce Linux

Introduce Linux. Speaker: Yi-Ji Jheng Date: 2007.09.26. Outline. Introduce Linux Install Linux on Vmware Common software Linux commands and Practice. INTRODUCE LINUX. History. Linus Torvalds make a Minix (Mini Unix) kernel Just only 10000 row of codes for C

devlin
Download Presentation

Introduce Linux

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. Introduce Linux Speaker: Yi-Ji Jheng Date: 2007.09.26

  2. Outline • Introduce Linux • Install Linux on Vmware • Common software • Linux commands and Practice

  3. INTRODUCE LINUX

  4. History • Linus Torvalds make a Minix (Mini Unix) kernel • Just only 10000 row of codes for C • Richard Stallman bring up GNU plan • Open source • Free • Unix-like • GNU/Linux  Linux • Kernel + many modules

  5. Use • Server • MySql + PHP + Apache • Embedded system • STB (Set Top Box) • Super Computer • 75% (Top 500 on the world) • Game • Sony PlayStation 3 • Microsoft XBOX

  6. Linux Kernel • Linux Kernel version format • Linux-a.b.c • a  kernel version • b  odd : test  even : stable • c  number of bug fix • Common, Linux-2.4.x and Linux-2.6.x

  7. Linux distribution • Redhat 9  Linux-2.4.x • Fedora 1  Linux-2.4.x • Fedora 2~  Linux-2.6.x • Debian  more app. (15940) • Trustix  more safe and stable • Knoppix  LiveCD

  8. Other • It’s not must on Linux, because Source code can change • Find Linux distribution or modules • 義守大學檔案伺服器http://ftp.isu.edu.tw/ • Good Web Site • 鳥哥的 Linux 私房菜 http://linux.vbird.org/

  9. INSTALL LINUX ON VMWARE

  10. Vmware • Use software (VMware ESX Server) to“virtualize”the hardware resources • Including the CPU, RAM, hard disk and network controller • To create a virtual machine that can run its own operating system and applications just like a “real” computer

  11. Install Linux

  12. Mainly, press the “Next” forever • We’ll point out options that need to setup below

  13. Because it’ll be “Host Linux”, we only select below • DevelopmentTools • Editors

  14. setup • all sevice close, only network and sshd

  15. COMMON SOFTWARE

  16. Pietty • Use SSH ( Secure Shell ) protocol • Allows data to be exchanged over a secure channel between two computers • Why use it? • Convenient for In/Out Vmware console • Good copy way • http://ntu.csie.org/~piaip/pietty/

  17. Winscp • Support • SFTP (SSH File Transfer Protocol) • SCP (Secure Copy Protocol) • FTP (File Transfer Protocol) • Good way to transmission data between Windows and Linux • http://winscp.net/eng/docs/lang:cht

  18. LINUX COMMANDS AND PRACTICE

  19. Linux Command Format • Command [–options] [param1] [param2] … • Short option use “-” • Long option use “--” • Ex. • dmesg • gcc –v • gcc ––help • cp file1 file2

  20. File management • ls  list • ls –al • chmod  change authority • -rw-r--r-- 1 root root 20 Sep 25 12:12 123.log other group r w x 222120 Ex. Chmod 755 file d : directory l : soft-link - : file c : char device b : block device owner -rwxr-xr-x

  21. rmdir  remove directory • mkdir  make directory • cp  copy • cp from to • mv  move or rename • Move from to • cd  change directory • cd <absoluteor relative path> • cd – • cd ..

  22. find -name  find file • find <where> –name <filename> • grep  find string • dmesg | grep CPU • cat  print to stdout • file  print file info. • touch  change file’s timestamp  make a file

  23. rm  remove • rm –rf <file or directory> • man  command manual • tar  uncompress or compress • tar zxvf file.tar.gz • tar zcvf backup.tar.gz /root • tar jxvf file.tar.bz2 • ln  soft-link • ln –s <file> <link_name>

  24. Network • route  setup or print route rule • ping • ping -c 4 www.google.com.tw • ifconfig  setup or print network • Ifconfig eth0 xxx.xxx.xxx.xxx

  25. System • reboot • shutdown –r • shutdown • shutdown -h now • ps  print process • ps aux • kill  terminate process • kill <PID> • killall <service_name>

  26. uname  show system info. • uname –r • uname –a • Free  memory allocate state • sync  store memory buf. to disk

More Related