Unix Startup Guide

Unix OS

The gateway server gateway.cs.cityu.edu.hk is currently running Ubuntu 18.04. It is the ONLY Unix server you can connect from the Internet. If you need to access other course-oriented servers or GPU clusters, please connect to it first.

For Unix/Linux machines, connect to the server directly using native SSH client

ssh gateway.cs.cityu.edu.hk

For Windows machines, install one of the following SSH clients


Change Password

Please refer to CityU Change Active Directory (AD) User Account Password to change your password.

Applications

Public domain software

Most shareware are available in "/usr/local/bin". You can enter this directory and find out the applications you need.

Logout

Issue the command exit to log out.

Configuration Files

There are several hidden files (dotfiles) in your home directory which control your working environment. You can edit these files to customize for your own preference.

~/.bashrc - Bourne Again Shell resources file

Useful Unix Command

Some frequently used commands under Unix are:

File and directory manipulation
ls    list contents of a directory
cd    change current working directory
mv    move or rename files/directories
cp    copy files / directories
rm    remove / delete files / directories
cat    type files
more    text file page browser

Editors
vi    screen-oriented display editor
Help and reference manual pages viewers
man    manual pages

Compilers
gcc    GNU project C and C++ compiler

Communication programs
ssh    communicates with another host using SSH protocol
(e.g. ssh gateway.cs.cityu.edu.hk))
ftp    interactive file transfer program


Process Control
ps    display the status of current processes
kill    send a signal to a process, or terminate a process