How to Show Asterisks Visible in the Linux Terminal

Windows Articles

Monitoring Ubuntu 20.04 with Stacer

Normally if we use Linux on a production server, it is important to monitor it. On the other hand, in everyday use, many users...

How to get the Android 11 Notification Panel

It's no secret that even though Android is the most widely used mobile operating system. Not always our device has the latest...

How to create backups in Windows 10 with FileFort Backup

There is no doubt that the computer is an essential element in our lives. Indeed, its uses go beyond work or study....

Trisquel 9.0 available

Trisquel is a GNU/Linux distribution endorsed and supported by the Free Software Foundation. This means that in addition to incorporating the Linux...

How to install PandoraFMS on CentOS 8?

Worldwide many IT infrastructures are running Linux on one of their servers. This opens the door to an endless number of different...
Avatar
Mel Khamlichi
Webmaster and technical Director at Osradar.com Linux/Unix Guru Technology and hardware addicted Location : Amsterdam Netherlands

For every Linux user, the terminal is the most important part of all. It allows performing a lot of tasks in a secured manner. Moreover, the terminal is a crucial tool for advanced users and experts to have control over the system. Sometimes, it can be really irritating that when using the “sudo” command, you get confused if your password is typed correctly. If you’re a new user of Linux, it’s a more devastating & serious experience. Now, there’s a way where you can show the asterisks instead of the empty field.

Note that when using this method, the password length is disclosed to anyone who is sitting next to you. So, you need to be careful of choosing the right password for your system. I recommend a password of 10-20 characters long with alphabets, numeric and special characters (*, &, % etc.). This way, anyone will have a really hard time figuring out your password.

Now, let’s enable the asterisks instead of the empty field. I’m using Ubuntu to do this task as Ubuntu is the most popular Linux distro of all. Make sure that you enter the codes WITHOUT ANY MISTAKE. Otherwise, you might end up in a broken system.

  • Start a terminal. You can open it by pressing “Ctrl + Alt + T”.
  • Run this command:
sudo visudo

A file will open up in the Nano text editor.

  • Using the arrow keys, get your cursor at the end of the following line:
Defaults         env_reset

  • Add this code at the end of the line:
,pwfeedback

The modification should look like this:

  • Save the file. Press “Ctrl + X” >> type “y” (without quotation marks) >> hit Enter.

  • The system will ask you for changing the file name at the bottom. Hit Enter to accept the default.

  • Close the terminal.

Next time you open a terminal and use the “sudo” code, your password will be represented by asterisks. Thus, you’ll be safe from mistyping and use your system more fluently.

I admit that any Linux terminal is a difficult option as it uses CLI (Command Line Interface). If the default terminal scares you away, don’t worry. There are different terminal emulators available for your ease. Those emulators come up with hundreds of features and ease of functions. Take a look at the best terminal emulators for Linux.

More articles

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Monitoring Ubuntu 20.04 with Stacer

Normally if we use Linux on a production server, it is important to monitor it. On the other hand, in everyday use, many users...

How to get the Android 11 Notification Panel

It's no secret that even though Android is the most widely used mobile operating system. Not always our device has the latest...

How to create backups in Windows 10 with FileFort Backup

There is no doubt that the computer is an essential element in our lives. Indeed, its uses go beyond work or study....

Trisquel 9.0 available

Trisquel is a GNU/Linux distribution endorsed and supported by the Free Software Foundation. This means that in addition to incorporating the Linux...

How to install PandoraFMS on CentOS 8?

Worldwide many IT infrastructures are running Linux on one of their servers. This opens the door to an endless number of different...
x