Skip to content

arunsrin

The truth shall make ye fret

  • Home
  • About
  • On Books
  • Tech Notes
  • Drawings

Day: August 31, 2019

Suppress echo in bash for reading passwords

In bash, while reading input from the user, if you want to suppress the echo on the screen (for sensitive inputs like passwords), do this:

stty -echo
read SECRETPASSWD
stty echo
Posted on 31 Aug 201916 Nov 2026 by ArunPosted in linuxTagged bash, cli, snippets. Leave a comment

Tags

3ds alan moore asha bash blog books books-read-this-month browsers cisco cli comics coronavirus dc docker drawing emacs email english fsf gaming gears of war git go hardware home hosting india java k8s kids kindle links linux linux desktop marvel maths mobile monitoring movies nabokov networking nintendo note taking openssl pc gaming perl philosophy podcasts politics privacy productivity programming python quote red hat resident evil review rss science search security siddharth slackware snippets systemd vim vita web wfh xbox zelda

RSS Feed RSS - Posts

Archives

August 2019
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Jul   Sep »

Posts from my son's blog

  • LAMINE YAMAL
  • T-rex
  • bird
  • Horse of Liberty
  • avengers

Posts from my daughter's blog

  • 1:03 a.m.
  • Chess:- My top 1 hobby 😁
  • The books I read in 2024
  • My 2025 New Year Resolutions
  • Poems
Website Powered by WordPress.com.
  • Subscribe Subscribed
    arunsrin
    Join 32 other subscribers

    Have a WordPress.com account? Log in now.

  • arunsrin
    View site in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar