Linux & Terminali

which, whereis & type

Në shqip: which, whereis dhe type

ShpjegimiSQ

„which python3“ tregon cilin skedar ekzekuton terminali kur shkruan atë komandë (sipas PATH). „type“ tregon edhe nëse është alias ose funksion. Shumë e dobishme kur ke disa versione të një programi.

EnglishEN

“which python3” shows which file the terminal runs when you type that command (based on PATH). “type” also tells you if it's an alias or a function. Very useful when several versions of a program are installed.

Si ta mendosh

Si të pyesësh recepsionin: „Kur thërras Artën, cila Artë vjen saktësisht?“

Lexoje në anglisht

Like asking reception: “When I call for Arta, which Arta exactly shows up?”

Shembull kodibash

which python3
# /usr/bin/python3
type ll
# ll is aliased to 'ls -alF'

Terma të lidhur