• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How To Show Password While Typing In Linux Ubuntu

How To Show Password While Typing In Linux Ubuntu

By Sourabh / November 15, 2025 Category: How To, Ubuntu

If you want to display asterisks and show password while typing in Linux Ubuntu terminal, you can read this tutorial on how to show asterisk password; display encrypted password in Linux.

Linux terminals do not display asterisks while entering a password because this is a security precaution aimed at preventing an onlooker from inferring the length of the password. This practice has been a traditional norm in Unix-like systems and is intended to offer greater security compared to a graphical interface, where the length of a password can be inferred from the count of asterisks.

Important Points

  • The /etc/passwd file contains all the users’ information, including the encrypted password, group ID, and home directory.
  • The encrypted user passwords are kept in /etc/shadow.
  • The /etc/login.defs file contains some default settings like password aging and length settings.

NOTE: These files are read-only directory and can be read only by root.

Command To Show Password While Typing In Linux Ubuntu

Open a new Terminal by pressing Ctrl + Alt + T and type the following command:

sudo visudo

Now go to the line that reads “Defaults env_reset”.

Note that you will have to use the the keyboard navigation keys. Simply clicking won’t work.

Now add the following text so that it reads “Defaults env_reset,pwfeedback”.

Once done, save the changes by pressing Ctrl + X and Enter key.

In this way, you can make the password asterisks visible in Ubuntu terminal.

Primary Sidebar

Latest Posts

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

Linux Command To Check RAM Size In Ubuntu Terminal In GB

How To Install Proprietary Drivers In Linux Ubuntu Using Terminal

How To Shutdown Linux With A 15 Minute Delay And Message

Free AI Courses With Certificate For Beginners In India

Best AI Plugins For WordPress To Use In 2026

3 Commands To Check USB Connection In Linux Terminal

Linux Terminal Commands for Beginners With Examples

How To Password Protect A Folder In Linux Command Line

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap