CS 410 - How to Connect to uxb4.wiu.edu


This guide will show you how to connect to a Linux server uxb4.wiu.edu and introduce you to to the Linux environment (shell/terminal).

Connecting to uxb4.wiu.edu

We will use a tool named PuTTY to connect to uxb4.wiu.edu. There are other tools available but let's start with PUTTY
Enter uxb4.wiu.edu under Host Name.
Hit "Yes" to accept.
Type in your ECOM username.
Hit "Return/Enter" and type in your ECOM password.
You will get to this screen.



Display system information uxb4:~% uname Linux uxb4:~% uname -r 3.13.0-48-generic


Show current working director uxb4:~% pwd /home/hb117


List what inside a directory uxb4:~% ls Files http https journal.txt junk lab00 temp UNIX_lab_0.html usr work www


Navigate to a directory uxb4:~% cd Files/ uxb4:~/Files% ls bar foo uxb4:~/Files% Whatever you put or /create in the Files directory will be accessible in P drive

cd ..

Navigate back one directory
uxb4:~/Files% pwd /home/hb117/Files uxb4:~/Files% cd .. uxb4:~% pwd /home/hb117


Create a directory
uxb4:~% cd Files uxb4:~/Files% mkdir lab00 uxb4:~/Files% ls bar foo lab00

cd ~

Go back to your home directory
uxb4:~/Files% cd lab00 uxb4:~/Files/lab00% pwd /home/hb117/Files/lab00 uxb4:~/Files/lab00% cd ~ uxb4:~% pwd /home/hb117


Date and time
uxb4:~% date Sun Jan 24 19:57:34 CDT 2016


Show who is currently using the system
uxb4:~% who mflll pts/0 2015-08-21 19:07 (:1) mflll pts/6 2015-08-16 20:21 (:1) mflll pts/7 2015-05-16 19:22 (:1) dmp120 pts/8 2015-08-26 15:28 ( cth105 pts/10 2015-08-24 11:38 (jakes-imac.ad.wiu.edu) mflll pts/13 2015-04-21 16:56 (:4) hb117 pts/19 2015-08-27 19:48 (c-71-201-31-97.hsd1.il.comcast.net) mflll pts/21 2015-08-26 13:45 (:1)

who am i

Your username/userid/handle
uxb4:~% who i am hb117 pts/19 2015-08-27 19:48 (c-71-201-31-97.hsd1.il.comcast.net)

Your first C program

Create a the hello.c file
uxb4:~% cd ~ uxb4:~% cd Files uxb4:~% mkdir cs410 uxb4:~% cd cs410 uxb4:~% cat >hello.c #include int main() { printf("Hello, world!\n"); return 0; } Use Ctrl+D to save hello.c file. uxb4:~% ls hello.c uxb4:~% gcc -g -Wall hello.c -o hello ls hello hello.c uxb4:~% ./hello Hello, world!