Difference between revisions of "CSC231 Bash Lab 1"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- <br /> <bluebox> This tutorial introduces the basic navigation commands, and will show you how to create directories (folders) and move in and out of them. <br />")
 
Line 6: Line 6:
 
This tutorial introduces the basic navigation commands, and will show you how to create directories (folders) and move in and out of them.
 
This tutorial introduces the basic navigation commands, and will show you how to create directories (folders) and move in and out of them.
 
<br />
 
<br />
 +
<br />
 +
==Switching to the Bash Shell==
 +
<br />
 +
By default, your student account using the shell called '''tcsh'''.  We will be using another shell that is more friendly: '''bash'''.
 +
<br />
 +
Open a terminal or console window and connect to '''aurora.smith.edu''' with your class account.  Here we assume that your class account is of the form ''231b-xx'' where ''xx are two unique letters associated with your personal account.
 +
<br />
 +
Run these commands at the Linux prompt:
 +
<br />
 +
cd
 +
cp .login .login.bak
 +
cp ~231b/.login  .login
 +
<br />
 +
What this does is to copy the a file from your instructors account (~231b) into your account (~231b-xx).  This file is read automatically every time you login to your account and will set the shell to bash.
 +
<br />
 +
* logout of your account
 +
* log back in.  You should see something like this:

Revision as of 17:07, 2 February 2017

--D. Thiebaut (talk) 17:04, 2 February 2017 (EST)



<bluebox> This tutorial introduces the basic navigation commands, and will show you how to create directories (folders) and move in and out of them.

Switching to the Bash Shell


By default, your student account using the shell called tcsh. We will be using another shell that is more friendly: bash.
Open a terminal or console window and connect to aurora.smith.edu with your class account. Here we assume that your class account is of the form 231b-xx where xx are two unique letters associated with your personal account.
Run these commands at the Linux prompt:

cd 
cp .login .login.bak
cp ~231b/.login  .login


What this does is to copy the a file from your instructors account (~231b) into your account (~231b-xx). This file is read automatically every time you login to your account and will set the shell to bash.

  • logout of your account
  • log back in. You should see something like this: