Sonoma State University
Department of Computer Science
CS-210: Introduction to Unix
Exercise 6: Editors and dot files

Objective

In this exercise you will learn the VIM (vi improved) editor then edit your bash resource file (.bashrc).

1. Take the vim (VI iMproved) tutorial. You can run the tutorial from the command line on Blue by typing: vimtutor.

2. Once you feel comforable using vim, edit your dot bashrc (.bashrc) in your home directory (vim ~/.bashrc) file by adding the following aliases at the end of the file:

  • export HISTCONTROL=ignoredups
  • export HISTSIZE=1000
  • alias cp='cp -i'
  • alias mv='mv -i'
  • alias rm='rm -i'
  • alias ll='ls -l --color=auto'
  • alias h='history'

Submission Instructions:

Please submit your modified dot bashrc (.bashrc) file to Canvas.

Exercise 6 Rubric

CRITERIA RATINGS POINTS
bashrc file:
Contents of student's bashrc file from Blue Unix server.
Proficient
2 points

Student submitted their .bashrc file from Blue Unix server. The bashrc file contains the two export commands and five alias commands noted in the assignment guidelines.
Satisfactory
1.4 points

Student submitted their .bashrc file from Blue. The bashrc file contains at least four items from the assignment guidelines. The other items may be missing or contain syntax errors.
Needs Improvement
1 point

Student submitted their .bashrc file from Blue. The bashrc file contains at least one item from the assignment guidelines. The other items may be missing or contain syntax errors.
Below Expectation
0 points

No .bashrc file submitted.
2 points
Total points: 2