1 / 207

Joshua Xu / 许建华 中国上海 : 电 话: 21-62470421,62470432 地 址:上海市南京西路 1468 号 东海电脑广场 3 号楼八层

Unix/Linux Basic Course. www.itlab.com.cn. Joshua Xu / 许建华 中国上海 : 电 话: 21-62470421,62470432 地 址:上海市南京西路 1468 号 东海电脑广场 3 号楼八层 Email : joshua@itlab.com.cn 新加坡: Tel : (65) 67760365 Address: Blk432, #07-274 Clementi Avenue 3 120432. Joshua Xu

vesta
Download Presentation

Joshua Xu / 许建华 中国上海 : 电 话: 21-62470421,62470432 地 址:上海市南京西路 1468 号 东海电脑广场 3 号楼八层

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. Unix/Linux Basic Course www.itlab.com.cn Joshua Xu / 许建华 中国上海: 电 话:21-62470421,62470432 地 址:上海市南京西路1468号 东海电脑广场3号楼八层 Email:joshua@itlab.com.cn 新加坡: Tel : (65) 67760365 Address: Blk432, #07-274 Clementi Avenue 3 120432 Joshua Xu 高端软件培训 Joshua@itlab.com.cn CONFIDENTIAL

  2. Objectives(5 days) • Unix/Linux Operating System Background • Unix/Linux Basic commands • File and Directory Manipulation • Editor(vi) • User and Process management • Shell programming • Makefile • Linux Installation and Setup

  3. Agenda

  4. Reference Book

  5. Unix • History • Other Compatible Unix Systems

  6. Linux • MINIX (PC Unix) 1991 (Andrew S. Tanenbaum) • Linux 0.02 1991 (Linus benedict Torvalds) • Linux 2.x.x POSIX Compliant to current version

  7. Linux VS Unix(1) • Linux is a real Unix, Functionality(Multi User, MultiTask,…) • POSIX compliant(from Ver2.x.x) • System V & BSD compatible

  8. Linux VS Unix(2) • Open Operating System Code System Customizing • Minimum Hardware Requirements • Support Multi File System(minix,ext,fat,…..) • Software Resources and Powerful Functionality • Unix is certified to be the robust system, Linux not yet…

  9. Unix VS Windows(1) • Hardware platform and Location • Reliability or Robustness

  10. Unix VS Windows(2) • User interface: ls option parameters ls ls -al Redirection and pipe grep find • Multi task

  11. Unix VS Windows(3) • Multi users

  12. Unix VS Windows(4) • Security System know who you are File and directory priority

  13. More About Unix/Linux • What can it do? • Production Line: Web Server, Mail server, Database Server • Program Development • Who should know Unix/Linux? • Unix administrator, System Manager, System Consultant • Oracle Administrator, Network Engineer, Program Developer

  14. Linux/Unix two Functions • What are the two functions of OS? How to?

  15. Resource Management(1) • RAM, DISK difference • rams are paged

  16. Resource Management(2) • CPU eg: ticket system

  17. Resource Management(3) • intangible resources’ management opened files sockets Locks

  18. Be Aware of Case Sensitive!!!

  19. shutdown shutdown -[rhk] <time> warning <time>: hhmm[am|pm] MMDDYYYY + offset MMDDYY JAN 20 2004 NOON MIDNIGHT TEATIME now Offset:n[minute,hour,day,week]

  20. telnet telnet 192.168.100.1 [port] Add item into file: c:/windows/system32/desktop/driver/hosts

  21. login login: ( username) password: (user’s password)

  22. Logout Logout or exit or ^D

  23. Passwd passwd

  24. uname uname -a

  25. Exit Exit or ^D

  26. Telnet What’s the telnet? a program a main function with a window how does it work? a client connected to a telnet server a protocol

  27. ftp ftp program, ftp command, ftp server ftp client, ftp protocol ? --help ls cd bin & asc get & put mget & mput bye

  28. Terminal What’s the terminal? What’s console, terminal, pseudo-terminal tty0 tty1 pts/0 Echo $TERM stty -a /stty all stty erase ^? intr ^C kill ^U eof ^D swtch ^Z quit ^\ ^J stty sane ^J

  29. logname logname

  30. whoami whoami

  31. who • Who • each user has an account, has a password and a home directory

  32. date date date –u date +%Y/%m/%d to set date: date MMDDHHMMCCYY ( this need root priority)

  33. cal cal -y –j month year

  34. clear clear

  35. echo Echo Echo –e abc“\a” -e:enable control char \a alarm \c remove newline \n newline \t tab \\ “\” \b backspace \f new page \r linefeed \v vertical tab \nnn octal digit

  36. write write uid@host Write tty(n) Write ttyp(n)

  37. mesg mesg -n –y :you cann’t mask root’s message mesg joshua

  38. mail mail

  39. man man -n command 1 command 2 syscall 3 lib 4 special file 5 file format info …

  40. su su password: (root’s password)

  41. -------- What’s file? File is the storage of data, program File is the most important data structure of operating system

  42. The File Systems

  43. Path Name • Path name uniquely specify particular file or directory • Path name separated by “/” • A “/” in the first position represents the root directory

  44. ls(1) ls option: -a –A –l –v --help • Note: file name rule no “/” 1 !@#$%&*()[]{}’ ” \ | / ; < > SPACE 2 case sensitive 3 .txt .doc .sh .html .pl .c .o .tar .gz .rmp

  45. File Attribute(1)

  46. File Attribute(2) Type: - d l b c s p to see /dev/hda1 /dev/cdrom …

  47. File Permission

  48. chmod(1)

  49. Mode value

  50. chmod(2) chmod a-w,o-rx *.cat

More Related