Sunteți pe pagina 1din 2

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 Web page: https://status.cse.unsw.edu.au/Control_Panel/ Basic File Management: To list files info on current directory To remove a file: To copy a file: To move a file or directory: To remove a directory: To create a directory: Print Commands: To print from an application (eg: xpdf) lpr -P<printer> To print from xterm: lpr -P<printer> <filename.txt/ps/pdf> NOTE: Your document may not be readable or even not printed if you print directly from the command line from the xterm. So please ensure that you open and print the files using the appropriate application, for example do open .pdf file with xpdf filename.pdf then issue a print command in the print-dialog as shown above: lpr P<printer> To print a job without the login watermark: - double-sided - single-sided To check a printing queue: To remove a print job: To remove job once it has started printing (also remove all your jobs): To place multiple pages onto a single physical page: ls -al rm <filename> cp <filename> <New_filename> mv <Old_filename> <New_filename> rm -rf <dir name> mkdir <dir name>

lpr -P<printer>.dup <filename> lpr -P<printer>.sgl <filename> lpq -P<printer> lprm -P<printer> <job no.> lprm P<printer> -a mlpr -<no. logical pages> -P<printer><filename>

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. Change the font size: Inside an xterm press Ctrl-Button 3 (the right mouse button). The VT fonts menu appears which allows you to change the font size of that xterm.

FOR FURTHER INFORMATION : FAQ Page: Manual Pages for each command: Consult the Help Desk CSE Help Desk (02)9385 5438 http://taggi.cse.unsw.edu.au/ man <command name>

Email: helpdesk@cse.unsw.edu.au

Floppy Disk Commands: Disk contents: Copy file (floppy - home dir) Copy file (home dir - floppy) Delete file Format a floppy disk: mdir mcopy a:/<filename> . mcopy <filename> a: mdel a:/<filename> mformat a: Note: Please view the man page for mtools for a complete description Compressing Files and Directories: To compress a file: To decompress a file: To compress a directory: To decompress a directory: To tar and zip a directory: To untar a .tar.gz or .tgz file: Viewing/ Printing PDF and PS files: PDF files can be viewed using either acroread or xpdf PS files can be viewed using gv or gnome-gv Convert a file from PS to PDF Convert a file from PDF to PS Formatting text files for printing: Use the aps command: Eg. Print a text file with no border/ header in PORTRAIT form aps <option> <filename> | lpr -P<printer> aps -~B -P -~H file.txt | lpr -P<printer> ps2pdf <filename.ps> pdf2ps <filename.ps> gzip <filename> or zip<filename> gunzip <filename> or unzip<filename> tar -cvf <archive name >.tar <dir name> tar -xvf <archive name>.tar tar -zcf <archive name>.tar.gz <dir name>

tar -zxvf <filename>.tar.gz or tar -zxvf <filename>.tgz

Portrait mode no border (the ~ is used to turn OFF the border and header option. ) Basic LaTeX Commands: Process the formatted source file: Preview the latex (.dvi) file: Convert dvi file to ps: Print a dvi file: Create a pdf file: latex <filename>.tex xdvi <filename>.dvi dvips <filename>.dvi -o dvips <filename>.dvi | lpr -P<printer> pdflatex <options> <commands> 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 <start time - finish time><day/ date> To claim a booked terminal: claim To book a terminal using a graphical interface, use tkbook instead of book (Or goto: https://status.cse.unsw.edu.au/Control_Panel/ )

CSE Help Desk (02)9385 5438, http://www.cse.unsw.edu.au/~helpdesk Email: helpdesk@cse.unsw.edu.au

S-ar putea să vă placă și