Neuromuscular Control Lab FAQ Page

(REKlab)


 

Hints

 

Unix Hints

Emacs Hints

LaTex Hints

 

Questions

 

  1. How do I stop a printing job?
  2. How do I get the previous command in MATLAB?
  3. How do I look at the error log?
  4. How do I format an new 230Mbyte optical disk?
  5. How do I mount/dismount the OP 3.5 Optical disk?
  6. How do I mount the CD ROM?
  7. How do I get the CD ROM to show lower case file names?
  8. What are the common tar commands?

 

Questions and Answers


How do I stop a printing job?

The lprm command cancels a print job under your authority.

USAGE: lprm 'jobnumber'

To find the jobs waiting in the printer queue, type lpq

For further information, see man lprm

 

How do I get the previous command in MATLAB?

If the up arrow key gives you silly responses, (^[0A for example) then type ! and press return. Alternately, type !export EDITOR=emacs to get emacs-type commands on the command line.

 

How do I look at the error log?

Use the uerf command.

 

How do I format an new 230Mbyte optical disk?

You must be superuser and following these steps:

1.      Erase the current disklable

 disklabel -z  /dev/rrz10a 

2.      Create a new label for the device (Op 3.5" 230mb disk)

3.                 # disklabel -rw /dev/rrz10a op35dd 

4.      Read the label back to check 2

5.                 disklabel -r /dev/rrz10a

6.      Put a new file system on the disk; Partition c occupies the whole disk and goes from 0 to 446324

7.                 # newfs /dev/rrz10c                 

8.      Mount the optical disk:

mount /dev/rz10c mount_point

and it should be loaded and ready for use.

 

How do do mount/dismount the OP 3.5 Optical disk?

mount /dev/rz10c mount_point
 
umount /dev/rz10c
 

 

How do I mount the CD ROM?

For ralph:

mount -t cdfs -r /dev/rz4a /cdrom 
 

 

How do I mount the CD ROM with lower case file names?

Use:
mount -t cdfs -r -o noverson /dev/rz4a /cdrom

 

Common Tar Commands

To get the index of an archive

tar -ft archive.

To back up a direcotry and subtrees

tar -cfv archive.tar /dir/name

To read all files from an archive

tar -xfv archive.tar