GENERAL INSTRUCTIONS (MASTANI, 2014), LINUX Basics
1. LINUX Basics:
A very brief reminder of useful linux commands:
- cp A B copies file A to file B.
- mv A B moves file A to file B.
- mkdir C creates a directory named C.
- ls C lists the names of the files and sub-directories contained in directory C
- vi A or gedit A are some of the many ways in which you can open the file A for reading and/or editing.
- Adding an ampersand & at the end of your command will make it run in the background, so that you can continue to issue other commands while the original one is still running.
Vi Editor Basic:
- vi A to open a file A for reading and/or editing.
- Shift+i to go into INSERT mode (Check for -- INSERT -- at the bottom of the file).
- Shift+r to go into REPLACE mode (Check for -- REPLACE -- at the bottom of the file).
- Esc to go into READ-ONLY mode
- To save your file: Esc (First go into READ-ONLY mode) and then :w (to save)
- To quit your file: Esc (First go into READ-ONLY mode) and then :q (to quit)
Remember: don't overwrite output files before you extract data from them!