Linux basic commands for user system-related commands

Source: Internet
Author: User

1. Format description

"[email protected] Simon" $

"[Email protected] ~" $

Both of these methods represent the same. Simon is the specified user, localhost is the computer name, if not set to localhost by default. Simon, ~ refers to the directory where you are currently located.

Terminal: Command interpreter, simulation shell

2, the user's switch

su[options] [user]

such as: Su-root

The example uses the SU command to change a normal user to the root user and use the option "-" to carry the root environment variable.

Exit from super user to normal user

3. User Management

Add user account

useradd [Options] User name

Useradd YCW

passwd YCW

New Password: (note that entering the password is not displayed)

Retype new Password:

Change of account password

passwd [user Name]

4. System Management Commands (PS and kill)

PS: Displays a list of processes running by that user in the current system

Kill: Terminate the process

Example: Ps-ef (shows the currently running program)

Kill 7421 (terminates 7421 of this process)

5. Disk-related commands (FDISK)

FDISK: You can view the partition of the hard disk, and can partition the hard disk to manage

such as: Fdisk-l

Lists the partitioning of the file system.

Linux basic commands for user system-related commands

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.