Unix Commands Flashcards
Echo
Print on screen
Ex. Echo “hello world.”
> hello world.
Man
Opens the “user manual” for a command. Use if unsure about how to use the command.
Ex. man vi
> opens the manual for help using ‘vi’
vi
vi = “visual editor”
Command-line “notepad.”
Use to create basic text-based files.
Example file extensions: Text file .txt C-program file .csh Java file .java Configuration files .ini
vi commands to go from command to input mode:
i insert text before cursor
I insert text at beginning of current line
a append text after cursor
A append text to end of current line
o open and put text in a new line below current line
O open and put text in a new line above current line
esc exit input mode
vi commands to enter input mode
i insert text before cursor
I insert text at beginning of current line
a append text after cursor
A append text to end of current line
o open and put text in a new line below current line
O open and put text in a new line above current line
esc exit input mode (back to command mode)
vi commands to save and exit vi
:wq - write and quit
:q! - quit without writing