whoami

commande
(Redirigé depuis Whoami (command))

whoami (Who am I, signifiant « qui suis-je ») est une commande UNIX permettant d'afficher le nom de l'usager associé à l'identificateur effectif (user ID ou UID) courant de l'usager.

Whoami

Description de l'image Whoami screenshot.png.
Informations
Type Utilitaire UNIX (d)
Commande informatiqueVoir et modifier les données sur Wikidata

Depuis Windows 2000[1], c'est également une commande DOS qui affiche le nom du domaine suivi du caractère antislash et du nom de l'utilisateur.

Exemple

modifier
  • Unix :
# whoami
root
  • DOS :
C:\Users\admin>whoami
 workgroup\admin

Notes et références

modifier
  1. « Whoami », sur Microsoft.com (consulté le ).

Voir aussi

modifier

Articles connexes

modifier