1. how to size terminal
2. how to open utilities window
3. how to open a new stuffs for anything application
4. how to clear contents
5. what is echo
6. what is exit
7. move cursor to start of line
8. move cursor to end of line
9. move cursor to click point
10. to complete the command or filename (tab or tab tab to show list of possible matches
11. how to cycle between terminal windows (terminal only)
12 command option argument
13 ls -l -a -h Desktop ls -lah Desktop
14 banner -w 50 ‘hello world’ or banner -w50 ‘hello world’
15 man echo // forward f back b next page space start g end shift g exit q
16 d is directory – is file . invisiable .. ../.. higher .Trash .DS-Store .bash-history
17 cd ~ cd /
18 touch to create a file
19 vim emacs nano
20 cat (read file, more than one file, not for a long file) more for a long file (not backforward), less (backward scrolling, better memory use.
move forward a screenful
move back a screenful
search for a specified string; asks for string
delete a character
delete previous character
kill (delete) the rest of the current line
go to the beginning of the line
go to the end of the line
go to the end of the file
open up a new line
put back the most recently deleted lines
make the changes in the file
It is probably useful to give some additional information about some of these commands. There are two reasonable ways to add a new line. One is to go to the end of the line before the place where you want to put it and hit the carriage return to create the new line. The other is to go to the beginning of the line after it and hit “^o”. In either case, the cursor will be left on the new line, ready for you to type in new text.
^k has a somewhat odd but useful definition. If you are in the middle of a line, it deletes the rest of the line. If you are at the end of the line, it deletes the newline at the end. That is, it joins the next line to the end of the current one. If you want to kill the whole line, this means that you should get to the beginning of it and do “^k” twice. The first time clears the line. The second time gets rid of the newline at the end.
^k can be used with ^y to move text around. When you kill lines with ^k, they are remembered in a “kill buffer”. You can then to somewhere else and do ^y. This will cause the lines that you killed to be resurrected at the current location. You can put the same lines several places by doing ^y in several places. NB: If you do a few ^k’s, then move the cursor, then do a few more ^k’s, only the last set of lines killed will be in the kill buffer. Of course if you know how many lines you want to move, it is easier to do “escape 5 ^k” than ^k 10 times. (10 times because you have to type ^k twice to kill a single line.)
To exit from EMACS, first write out the updated version of the file by typing “^x^s”, and then leave by typing “^x^c”.
EMACS protects you against various kinds of disaster by keeping backup copies of your file. These have the same name as the original file, with .BCK or .CKP added to the end. If may find it a good idea to do “rm *.BCK *.CKP” now and then.