Week 2 Notes for DAT2330 - Ian Allen Supplement to Text, outlining the material done in class and lab. Remember - knowing how to find out the answer is more important than memorizing the answer. Learn to fish! RTFM![*] ([*] Read The Fine Manual) Read the course announcements frequently, especially before tests. Look under the "Notes" button on the course web page for these study notes for the Linux textbook: chapter2.txt (Getting Started) chapter3.txt (Utilities) Complete these Floppix Labs from http://floppix.ccai.com/ Floppix Lab 13: Who's on? Floppix Lab 22: e-mail Floppix Lab 23: telnet Floppix Lab 24: ftp Floppix Lab 25: links [the www browser] Floppix Lab 27: Super User Floppix Lab 12: grep =========================== Notes on FTP command syntax =========================== The syntax of FTP commands is not the same as the syntax of Unix commands. This FTP command doesn't do what you think it does: ftp> ls -l filename output to local-file: filename? If you answer "yes" to this prompt, you will copy the output of "ls -l" into the file "filename" in your current directory, erasing what was there before. This is probably not what you want. The FTP command names resemble Unix command names; but, they are *not* Unix commands. The syntax is different. Be careful. (Also, don't type FTP commands into Unix and expect that they will work, e.g. "put filename".) ========================== Unscrambling your Terminal ========================== How to unscramble a terminal emulator that is in graphics characters set mode, where see many special and line-drawing characters instead of your typed text. (This might happen after you accidentally use "cat" to send a non-text file to your terminal screen, e.g. "cat /bin/ls".) To Fix (you may not be able to read what you are typing!): - On a Linux system (including Floppix) type: setterm -reset - On ACADAIX type: reset - On either type: echo ^V^O (that's CTRL-V CTRL-O) The above should switch your terminal emulator back to its normal character set. Practice this now, in case it happens to you on a test! ======================= Getting Out of Programs ======================= Getting out of Unix programs; or, getting help: Try various things such as: help ? quit Q exit x ^D (CTRL-D) ^C (CTRL-C) :q! (used in VI to exit without saving) logout bye ESC (the ESC key) . (a period) ^\ (CTRL-backslash) One of the above usually works. Sometimes you can use ^Z (CTRL-Z) to "stop" the process temporarily, and then type "kill %%" to kill it. (Remember to kill it, or it will sit there forever.)