130 likes | 275 Views
More on Using onyx. 8/28/13. Program 1. Due a week from today. See website for details. Objectives. Review using vim Learn more Linux commands. Steps to Run a C++ program. Login into onyx Edit the program using vi or vim Compile the program with g++ Execute the program with a.out
E N D
More on Using onyx 8/28/13
Program 1 • Due a week from today. • See website for details.
Objectives • Review using vim • Learn more Linux commands
Steps to Run a C++ program • Login into onyx • Edit the program using vi or vim • Compile the program with g++ • Execute the program with a.out • Logout out of onyx
Login from Windows at Remote Site • mobaxterm or other ssh • See links off 117 webpage.
Login from Mac at Remote Site • Download mobaxterm to use on your computer.
Logout • exit • In the lab: Right-click and select logout • Select “Logout” button in dialogue box • Don't shutdown the computer • Important
vi Commands • a, i – get into insert mode • <esc> – back to command mode • x– delete a character • dd, 10dd– delete a line, delete 10 lines. • dw – delete a word • u– undo • :n – Get to line n • :wq– save and quit • :q!– quit w.o. saving • arrow keys– move around
To Print a Program lpr -Pet214 prog.cpp
More linux • Command Format: command -options argument(s) • Commands to know: • ls, cp , rm, mv, • mkdir, mv(to a directory), cd, cd .., rmdir • man, more, cat • passwd • exit
Questions • How do you save a program in vim? • How to you make a copy of your program?
Lab Access • If you want to use the lab make sure your Bronco ID has a proxy code. • Gold bar near picture, not brown. • If you don't have one, an get an ID with proxy for no charge at the SUB. • Not set up yet.
Participation Today • Edit and execute a feet to inches program that I will write on the board.