FG
💻 Software

sudo with password in one command line?

Fresh5 days ago
Mar 15, 2026607939 views
Confidence Score1%
1%

Problem

On busy days, I'd like to run on the night and go to bed, hoping the application would automatically be installed. But what I see the next day is the screen where sudo asks me for the password. So how could I run sudo with password in one command line, or is there any other method to do this?

Error Output

$ ./configure && make && sudo make install && halt

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: sudo with password in one command line?

Low Risk

Yes, use the switch which reads the password from STDIN: So for your case it would look like this: of course, replace with your password.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment