PATH is an environment variable on Unix-like operating systems, DOS, OS/2, and Microsoft Windows, specifying a set of where executable programs are located. In general, each executing process or user session has its own PATH setting. Multics originated the idea of a search path. The early Unix shell only looked for program names in /bin, but by Version 3 Unix the directory was too large and /usr/bin, and a search path, became part of the operating system. On POSIX and Unix-like operating systems, the PATHvariableisspecifiedasalistofoneormoredirectorynamesseparatedbycolon(:)characters.DirectoriesinthePATHstringarenotmeanttobeescaped,makingitimpossibletohavedirectorieswith:intheirname.The/bin,/usr/bin,and/usr/local/bindirectoriesaretypicallyincludedinmostusersPATH variable is specified as a list of one or more directory names separated by colon (:) characters. Directories in the PATH-string are not meant to be escaped, making it impossible to have directories with : in their name. The /bin, /usr/bin, and /usr/local/bin directories are typically included in most users' PATH setting (although this varies from implementation to implementation). The superuser also typically has /sbin and /usr/sbin entries for easily executing system administration commands. The current directory (.) is sometimes included by users as well, allowing programs residing in the current working directory to be executed directly. System administrators as a rule do not include it in PATHinordertopreventtheaccidentalexecutionofscriptsresidinginthecurrentdirectory,suchasmaybeplacedtherebyamalicioustarbomb.Inthatcase,executingsuchaprogramrequiresspecifyinganabsolute(/home/userjoe/bin/script.sh)orrelativepath(./script.sh)onthecommandline.Whenacommandnameisspecifiedbytheuseroranexeccallismadefromaprogram,thesystemsearchesthroughPATH in order to prevent the accidental execution of scripts residing in the current directory, such as may be placed there by a malicious tarbomb. In that case, executing such a program requires specifying an absolute (/home/userjoe/bin/script.sh) or relative path (./script.sh) on the command line. When a command name is specified by the user or an exec call is made from a program, the system searches through PATH, examining each directory from left to right in the list, looking for a that matches the command name. Once found, the program is executed as a child process of the command shell or program that issued the command. On DOS, OS/2, and Windows operating systems, the %PATH% variable is specified as a list of one or more directory names separated by semicolon (;) characters.

About this result
This page is automatically generated and may contain information that is not correct, complete, up-to-date, or relevant to your search query. The same applies to every other page on this website. Please make sure to verify the information with EPFL's official sources.
Related courses (15)
ME-213: Programmation pour ingénieur
Mettre en pratique les bases de la programmation vues au semestre précédent. Développer un logiciel structuré. Méthode de debug d'un logiciel. Introduction à la programmation scientifique. Introductio
ChE-411: Principles and applications of systems biology
The course introduces and develops the key concepts from systems biology and systems engineering in the context of complex biological networks. The lectures elaborate on techniques and methods to mode
FIN-406: Macrofinance
This course provides students with a working knowledge of macroeconomic models that explicitly incorporate financial markets. The goal is to develop a broad and analytical framework for analyzing the
Show more
Related lectures (44)
Introduction to Matlab Programming
Introduces Matlab programming, covering basic operations, matrix manipulations, and debugging.
Motor Neuroprosthetics: Brain-Machine Interfaces
Explores Brain-Machine Interfaces for motor control and communication using neural signals.
Van der Pol Oscillator
Explores the Van der Pol oscillator, its dynamic equations, and phase plane representation.
Show more
Related publications (3)

Next step: on the validation of the Q index to identify optimal locations for economic activities

Stéphane Joost, Olivier Monod

The present study proposes a validation of a mathematical index Q able to identify optimal geographic places for economic activities, solely based on the location variable. This research work takes its roots in the 1970s with the statistical analysis of sp ...
2012

Geographic concentration of economic activities: on the validation of a distance-based mathematical index to identify optimal locations

Olivier Monod

The present study proposes a validation of a mathematical index Q able to identify optimal geographic places for economic activities, solely based on the location variable. This research work takes its roots in the 1970s with the statistical analysis of sp ...
2011

Autonomous virtual humans in virtual worlds

Daniel Thalmann

Summary form only given. This paper discusses the problem of control and autonomy of synthetic actors. It first describes an animation approach where synthetic vision is used for navigation by a synthetic actor. The vision is the only channel of informatio ...
Int. Acad. Publishers1993
Related concepts (5)
Command-line interface
A command-line interface (CLI) is a means of interacting with a device or computer program with commands from a user or client, and responses from the device or program, in the form of lines of text. Such access was first provided by computer terminals starting in the mid-1960s. This provided an interactive environment not available with punched cards or other input methods. Operating system command-line interfaces are often implemented with command-line interpreters or command-line processors.
List of DOS commands
This article presents a list of commands used by DOS operating systems, especially as used on x86-based IBM PC compatibles (PCs). Other DOS operating systems are not part of the scope of this list. In DOS, many standard system commands were provided for common tasks such as listing files on a disk or moving files. Some commands were built into the command interpreter, others existed as external commands on disk. Over the several generations of DOS, commands were added for the additional functions of the operating system.
Working directory
In computing, the working directory of a process is a of a , if any, dynamically associated with each process. It is sometimes called the current working directory (CWD), e.g. the BSD getcwd function, or just current directory. When the process refers to a file using a simple file name or relative path (as opposed to a file designated by a full path from a root directory), the reference is interpreted relative to the working directory of the process. So for example a process with working directory /rabbit-shoes that asks to create the file foo.
Show more
Related MOOCs (2)
MATLAB and Octave for Beginners
Learn MATLAB and Octave and start experimenting with matrix manipulations, data visualizations, functions and mathematical computations.
MATLAB and Octave for Beginners
Learn MATLAB and Octave and start experimenting with matrix manipulations, data visualizations, functions and mathematical computations.

Graph Chatbot

Chat with Graph Search

Ask any question about EPFL courses, lectures, exercises, research, news, etc. or try the example questions below.

DISCLAIMER: The Graph Chatbot is not programmed to provide explicit or categorical answers to your questions. Rather, it transforms your questions into API requests that are distributed across the various IT services officially administered by EPFL. Its purpose is solely to collect and recommend relevant references to content that you can explore to help you answer your questions.