Terminal Basics#
You do not need to become a Linux expert for CS 135 or CS 202, but you do need a few reliable terminal habits.
Use this page after you have opened a terminal connected to Bellagio through X2Go Client, VS Code Remote SSH, SSH, or another approved course method. Current course announcements, account instructions, and your syllabus control current-semester setup details.
Essential commands#
Show the current directory:
pwdList files:
lsChange directories:
cd directory-nameCreate a directory:
mkdir directory-nameCreate nested directories:
mkdir -p ~/cs135/projectCompile a C++ file:
g++ $CXXFLAGS main.cpp -o main$CXXFLAGS expands to the C++ compiler settings configured for the course.
See What is CXXFLAGS?
for more detail.
Run the compiled program:
./mainExit the login session:
exitWhen a command fails#
Read the full error message. Save the command you ran and the exact output. That information is useful when opening a help ticket for a connection problem or asking a debugging question in the appropriate course support channel.
For more commands, see Useful Linux Commands.