localhost login:root
Password:root
[root@localhost ~]# su law // su : switch user
[law@localhost root]$su root
Password:root
[root@localhost ~]#ping www.github.com
ping:www.github.com:Name or service not known
[root@localhost ~]#ip addr // addr: address
2:ens33:
[root@localhost ~]#dhclient
[root@localhost ~]#ip addr
2:ens33:192.168.174.128/24 brd 192.168.174.255
[root@localhost ~]#ping www.github.com
64 bytes from … … // ctrl+c :finish ping
[root@localhost ~]#ls // ls:list
finalshell=xshell+xftp // it is domestic product & free
// use it connect to linux operation system
folder/SSH connect(Linux)
host:192.168.174.128 port:22
accept&store
input username:root
input password:root
October the 23th 2024 Wednesday
October the 24th 2024 Thursday
modify config file to change network
/etc/sysconfig/network-scripts/ifcfg-eth33
in config file ,find & set
BOOTPROTO="static"
set static ip address、gateway、dns(same with gateway)
IPADDR=192.168.174.130
GATEWAY=192.168.174.1
DNS1=192.168.174.1
reset network service
service network restart
or reset linux
reboot
user and group
user
account with UID
root ,UID=0 system,UID=1~499 it`s called virtual user
normal,UID=500~6000
group
group include(contain) user group with GID, group indentification same
character about user
c cd /etc
c cat password
add-double Add-double tag-transform mode default
Default tag-transform mode translate Translate
tag-transform mode translate-and-add Translate-and-add
tag-transform mode transparent Transparent tag-transform
modeOctober2024the26thSaturday
用户信息,使用分号,隔开 7 个字段,> 用户名 > > 密码 > > UID > > GID > > 用户描述信息 > > 用户主目录 > > 登录shell ```root: UID 0,GID 0,
October2024the27thSunday
November2024the01stFriday
November2024the05thTuesday
注意,
使用useradd创建的用户是不能直接立即使用的,需要使用passwd命令对新生成的账号进行密码设置后才能正常登录系统并使用新创建的账号。
2025/3/24
查看组信息
cat /etc/group