Software Development Practices Lab 1: Introduction To Unix: Dang Tran Luc MAI Student Id: 6601545
Software Development Practices Lab 1: Introduction To Unix: Dang Tran Luc MAI Student Id: 6601545
Practices
I.INTRODUCTION
Lab 1 is just an overview of Unix OS. In these activities, students will learn how to connect to the server
via PuTTY or Winscp. Furthermore, they will get familiar with commands and their parameters. The most
important thing is how to use man command effectively.
II.BACKGROUND
Software
1.1 PuTTY program is used for creating the connection to server using SSH protocol (port 22). Unix
server for this lab does not accept Telnet protocol due to security issues. Filling the name of server
“rule89.caia.swin.edu.au” with the port of 22, the next step is login with user name and password.
This program interface is mainly command line.
1.2 Using the Winscp, the file can be moved back and forward very easily and similar to Windows
Explorer. In this program, the user name and password need to be filled. Otherwise, they will be
prompted later. This interface is GUI.
Command syntax
2.1 Navigating the command and its options.
date shows the data and time of system. The output is Tue Aug 24 19:35:14 EST 2010.
date “+DATE: %Y-%m-%d TIME: %H:%M:%S” formats the presentation of day and time. The
output is DATE: 2010-08-24 TIME 19:38:25
File manipulation
3.1 Creating a test directory in /home/user/ by these steps:
cd /home/user: go directly to user directory.
pwd to check the currently standing directory.
mkdir test to create the directory with the name test
ls to check the content of user directory.
Output redirection
6.1 sysctl –a show the kernel state.
6.2 sysctl –a | grep “net” shows the variables starting by “net”.
6.3 cat filename1 >> filename2 to append the content of filename1 to filename2. For example: file1 has
“UNIX” and file2 has “TELECOMMUNICATION”. The result of file2 in the aftermath of this command is
“TELECOMUNICATION UNIX”.
6.4 cat filename1 >> filename2 to replace the content of filename2 by that of filename1. For example:
file1 has “UNIX” and file2 has “TELECOMMUNICATION”. The result of file2 is “UNIX”.
8. After login back, I realized that the banner of the day has been changed.
Logging out
10. Type exit to logout.
III.CONCLUSION
This lab provides very comprehensive practices for people who are new to Unix. By exploring the
commands, students can have more understanding of the system. The next lecture will continue
explaining more about the kernel insightfully.
References:
1. http://www.linux.com/archive/articles/146599