redhat和ubuntu命令区别
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                redhat和ubuntu命令区别
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                一、非交互模式修改root密碼
ubuntu下 root@ubuntu:~# echo "root:newpassword" | chpasswdredhat下 [root@docker ~]# echo "newpassword" | passwd --stdin root二、查看軟件包是否已經安裝
ubuntu下 root@ubuntu:~# dpkg -l | grep mysqlredhat下 [root@docker ~]# rpm -qa | grep mysql三、用戶和組(添加、刪除用戶)
[root@redhat ~]# groupadd -g 999 git [root@redhat ~]# useradd -r -m -u 999 -g git -s /bin/bash git [root@redhat ~]# id git uid=999(git) gid=999(git) 組=999(git)root@ubuntu:~# groupadd -g 999 git root@ubuntu:~# useradd -r -m -u 999 -g 999 -s /bin/bash git -r:系統賬戶;-m:創建home目錄root@ubuntu:~# userdel -r -f git -r:移除home目錄;-f:強制刪除總結
以上是生活随笔為你收集整理的redhat和ubuntu命令区别的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 实现上下移动鼠标进入扩展第二个屏幕
- 下一篇: cmakelist生成
