"BGUnix" is intended to serve Bowling Green State University's instructional computing needs. It is designed to share resources among a large number of users and gives priority to smaller jobs.  This system uses your BGSU Username and Password.

These are the directions for obtaining an individual account on BGUnix. If you need a BGUnix class account, a subdirectory for that class will be added to your individual BGUnix account. You will receive instructions for setting up your BGUnix class account from your professor.

To obtain an individual account on BGUnix, you will need to log into MyBGSU.  Once you log in, select either Students or Employees from the top left and then scroll to the bottom left hand corner of the page and locate the link: "Add Server Account".  The following page will list different server accounts in a drop down menu next to a button labeled "Submit."  Make sure the drop down is set to "BGUnix" and hit the submit button.

Creating a new profile

In order to create a new profile in PuTTY, you must fill out the following fields in the Session menu:

  • Host Name (or IP address) - bgunix.bgsu.edu
  • Port - 22
  • Connection Type - SSH
  • Saved Sessions - bgunix (or any other name you wish to save this profile to)

You also need to enable X11 forwarding.

  • Click the + next to SSH in the Category window and click on X11 to highlight it
  • Click the checkbox to Enable X11 Forwarding
  • Click Session in the Category menu to return to the original screen
At this point you may press Save and your new profile will be added to the list.

Logging In

Log into BGUnix (open your saved profile)

  • Make sure that Session is highlighted in the Category box
  • Locate the Load, save, or delete a stored session box and click the profile you wish to open (e.g. bgunix) to highlight it
  • Click the Open button to start your session

The first time you open a profile you may receive a message box like this:

It indicates that you are making a connection a different system with the name BGUnix.  Since the system has been upgraded,  press the Yes button to continue on to your session.  You will not be asked again the next time you connect.



Starting the Terminal

-The Terminal application resides is in the Utilities folder. To open up the Utilities folder in the Finder menu click Go and then select Utilities or use the following shortcut [Shift+Cmd+U].

Connecting to BGUNIX

-In the Terminal menu click Shell and then New Remote Connection…

-This will open a Connect to server dialog box. In the left side of the window can be selected the type of service. BGUNIX supports the following protocols SSH (version 2), SFTP and SCP

-Select SSH from the Service list and then select bgunix.bgsu.edu server from the servers list. If bgunix.bgsu.edu is not in the list then click on the “+” button below the servers list and add the bgunix.bgsu.edu server to the list.

-Next type in your user name in the User field and choose SSH Protocol 2 from the protocols version dropdown list.

-Click Connect and new terminal window will appear asking for your BGUNIX password. Enter the password and you have successfully logged in to your BGUNIX account. (Note: The first time that you connect, you may receive a prompt that references the RSA key fingerprint. Type yes, and then press Enter to continue.)

Save your connection as a shortcut

-Once you have successfully established a connection you can save the connection as a shortcut so that you will not need to re-enter the connection information.

-While connected to the server in the Terminal menu, click File and select Save. In the Save dialog box enter a name for the shortcut and select where you want to save the shortcut to (e.g., to your Desktop).







Fetch is available on Mac OS X systems in ITS Computer Labs.  It can also be downloaded at http://www.fetchsoftworks.com.

Starting Fetch

-The Fetch application resides in the Applications folder. To open up the Applications folder in theFinder menu click on Go and then select Applications. You can also use the [Shift+Cmd+A] shortcut.

Connecting to BGUNIX

-Enter the bgunix address in the hostname field. In the Username and password fields enter your bgunix username and password. The BGUNIX supports the following protocols SSH (version 2), SFTP and SCP. Select SFTP in the Connect using field. Click on the Connect button to establish the connection.

Transfer a file from BGUNIX to your local computer

-Before you start transferring files from BGUNIX configure the folder where the transferred files will be saved. To do this in the Fetch menu click on Preferences.

-In the Fetch Preferences dialog box select the Download tab. In the ‘Save downloaded files to’ field select the destination folder for your transferred files (e.g. Desktop).

-In the Fetch connection window select the file you want to transfer to your local computer (e.g. file in our case). Once you have selected the desired file click on the Get button.

Transfer a file to BGUNIX

-Click on the Put button to open the dialog windows where you can choose which file to transfer.

-A dialog window will open where you have to browse and select the file you want to transfer. Once you have selected the file click on the Put button to perform the file transfer.  







The following table describes some common Unix commands and features.

Command or feature bash (new bgunix)
Commands executed when logging in


Commands executed with each process .bashrc
Display the contents of a file on the screen cat
Return to the login directory cd
Change default directory to directory-name cd directory-name
Clear the terminal screen clear
Copy file source to dest cp source dest
Interrupt the execution of the current program [Control]-c
Log off the system exit or [Control]-d
List files waiting to be printed lpq
Send a file to the printer cslpr filename
Lists the files in the current directory ls
Lists the files in the current directory, with more info. ls -l
Create a subdirectory called dir-name mkdir dir-name
Display information about a unix command man command
View a file one page at a time more filename
Rename a file mv old-name new-name
Change your password passwd
Save a session in a photo file photo log-file-name
Create or edit a file vi filename or
pico filename
Display the current default directory pwd
Delete (remove) a file rm filename
Delete (remove) an empty directory rmdir dirname
Redirect standard output to a file command > file
Redirect standard output and errors to a file command > file 2>&1
Create an alias alias m='more'
Remove an alias unalias m
List command history history
Reexecute the previous command !! (or press up arrow key)
Reexecute the previous command changing ab to xy (Press up arrow and edit command)
Reexecute the fifth command in the history list !5
Reexecute the last command that started with vi !vi
Define a function

function fun {
export -f fun

Execute a function fun
Delete a function unset -f fun
Represents home directory of current user ~
Represents home directory of user jsmith ~jsmith
Represents current working directory . (period) or ~+
Represents previous working directory ~-
Compile a C++ program g++ prog.cpp
Compile a C++ program for use with debugger g++ -g prog.cpp
Complete a partial filename Press [Tab]

For those who write shell scripts, there are several differences between ksh and bash. You will need more information to be able to write shell scripts with bash.

Customizing your bgunix environment

You can customize your bgunix working environment by adding lines to the .bash_profile file found in your home directory. This is an invisible file, so you won't see it with the ls command unless you say "ls -a". However, you must be very careful when making changes to this file since errors in this file could prevent you from logging onto the system. Here are some sample lines you could add to this file: