VLOCK(1)
π VLOCK(1) β General Commands Manual π
okay bestie, sit down, hydrate, and let me tell you about vlock β it's the Virtual Console lock program and honestly? it's giving security guard energy but make it Linux. π«Ά
β¨ NAME β¨
vlock β the Virtual Console lock program. that's it, that's the name, iconic behavior honestly π
πΈ SYNOPSIS πΈ
vlock
vlock [ -a,--all ] [ -c,--current ] [ -h,--help ] [ -v,--version ]
likeβ¦ you can just run it, or you can run it with flags. both are valid. both are slay. pick your fighter β¨
π¦ DESCRIPTION π¦
so vlock is a program that locks one or more sessions on the Linux console. and why do we care?? because it is especially useful for Linux machines where multiple users have access to the console. one user can lock his or her session(s) while still letting other users use the system on other virtual consoles. everybody eats, nobody starves. π
and if you want to be dramatic about it β which, same β the entire console can be locked and virtual console switching disabled. locked. locked locked. π₯
by default, only the current VC (that's virtual console, keep up bestie) gets locked. but with the -a,-all option, all VCs are locked. and here's the thing: those locked VCs cannot be unlocked without the invoker's password. periodt. and for the paranoid girlies out there β respect β vlock makes it a trying experience for anyone attempting to guess the password, so unauthorized access to session(s) is highly unlikely. like, good luck with that. π
okay but real talk for a sec because this one matters: it is entirely possible to completely lock yourself out of the console with the-a,--alloption if you cannot remember your password!! π unless you are able to killvlockby logging in remotely via a serial terminal or network, a hard reset is the only method of ``unlocking'' the display. not me warning you and you still doing it. π
and one more lil note: vlock works for console sessions primarily. however, there is support for trying to lock non-console sessions as well β but that support has not been well tested. so likeβ¦ it's there. it's trying its best. be nice to it. π
π OPTIONS π
-a,--allβ locks all console sessions and disables VC switching. the full send option. maximum commitment. π-c,--currentβ locks the current session. this is the default, so if you just runvlockwith nothing else, this is what you're getting. β¨-h,--helpβ prints a brief help message. when in doubt, ask for help. always. π-v,--versionβ prints the version number ofvlock. for the girlies who need to know exactly what they're working with. π
π AUTHORS π
Michael K. Johnson <johnsonm@redhat.com> β thank you for your service king π«Ά
β SEE ALSO β
chvt(1), deallocvt(1), openvt(1) β go read those too, they're all in the same friend group π§
and that's the whole vibe check bestie π this page came from the kbd manual and it's dated 16 May 1996 β yes, it's an elder but she still slays, no cap. go lock your console. responsibly. πΈ
π¦ where this page comes from
- alpine 3.22: kbd-doc 2.7.1-r1 Β· GPL-2.0-or-later
- alpine 3.23: kbd-doc 2.8.0-r0 Β· GPL-2.0-or-later
- alpine 3.24: kbd-doc 2.8.0-r0 Β· GPL-2.0-or-later
- arch rolling: kbd 2.10.0-1 Β· GPL-2.0-or-later
- fedora 43: kbd 2.8.0-3.fc43 Β· GPL-2.0-or-later
- fedora 43: kbd 2.8.0-4.fc43 Β· GPL-2.0-or-later
- fedora 44: kbd 2.9.0-3.fc44 Β· GPL-2.0-or-later
- fedora 44: kbd 2.9.0-4.fc44 Β· GPL-2.0-or-later
- nixos 26.05: kbd-vlock 2.9.0
- nixpkgs unstable: kbd-vlock 2.9.0
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: kbd 2.7.1-160000.3.1 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms