Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
UNIX is the name of the operating system used on the Economics Sun Network. To learn how to access your account and change your password, refer to the handout titled Getting to Know the Economics Dept. Computers.
Home Directory
Every user is assigned a home directory. When you first log in, you are placed in this home directory. Home is your starting point in your file hierarchy. Your home directory will be: /home/grad/userid or /home/ugrad/userid or /home/class/userid.
cd project will change your current directory to the directory called project. You can use the ls command to see what files and directories are within this directory. (If the directory is empty, the ls command will simply return another prompt.) A very useful UNIX command cd .. will take you to the parent of the current directory. For example, if we are in the /home/grad/mtasci/project directory, the command cd .. will take us to the /home/grad/mtasci directory. Another useful UNIX command. cd will take you directly to your home directory.
If you wish to examine the files, type y and press <return>. Otherwise, type n and press <return>
cd <return> If we use the second method, we never leave our home directory.
The second column of the computer's response tells you how much space you are using in kilobytes. The third column tells you your quota in kilobytes. So user mtasci is now using 333564 kilobytes of his quota of 512000 kilobytes. If you are running out of disk space, you may try compressing your files using the compress utility, removing files you no longer need, or moving files to a CD. If you need to store large data sets and files, please store them under share directory. It is located under /share/grad We recommend that you create your own directory and store your files in that directory so that share directory remains neat and practical.
V. Printing
Printing a File (lpr -P)
To print a text or postscript file, type: lpr -Pprintername filename The printernames for the two printers available in the Sun Lab are lw4 and lw5. For example, to print the file called psone.tex on lw5, type lpr -Plw5 psone.tex If you are using a program like MS Word, you will have to print your document from within the program. You can't print the MS Word document from the prompt with the lpr command.
*Important*
Once you have sent a print job to the printer it enters a queue (a line of print jobs). This is true for all print jobs, including those from programs like MS Word. If your print job doesn't come out of the printer right away, don't just send the command again, try to determine what has happened. The first step is to check the print queue.
For example, to check the queue for printer lw5, type: lpq -Plw5. and the computer will give you the following information: Column One: The rank of each print job (i.e. where in line the print job is). Column Two: The name of the user who sent the print job (the owner). Column Three: The number assigned to each print job. Column Four: The name of the file to be printed for each print job. Column Five: The size of the file.
The job number is in the third column of output resulting from the command to check the print queue (lpq). To kill the print job type: lprm -Pprintername jobnumber For example, to kill print job 13670 after it has been sent to the printer lw5, type lprm -Plw5 13670 If the print job is already coming out of the printer the lprm command will no longer kill the print job. However, you can press the <RESET> button on the front of the printer to kill the print job as it is coming out of the printer.
To finish your session, type exit and then press <return> at the prompt or click on Logout on the Actions tab (in top left of screen). It is important to always exit when you are done working on the system to protect the privacy and integrity of your account.