Updated: Sunday, 17-Apr-2005 21:27:52 EDT
Please report any typos and bugs to mokhov@cs.concordia.ca
| Tools and Environment | ||||
|---|---|---|---|---|
| Title | Topics | Format | Examples | Notes |
| Makefile | PPT| PDF | These examples come from below program examples. cmdwnd: Makefile; ifv: Makefile; shlnno (lib version): Makefile | ||
| Moneymaker Test Suite | SH | |||
| All Tutorial Slides | dir | Examples: dir | ||
----- Original Message ----- Sent: Saturday, May 18, 2002 3:15 PM Subject: Re: Accessing "G:" drive remotely > hi! > i'd like to know how to, using Putty, access my G: drive and eventually the > files blockmanager, blockstack, etc., which are in a directory. I use my cs > account when logging in on putty.
There's no such a thing in UNIX like G: or A: or C: drives. Unix has a one-root virtual file system and all other filesystems mounted onto its subdirectories. So, when you login either remotely or locally to a Linux/UNIX system, you have to step a bit aside from M$ Windows "mentality".
There are two "home" directories in your CS account. One is Unixhome another NT home (aka G: drive in Windows). Both homes are accessible from either OS.
In Unix to access your NT home, you should go to the /home/nthome/your_username directory:
your_username.alpha % cd /home/nthome/your_username
To go back to your Unix home just type cd without arguments.
The pwd command should show you, which directory you're currently working in.
You can also setup a symlink (symbolic link, analogy in Windows - shortcuts) to your
NT home and call it g or G for example and then simply do cd g if this makes you happier:
your_username.alpha % ln -s /home/nthome/your_username g your_username.alpha % cd g
The above is done only once, and you just use it thereafter.
References:
For those of you who have never heard of WinZip, WinRar, tar/gzip and alike, here's a brief answer.
WinZip is the most popular in the Windows world archiving and compressing utility which can be downloaded from www.winzip.com, and it has nothing to do with a zip drive! It can compress your files, so they get 6-10 (or many more depending on file contents) times smaller for MS Word files and even more for text files, such as source code. If you don't have it yet installed you can grab a copy or use the ones in the CS labs.
Where WinZip installed, it's usage is very simple: just select the files or folder(s) you want to zip, right-click, "Add to Zip" (or similar), and that's it. Then attach the zip file to your email and send it with the proper subject line.
WinRar is another alternative. In many cases it has better compression as that of WinZip. WinRar can be downloaded from www.rarlab.com. Usage is similar to WinZip.
Under *nix systems there are also a number of command-line (and with GUI too) archiving utilities. To name a few: zip/unzip - are 100% compatible with the WinZip, tar, gzip, bzip2. They all can be used separately and together, and their archives can be opened by WinZip and WinRar. Read the manual pages for more info. Sometimes people refer to archived files as tarballs (coming from tar/gzip combo). Examples:
zip -r myarchive.zip dir_or_list_of_files_to_zip -or- tar -cvf myarchive.tar dir_or_list_of_files_to_tar gzip myarchive.tar -or- bzip2 myarchive.tar -or- tar cvfz myarchive.tar.gz dir_or_list_of_files_to_tar_and_gzip -or- tar cvfj myarchive.tar.bz2 dir_or_list_of_files_to_tar_and_bzip
By using archiving and compressing utilities you save your disk space, network traffic, time to send/receive the files, and my mailbox size. PLEASE, USE ARCHIVING WHENEVER POSSIBLE!
References: