(1) use "cd" to go to the directory that contains the project file e.g.: cd ~/cs255/pj1 cd ~/cs355/pj2 (2) Execute this command to edit the file "filename" nano filename |
When you want to save the file, type this inside the Nano window: control-S (hold the control key and press S) |
After saving the edited file (see above), you can exit/quit Nano by typing: control-X (hold the control key and press X) |
When you messed up and don't want to save your work, do the following: (1) Type control-X (exit) (2) Nano will ask if you want to save your work Answer: No (N) |
Use arrow keys to move up, down, left, right Use page up, down to ove a screen forward/backward |
(1) move the cursor (using arrow keys, page up, page down) to the location where you want to insert (2) type the text you want to insert backspace will delete a character |
(1) move to the line you want to cut and press control-K (2) IF you want to paste the cut line somewhere else: move to the line you want to paste and press control-U (Nano will paste the cut line above the current line) |
(1) move to the first character of the first line of text you want to cut and press Ctrl-6. (2) move to the last character of the last line of text you want to cut and press Ctrl-K. This will cut the text. (K is for "Kut"). If you want to paste the cut text somewhere else: (3) move to the place where you want to insert the text and (4) press Ctrl-U (for `Uncut') |
(1) move to the line you want to copy and press Alt-6 (2) move to the line you want to paste and press control-U (Nano will paste the cut line above the current line) |
On Terminal (not the Xquartz terminal), go to Preferences -> Profile -> Keyboard -> Use Option as Meta key. On iTerm2, go to: Preferences -> Profiles -> Keys -> Left Option Key -> Esc+ |
Then you should be able to use Alt-6 as described.
Don't use the terminal inside Xquartz, it has limited functionality and the other terminals will still spawn X11 windows as long as Xquartz is running
(1) move to the first line of text you want to copy and press Alt-6. (Cursor will move down 1 line) (2) press Alt-6 again to copy another line, and so on.... (3) move to line of text you want to paste and press Ctrl-U. |
(1) press Ctrl-W (for `Where is...'). You''ll be asked what to search for. (2) Enter the text pattern, then press the Enter or Return key. The cursor will jump forward to the first occurrance of the text you're searching for. If there are no matches, you'll see a message at the bottom telling you that the tex you searched for was not found. Otherwise, the cursor will be over the text pattern. (3) To search for the same pattern again, press Crtl-W again. |
(1) press control-\ Nano will ask for the text that you want to replace (2) enter the text that you want to replace Nano will ask for the text you wish to replace with (3) enter the replacement text Starting at the current cursor location, Nano will find the text and ask you if you want to replace it. Answer by pressing Y or N |
You can undo earlier changes by typing Alt-U repeatedly.
You can redo more changes by typing Alt-E repeatedly.
(Press Alt-C again to disable)