Unix command to find kernel

To find the kernel version type into the command prompt:uname -r If having problems compiling previously working code, maybe the computer I’m working on is an x86 computer. (like pc 31) Best to switch computers to a regular format. (like pc 1, 10)

learned about rwho, who, write

After SSH-ing into the campus computers, can look at other users on the systemssh username@pc10.cs.ucdavis.edurwho// lists all users on the csif machines who pc 9// lists all users on pc 9 who// lists all users on current pc write person// must ssh to same computer as person, then writes stuff to their cmd prompt.

C++ Parsing, feeding a textfile to a program

To automatically fill in input to a program that promts using cin>>, use this from the command prompt:$programName < commands.txt Including files correctlymain file: > #include “functions.h” functions.h:> #include > using namespace std;> function or class prototype non–void eg: int foo(string); funtions.cpp:> #include “functions.h”> function definition eg: int foo(string mystring){ } makefile> g++ -c main.cpp …