Question: How Do I Lock My Screen in Linux?

Question: How Do I Lock My Screen in Linux?
Contents

How to lock your screen. To lock your screen before you leave your desk, either Ctrl+Alt+L or Super+L (i.e., holding down the Windows key and pressing L) should work. Once your screen is locked, you will have to enter your password to log back in.

How do I enable lock screen in Linux?

Open the Activities overview and start typing Privacy. Click on Screen Lock to open the panel. Make sure Automatic Screen Lock is switched on, then select a length of time from the Automatic Screen Lock Delay drop-down list.

How do I lock my screen in Terminal?

A dirty hack of using the shortcut Ctrl + Alt + L for the locking the screen from a terminal:

  1. Install xdotool from the software center or from the terminal as follows: sudo apt-get install xdotool.
  2. Type the following to lock the screen from the terminal: xdotool key Ctrl+alt+l.
Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.