Skip to main content

Linux command: Find current username and userid

https://pixabay.com/en/who-question-information-mark-text-2549178/ by https://pixabay.com/en/users/RossMannYYC-5748266/

Find current username

$ whoami

Using id command

$ id -un

Find current userid

# id

Using USER variable

$ echo $USER

Extract from environment settings

$ env | grep USER

Popular posts from this blog

Linux command: lsusb

lsusb - list USB devices NAME        lsusb - list USB devices SYNOPSIS        lsusb [ options ] DESCRIPTION        lsusb is a utility for displaying information about USB buses in the system and the devices connected to them. OPTIONS        -v, --verbose               Tells  lsusb to be verbose and display detailed information about the devices shown.  This includes configuration descriptors for the device's cur‐               rent speed.  Class descriptors will be shown, when available, for USB device classes including hub, audio, HID, communications, and chipcard.        -s [[bus]:][devnum]               Show only devices in specified bus and/or devnum.  Both ID's are given in decimal and may be omitted.        -d [vend...

DrayTek VigorAP 910C as Universal Repeater

3 steps to extend wi-fi coverage using DrayTek VigorAP 910C Set Operation Mode to Universal Repeater mode VigorAP 910C: Set Operation Mode Configuration to Universal Repeater Connect DrayTek VigorAP 910C to existing Wi-Fi Access Point Connect DrayTek VigorAP 910C to existing Wi-Fi Access Point Set Security Mode & Pass Phrase for DrayTek VigorAP 910C Set Security Mode & Pass Phrase for DrayTek VigorAP 910C Check Online Status