-p: Specify the password for the user. Linux Commands – Overview with Examples and FAQs

Introduction

The Linux command -p is used to specify the password for a user. This command is used to set a password for a user account, allowing the user to access the system with the specified password. It is important to note that the password should be kept secure and should not be shared with anyone else. The -p command is a powerful tool that can be used to protect the user’s data and system from unauthorized access.

Examples

Example:

To specify a password for the user “john”

$ passwd john -p [ad_1]

[ad_2]

The command to specify the password for a user in Linux is passwd. This command is used to change the user’s password and can be used to set a new password for the user. To use the command, open a terminal window and type passwd followed by the username of the user whose password you want to change. You will then be prompted to enter and confirm the new password. Once the password is set, the user will be able to log in with the new password.

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Jassweb.com/

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.

GSTIN is 03EGRPS4248R1ZD.

Contact
Jassweb, Rai Chak, Punjab, India. 143518
Item added to cart.
0 items - 0.00