Past ExamsRwanda ICT preparation

Topics / Operating Systems

In Command Prompt, echo %USERNAME% prints the signed-in user's name. What is the equivalent in PowerShell?

Dans l'invite de commandes, echo %USERNAME% affiche le nom de l'utilisateur connecté. Quel est l'équivalent dans PowerShell ?

Answers
Aecho %USERNAME%echo %USERNAME%
Bprint USERNAMEprint USERNAME
CGet-Username -CurrentGet-Username -Current
D$env:USERNAME$env:USERNAME
The answer and explanation are in the full bank.

This question is one of 2,831 in the paid banks. Each comes with the correct answer and the reasoning behind it, not just a mark.

Unlock for 5,000 RWF

MIFOTRA exam practicealigned to Practice set: Linux and CMD Commands·2 marks·Medium

More Operating Systems questions