How to Connect to


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

Connecting to

We will use a tool named PuTTY to connect to There are other tools available but let's start with PuTTY. PuTTY can be downloaded here
Enter 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% If you are using a computer in one of WIU computer labs, 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 code uxb4:~/Files% ls bar foo code

cd ~

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


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


Show who is currently using the system
uxb4:~% who mflll pts/0 2016-08-21 19:07 (:1) mflll pts/6 2016-08-16 20:21 (:1) mflll pts/7 2016-05-16 19:22 (:1) dmp120 pts/8 2016-08-26 15:28 ( cth105 pts/10 2016-08-24 11:38 ( mflll pts/13 2016-04-21 16:56 (:4) hb117 pts/19 2016-08-27 19:48 ( mflll pts/21 2016-08-26 13:45 (:1)

who am i

Your username/userid/handle
uxb4:~% who i am hb117 pts/19 2015-08-27 19:48 (

Your first C program

Change directory to code and create a the hello.c file using nano or vim
uxb4:~% cd ~ uxb4:~% cd Files uxb4:~% cd code uxb4:~% nano hello.c uxb4:~% cat hello.c #include int main() { printf("Hello, world!\n"); return 0; } uxb4:~% ls hello.c uxb4:~% gcc -g -Wall hello.c -o hello ls hello hello.c uxb4:~% ./hello Hello, world!