1.
Authconfig--passalgo=sha256--update
Authconfig--test |grep hashing query current password encryption algorithm
Change the encryption type to a harder-to-crack sha512 algorithm
2.
Lscpu Displaying CPU attribute details
3.
Cat
4.
CHVT #
Switching terminals
5.chsh Changing the login shell
-L Display
/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/tcsh
/bin/csh
-S specify (specify) your login shell
Chsh-s/sbin/nologin Hehe2
6.chfn:change Your finger information
7.chpasswd:update Passwords in batch mode
Batch Password
Precautions:
User name must exist
Can only be used by administrators
Directive file cannot have blank line
1.vim Mima.txt
root:54322345
2.chpassw<mima.txt
8.
Finger Display System User information
9.
Groupadd Creating a new group
-g Specifies the ID of the new group
10.groupmod
-N group_name: New name
-G GID replacement of new GID
11.groupdel
Delete a group
12.groupmems
-G Group Name
-A user name
-D Delete User name
-L Display Group members
-P Purge Group members
13.groups
Displays the group to which the user belongs
14.GRPCK * * *
Verifying group File Integrity
15.pwck
Used to verify the integrity of the contents and format of the system authentication files/etc/passwd and/etc/shadow.
16.pwunconv
The password bit disappears from the shadow into the Passwd,shadow
17.pwconv
Turn on user projection password
18.poweroff
Turn off the computer operating system and power off the system.
19.passwd
-L lock specified user
-U unlock
-N Shortest use period
--stdin: Receive user password from standard input
echo "passwd" |passwd--stid USERNAME
20.halt shutdown
21.hostname
Host Name
22.newusers
Batch update or create user
23.newgrp
Switch GID to other groups in the current environment
24.nano
25.id
Print User and group information
26.init 3,5
Init is the parent process for all processes
-s switch to single user mode
#0 downtime (never set Initdefault to 0) #1 single-user mode
#2 Multi-user, no NFS (similar to Level 3, will stop some services)
#3 full Multi-user mode
#4 didn't work.
#5 X11 (Xwindow)
#6 reboot (never set Initdefault to 6)
27.openssl Rand Base64 10
28startx
Open Xwindows
29SU-: Default switch to root
-Login switch, read the target user's configuration file
Non-logon switch, does not read the target user's profile
30.strace
Tracking system Calls
31tty
Print Terminal
32tr
Replace delete characters, use with pipe
33ifconfig
View IP Address
34useradd
Create user
-u uid: Specify UID
-G GID
-G Additional Group
-D Specify home directory
-C Comment Information
-S Specify shell
35usermod User Property Modification
-u uid: Specify UID
-G GID
-G new Add-on group, original will be overwritten
-ag Append additional groups
-C Comment Information
-D new home directory, files in the original home directory will not be moved to the new home directory at the same time
If you want to move, add-a
-L lock specified user
-E Specify expiration date
-U unlocks the specified user
36userdel
-R Delete User home directory
37uname Display System Information
-A Show All information
38VIPW Direct Edit passwd file
39VIGR Edit Group File directly
Memory usage of 40free display system
-b,k,m,g display in a different unit
41DF display of disk partition usage
-I inode use case
Lsb_release
The Lsb_release command is used to display information about LSB and specific versions.
43echo Printing
44gedit editing
45tee
LS |tee out.txt: Redirecting LS results to OUT.txt
46getent Passwd,shadow Group Gshadow
Quickly view a row for a user
47who execute the WHO command to know that there are currently users logged into the system, the individual who command will list the login account, the terminal used, login time and from where to log in or use which x monitor.
48whoami Current User
This article is from "Linux in the middle" blog, please be sure to keep this source http://11890711.blog.51cto.com/11880711/1833804
Linux Novice Training Camp-command Daquan (continuous update)