560 likes | 782 Views
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
E N D
Introduce Linux Speaker: Yi-Ji Jheng Date: 2007.09.26
Outline • Introduce Linux • Install Linux on Vmware • Common software • Linux commands and Practice
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
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
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
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
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/
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
Mainly, press the “Next” forever • We’ll point out options that need to setup below
Because it’ll be “Host Linux”, we only select below • DevelopmentTools • Editors
setup • all sevice close, only network and sshd
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/
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
Linux Command Format • Command [–options] [param1] [param2] … • Short option use “-” • Long option use “--” • Ex. • dmesg • gcc –v • gcc ––help • cp file1 file2
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
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 ..
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
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>
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
System • reboot • shutdown –r • shutdown • shutdown -h now • ps print process • ps aux • kill terminate process • kill <PID> • killall <service_name>
uname show system info. • uname –r • uname –a • Free memory allocate state • sync store memory buf. to disk