University of 
Pennsylvania
School of Arts & Sciences
SAS Computing servicesstaffsearchFAQ
   


How do I compress files?

Via the SAS Account Configuration Page

  1. Go to the SAS Account Configuration Page.
  2. Log in with your mail.sas username and password.
  3. Click on Account Maintenance.
  4. You will then see a list of your files and folders.
  5. Select Compress from the drop-down menu next to the size of the files and folders that you want to compress.
  6. Click Update account.
  7. Click on Logout.
  8. To uncompress files or folders, follow the same steps, but select Decompress from the drop-down menu.

Via an SSH connection to mail.sas

There are two general ways to compress your files.

  1. The first method is to run the program clean-acct from the [MAIN MENU] prompt. This program goes through your files and gives you the option of deleting/compressing them or leaving them as they are.
  2. The other method is through unix.On mail.sas, the two common compression programs are compress and gzip.
    1. To compress a file, type the following from the unix prompt: % gzip filename. The compressed file will now have a .gz extension. The clean-acct program uses this compressesion algorithm. To uncompress this file, type: gunzip filename.
    2. You can also compress files by typing: % compress filename. The compressed file will have a .Z extension at the end. To uncompress this file, just type: uncompress filename.
    3. To see if your files are compressed or uncompressed, use the ls command.


Make a New Search

Enter your query below to begin.



Last modified: Thursday, 25-Sep-2003 16:56:11 EDT