UNSW   Faculty of Engineering PRINT VERSION SITE MAP  
cse | School of Computer Science and Engineering (CRICOS Provider No. 00098G)
    #About CSE     #Undergraduate Study     #Postgraduate Study     #Timetables & Courses     #Research & Publications     #People & Work Units     #Help & Resources     #News & Events     #High School Portal
Help Desk background image

Last updated 09.11.06

BASIC UNIX & LINUX COMMANDS

 

 

Checking Account Details:

 

Account details can be checked

(including print quota level) using:           acc OR pp

 

Disk Quota Used:                                  rquota

Detailed Disk Usage:                             disk_guess

 

Basic File Management:

 

To remove a file:                                   rm

To copy a file:                                       cp

To move a file:                                      mv

To remove a directory:                           rm -rf

To create a directory:                            mkdir

 

Print Commands:

 

To print:                                                lpr -P 

 

To print a job without the login

watermark:

- double-sided                            lpr -P.dup

- single-sided                             lpr -P.sgl

 

To check a printing queue:                     lpq -P

To remove a print job:                            lprm -P

To place multiple PS pages onto

a single physical page:                            mlpr -

-P

 

           

NOTE: The mlpr command can only be used for PS files. To print PDF files using mlpr, first convert them to PS using pdf2ps and then print the newly created PS file using mlpr

 

 

NOTES:

1.      The job number for a particular job can be obtained by running the lpq command as shown above.

2.      If printing double-sided, TWO pages are deducted from your print quota.

 

 

 

 

 

 

Floppy Disk Commands:

 

Disk contents:                                       mdir

Copy file (floppy - home dir)                  mcopy a:/ .

Copy file (home dir - floppy)                  mcopy a:

Delete file                                             mdel a:/

Format a floppy disk:                             mformat a:

 

Note: Please view the man page for mtools for a complete description

Compressing Files and Directories:

 

To compress a file:                                gzip

To decompress a file:                             gunzip

 

To compress a directory:                        tar cvf   - .tar 

            To decompress a directory:                    tar -xvf .tar

 

Viewing/ Printing PDF and PS files:

 

PDF files can be viewed using either acroread or xpdf

PS files can be viewed using gv

 

Print through acroread (PDF):              lpr -P

Print through xpdf (PDF):                      lpr -P

Print through gv (PS):                            lpr -P

 

Formatting text files for printing:

 

            Use the aps command:                          aps

 

            Eg. Print a text file with no border/

BasicUnixCommandImage1.gifBasicUnixCommandImage2.gif            header in PORTRAIT form                   aps -~B -P -~H file.txt | lpr -P

 

                                                                                                Portrait mode

                                                               no border

 

(the ~ is used to turn OFF the border and header option. )

 

Basic LaTeX Commands:

 

            Process the formatted source file:           latex .tex

            Preview the latex (.dvi) file:                   xdvi .dvi

            Convert dvi file to ps:                            dvips .dvi -o

            Print a dvi file:                                      dvips .dvi | lpr -P

            Create a pdf file:                                   pdflatex

 

Note: Please view the man page for pdflatex for a complete description

Book Commands:

 

            To enter the booking system:                  book

            To book a terminal once in the

            Booking system:                                    book

            To claim a booked terminal:                   claim

            To book a terminal using a graphical interface, use tkbook instead of book

 
This page is maintained by cse help desk
Top Of Page

 ###
Site maintained by webmistress@cse.unsw.edu.au
Please read the UNSW Copyright & Disclaimer Statement