計算機概論實習 linux workstation week 3. linux unix: at&t laboratories, 1969 – ken thompson...

Download 計算機概論實習 Linux workstation Week 3. Linux Unix: AT&T Laboratories, 1969 – Ken Thompson and Dennis Ritchie GNU: the GNU OS, “Hurd” – GNU General Public License

If you can't read please download the document

Upload: miles-mosley

Post on 26-Dec-2015

218 views

Category:

Documents


3 download

TRANSCRIPT

  • Slide 1
  • Linux workstation Week 3
  • Slide 2
  • Linux Unix: AT&T Laboratories, 1969 Ken Thompson and Dennis Ritchie GNU: the GNU OS, Hurd GNU General Public License BSD: Berkeley Software Distribution, 1977 USL(AT&T) v. BSDi MINIX: Andrew S. Tanenbaum, 1987 16-bit, microkernel Birth of Intel 386 (32-bit)
  • Slide 3
  • Freax! Linux: Linus Torvalds Monolithic kernel 32-bit (Intel 386 \:D/) GNU/Linux (FYI) Monolithic Microkernel Hybrid
  • Slide 4
  • Linux Distros Fedora (Red Hat) openSUSE (Novell) Ubuntu (Canonical Ltd.) Mandriva Linux (Madriva) Debian Mageia
  • Slide 5
  • NTUIM GNU/Linux Workstations 140.112.106.6 (mercury) 140.112.106.9 (mars)
  • Slide 6
  • SSH vs. Telnet Both connect to remote servers Telnet by default Plain text No encryption No authentication SSH More secure More overhead
  • Slide 7
  • PuTTY/PieTTY A small and safe Telnet/SSH remote client PuTTY http://the.earth.li/~sgtatham/putty/latest/x86/putty. exe http://the.earth.li/~sgtatham/putty/latest/x86/putty. exe PieTTY http://ntu.csie.org/~piaip/pietty/ http://ntu.csie.org/~piaip/pietty/ Unicode Just input servers address, tick SSH, and youre on!
  • Slide 8
  • Uses Compile your C/C++ code OS (thread) Network (socket) Manage your files
  • Slide 9
  • UNIX File and Directory File A sequence of bytes Directory A file that includes info on how to find other files vmunix / dev consolelp0 bin csh lib libc.a usr include etc passwd
  • Slide 10
  • File Permission (1/2) Output of ls -l total 4 lrwxr-xr-x 1 test user 18 Aug 28 13:41 home -> /usr/people/maria/ -rw-r--r-- 1 test user 94 Aug 28 13:42 nothing.txt drwxr-xr-x 2 test user 9 Aug 28 13:40 test_dir/ File type Permissions Owner GroupModify date File name
  • Slide 11
  • File Permission (2/2) File permissions Permissions used to allow/disallow access to file/directory contents Owner/Group/Other Read (r) 4, write (w) 2, and execute (x) 1 For owner, group, and world (everyone) chmod chmod 700 file.txt chmod g+rw file.txt
  • Slide 12
  • Some commands CommandOutcome cd [directory name]Change directory cd..Change to parent directory lsList information about current directory pwdPrint current working directory clearClear terminal screen chmodChange the access permissions of files and directories unamePrint system information passwdModify a user password mkdir [dir. name]Create new folder rm [file name]Remove file Rmdir [dir. name]Remove directory cp [origin] [dest.]Copy file
  • Slide 13
  • More commands CommandOutcome vim [file name]Open Vim text editor for file name > [file name]Print returned result to file name | grepSearch result for matching expression./[executable]Execute program executable cat [file name]Read file name (there are other uses) Vim CommandOutcome Standby for command :qQuit :q!Force quit :wWrite file aInsert text
  • Slide 14
  • Homework Linux command
  • Slide 15
  • Due Day: 2012/10/3 /home/r101042/labtemp execute_me ( labtemp ) answer.txt vim result.txt labtemp 3 special.txt
  • Slide 16
  • Q&A Thanks for attention!