Notes From CS Undergrad Courses FSU
This project is maintained by awa03
Nano has syntax highlighting which pico lacks. Nano doesn't come with syntax highlighting on by default.
Command | Description |
---|---|
Ctl-g |
Help |
Ctrl-x |
Exits help |
Ctl-k |
Cuts a whole line of text |
Ctl-u |
Pastes the whole line |
Ctl-o |
Saves your edits without quiting |
Ctl-x |
Asks to save, and then quits |
Ctl-w |
Enter a string to search for |
Alt-w |
Repeat the last search |
Alt-a |
Start marking text |
Alt-6 |
Stop marking text, and copy it |
Ctl-u |
Paste the selected text |
u
- Select only one user to show
k
- Kill one of your own jobs
q
- Quit top
You can terminate a process by sending a signal to its process ID. There are multiple different signals.
Signal 15 is sent to the program and asks it nicely to shut down. For example in nano it will save its work in a backup file then end normally. This means however that a program may ignore the signal 15 instruction.
If the program wont close we use signal 9. Signal 9 is the kill hammer. It releases the cpu, memory, network, etc resources.
The "Pipe operator" redirects output from one program to the input of another program
ls > myFile
- Creates a new file (or empties an existing file), it connects it to stdout
and sends the directory listing to myFile.
This can be done with a number of commands such as mail
.
mail name < myFile
env | grep 'PWD'
- env
runs and displays dozens of environment variables per line. grep
receives these lines and searches for the one that contains the 'PWD' variable.