The first day of Linux learning, a common command

Source: Internet
Author: User

Linux System Fundamentals:
1, composed of a single small program of freedom, the combination of small procedures to complete the task of responsibility.
2, all documents,
3, try to avoid capturing the user interface, that is, the user input commands can be directly returned results.
4. The configuration file is saved in plain text format.
GUI Interface: graphical interface
CLI Interface: Command interface, requires user input command.
Command prompt: Prompt
Root Admin #
Normal User $
Related commands for user actions (including, adding, modifying, deleting a user's commands)
New, delete user's command:
Useradd User Name
The system administrator command creates a new user.
Options:
-D: Create a new user, use the default root directory as the root of the new user,
-M: If the directory does not exist, use-M to create a new directory as the root of the new user.
-S: Specifies the shell to which the user is logged on.
-B: If you do not use the-D home_dir default path, the default base directory is used. Base_dir plus the account name is the home directory. If the-M option is not used, the base_dir must already exist.
-c A description of the login.
-E: User will be disabled date, date format: YYYY-MM-DD

Userdel [option] User name delete system user name
Options:
-R Deletes the user and deletes all directories for that user at the same time.
-F Force Delete user, if the user is logged in state, after deletion, the connection to Shh will not be disconnected. The user can no longer log on after exiting.
To modify a user name:
usermod [Options]
Ways to switch users:
SU: Full name switch User
Su [-l] User name
SU User name
To modify a user password:
passwd: Password (password to meet complex rules)

Common commands:
Ls:list list all files in the specified directory
Option:-L (Long) displays file details
PWD: Displays the current path. /Representation system root directory

The first day of Linux learning, a common command

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.