Tips and Tricks
- Tab completion. If you are trying to move into a directory named
cd mand then press Tab. The rest will be typed automatically for you. (If there are multiple possible completions, look at what is printed and/or press Tab some more.) Extra useful for filenames with spaces.
|To do this:||Type on PC Command Prompt||Type on Mac Terminal|
|What is my current directory?||
|Show contents of current directory||
|Move to subdirectory
|Move to parent directory||
|Move to your user account directory (absolute path)
(Note the different slash directions)
|View the contents of file
(For old installer
|Read standard input from a file named
|(Over)write standard output to a file named
|Pipe output of first command to input of second command||
|(You can combine the three above things)†*||E.g,
|Copy text (to clipboard)||Drag-select with mouse then Enter||Drag-select with mouse|
|Paste text (at current cursor)||Right-click in terminal/command prompt window|
|End of typed-in standard input (EOF)||Control-
|Optional: delete, move, copy file; make/remove dir||
Unzipping Files on Windows
- Locate the zipped folder that you want to unzip (extract) files or folders from.
- Do one of the following:
- To unzip a single file or folder, open the zipped folder, then drag the file or folder from the zipped folder to a new location.
- To unzip all the contents of the zipped folder, press and hold (or right-click) the folder, select Extract All, and then follow the instructions.
PYTHON: Installing, Setting the PATH
To determine your version of Python, open the Terminal application, type the following, and press Return:
This command will report the version of Python, e.g.:
Whether you use Mac, Windows, or Linux, we recommend installing Python 3.
We use the Anaconda distribution of Python 3.6. CLICK HERE DOWNLOAD ANACONDA INSTALLER.
When you run the installer, be sure to check the box to add Python to the PATH under advanced settings. (It will have a large amount of red text saying this is not recommended. Ignore that, check the box, and continue).
To manually add Python to the PATH in Windows:
- In the Windows menu, search for “advanced system settings” and select View advanced system settings.
- In the window that appears, click Environment Variables… near the bottom right.
- In the next window, find and select the user variable named Path and click Edit… to change its value. The value for this variable is a semi-colon-delimited list of file locations.
- Scroll to the end of the value, add a semi-colon, and then add the location of python.exe (where you installed it).
- Click OK to save this change.
- If you do not have a user variable named Path, click the New… button.
- Add a variable named Path and make its value the location of python.exe.
- Confirm addition to path: Open a new command prompt and re-run the original command:
python to confirm that Python is installed and added to your path.
Connecting to a network drive ("H drive, I drive, J drive")
Windows or VMWare Virtual Lab (mapping a network drive)
If you are on a campus computer, or logged on to VMWare Horizon VLAB, your H: Drive should be automatically mapped and will be found under COMPUTER in the File Explorer. If it is not you will need to add it:
- Click on the "Start Menu."
- Right click on "Computer."
- Click on "Map Network Drive."
- Select a Drive Letter that's not already in use from the dropdown menu.
- Type the address of the server and the share in "Folder". The format is \\server\share, so to access the shared folder "temp" on the server "fileserver1", you would use \\fileserver1\temp.
- Faculty: \\fileserver1\username
- Student: \\fileserver1.coloradocollege.edu\students\username
- Check "Reconnect at logon" to automatically reconnect.
- You can find the mapped drive under "Computer"
Command DOS prompt (drive must be mapped, see instructions above)
- Open a Command Prompt window by clicking Start and typing "command" or "cmd" in the search box then click the Command Prompt icon in results.
- Type "H:" at the prompt to access your network drive.
- Typing "dir" will list a directory's contents
Mac (mounting a volume)
- Open Finder
- Click "Go."
- Click "Connect to Server."
- Type "smb://" followed by the server address.
- It may ask for your username and password. If it does, type in your Colorado College username and password and click continue.
- Once you are connected to the network drive we can set up automatic connections upon logging into the Mac:
- Open System Preferences and click on “Users & Groups”
- Select your user name from the list and then click the “Login Items” tab
- Drag & drop a mounted network drive into the login items list
- Optional: check the “Hide” box to keep the drives window from opening on each login and boot
Mac Terminal (H drive volume must be mounted via Mac instructions above)
- Open Terminal Window
- Type "cd /Volumes/username"
- Typing "ls" will list directory contents.
This is the Department of Mathematics & Computer Science
Browse all Departments & Programs
- Economics and Business
- Environmental Program
- Feminist and Gender Studies
- Film and Media Studies
- French and Italian
- Human Biology and Kinesiology
- Mathematics and Computer Science
- Molecular Biology
- Organismal Biology & Ecology
- Political Science
- Southwest Studies
- Theatre and Dance
- Asian Studies
- Comparative Literature
- East Asian Languages
- Global Health Program
- Race, Ethnicity, and Migration Studies
- Russian and Eurasian Studies