0% found this document useful (0 votes)
23 views

Basic Unix Commands

This document provides instructions for basic commands used in UNIX, Linux, and LaTeX systems for tasks like file management, printing, disk usage, floppy disk management, compression, and terminal booking. It includes commands for removing, copying, and formatting files, checking disk usage and print queues, and compressing or archiving directories. Notes are provided about options for different file formats and printing pages in portrait mode without borders or headers.

Uploaded by

scodapentavia
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Basic Unix Commands

This document provides instructions for basic commands used in UNIX, Linux, and LaTeX systems for tasks like file management, printing, disk usage, floppy disk management, compression, and terminal booking. It includes commands for removing, copying, and formatting files, checking disk usage and print queues, and compressing or archiving directories. Notes are provided about options for different file formats and printing pages in portrait mode without borders or headers.

Uploaded by

scodapentavia
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

BASIC UNIX & LINUX COMMANDS

Checking Account Details: Account details can be checked (including print quota level) using: Disk Quota Used: Detailed Disk Usage: Basic File Management: To remove a file: To remove a directory: To create a directory: Print Commands: To print: lpr P<printer> <filename> rm <filename> rm rf <dir name> mkdir <dir name>

acc OR pp rquota disk_guess

To print a job without the student number watermark Double Sided: lpr P<printer>.dup Single Sided: lpr P<printer>.sgl To check printing queue: To remove print job: Place multiple PS pages onto a single physical page: lpq P<printer> lprm P<printer> <job no.> mlpr <no. logical pages> P<printer><filename>

NOTE: The mlpr command can only be used for PS files. To print PDF files using mlpr first convert them to PS using pdf2ps <filename.pdf> 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 doublesided, TWO pages are deducted from your print quota.

FOR FURTHER INFORMATION : FAQ Page: Manual Pages for each command: Consult the Help Desk http://www.cse.unsw.edu.au/faq man <command name>

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: Viewing/ Printing PDF and PS files: PDF files can be viewed using either acroread or xpdf Print through acroread (PDF): Print through xpdf (PDF): Print through gv (PS): Formatting text files for printing: Use the aps command: P<printer> Eg. Print a text file with no border/ header in PORTRAIT form aps <option> <filename> | lpr lpr P<printer> |lpr P<printer> lpr P<printer> gzip <filename> gunzip <filename> tar cvf <archive name >.tar > <dir name> tar xvf <archive name>.tar

aps ~B P ~H file.txt | lpr P<printer> 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: To book a terminal once in the Booking system: date> To claim a booked terminal: claim book book <start time finish time><day/

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

You might also like