Which

Which

which

Wiktprintable without text.svg

Voir « which » sur le Wiktionnaire.

Which est un pronom relatif anglais signifiant « lequel ».

which est également une commande POSIX qui retourne le chemin des fichiers qui seraient exécutés dans l'environnement courant si ses arguments avaient été donnés comme commandes dans un interpréteur de commandes strictement conforme à POSIX. Pour ce faire, which cherche dans la variable PATH les fichiers exécutables correspondants aux noms des arguments.

Exemple sous bash :

$> which which
/usr/bin/which
$> which less 
/usr/bin/less
$> which echo
/bin/echo

Which se trompe pour echo, puisque c'est la plupart du temps une primitive du shell.
Sous zsh, which est une primitive du shell, ce qui lui donne l'avantage de retrouver les alias, les commandes internes et les fonctions du shell.

$> which which
which: shell built-in command
$> which less 
/usr/bin/less
$> which echo 
echo: shell built-in command

Voir aussi

GNU Core Utilities

Liens externes

  • Portail de l’informatique Portail de l’informatique
Ce document provient de « Which ».

Wikimedia Foundation. 2010.

Contenu soumis à la licence CC-BY-SA. Source : Article Which de Wikipédia en français (auteurs)

Игры ⚽ Поможем написать курсовую

Regardez d'autres dictionnaires:

  • Which — Which, pron. [OE. which, whilk, AS. hwilc, hwylc, hwelc, from the root of hw[=a] who + l[=i]c body; hence properly, of what sort or kind; akin to OS. hwilik which, OFries. hwelik, D. welk, G. welch, OHG. wel[=i]h, hwel[=i]h, Icel. hv[=i]l[=i]kr,… …   The Collaborative International Dictionary of English

  • Which — which  Unix утилита, отображающая полный путь к указанным командам или сценариям. Содержание 1 Описание 2 Опции 3 Пример использования …   Википедия

  • which — [ wıtʃ, hwıtʃ ] function word *** Which can be used in the following ways: as a determiner (followed by a noun): Which color do you like best? as a pronoun (without a following noun): Choose any card it doesn t matter which. (introducing a… …   Usage of the words and phrases in modern English

  • which — which  Unix утилита, отображающая полный путь к указанным командам или сценариям. Содержание 1 Описание 2 Опции 3 Пример использования …   Википедия

  • which — W1S1 [wıtʃ] determiner, pron [: Old English; Origin: hwilc] 1.) used to ask or talk about one or more members of a group of people or things, when you are uncertain about it or about them ▪ Which book are you looking for? ▪ Which are the most… …   Dictionary of contemporary English

  • Which — is an English relative pronoun and interrogative pronoun.Which may also refer to: *Which?, a UK charity and its magazine *which (Unix), a Unix command See also * English relative clauses, for discussion of when to use which and when to use that… …   Wikipedia

  • which — O.E. hwilc (W.Saxon) which, short for hwi lic of what form, from P.Gmc. *khwilikaz (Cf. O.S. hwilik, O.N. hvelikr, Swed. vilken, O.Fris. hwelik, M.Du. wilk, Du. welk, O.H.G. hwelich, Ger. welch, Goth. hvileiks …   Etymology dictionary

  • Which? — trademark a British magazine that tests products made by different companies and provides reports on them to help people decide which one to buy. There is a similar magazine in the US called Consumer Reports …   Dictionary of contemporary English

  • Which? — Infobox Magazine title = Which? image size = image caption = frequency = Monthly category = Consumer publisher = Which? firstdate = October 1957 country = flagcountry|United Kingdom language = English website = [http://www.which.co.uk… …   Wikipedia

  • which — [[t](h)wɪ̱tʃ[/t]] ♦ (Usually pronounced [[t](h)wɪtʃ[/t]] for meanings 2, 3 and 4.) 1) QUEST You use which in questions when there are two or more possible answers or alternatives. Which do they want me to do, declare war or surrender?... Which… …   English dictionary

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”