Week 4--5

Week 4--5 - Week-4-5 Program search path Both Windows and...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Week-4-5 Program search path Both Windows and UNIX support the concept of a "program search path": A program search path is a list of folders (directories), in which the operating system looks, when a user enters a command in (typically) the command-line interface. In Windows, the list is delimited with semicolons. (In UNIX, colons are used.) Here’s how a search proceeds: In both operating systems, the command shell (e.g. cmd.exe on Windows, or bash on UNIX) attempts to locate the command in its internal command set. If there’s no match, it moves on to the next step. In Windows, the current folder (directory) is then searched. In UNIX, that may not be the case (depending upon configuration settings). If there’s no match, it moves on to the next step. In both operating systems, the program search path (in Windows, the %PATH% environment variable; in UNIX, the $PATH environment variable) is examined. The operating system looks at each folder (directory) in the list, and attempts to find a match. If a match is found, the program is executed.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/08/2012 for the course BSD 130 taught by Professor S.peter during the Spring '12 term at Seneca.

Page1 / 2

Week 4--5 - Week-4-5 Program search path Both Windows and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online