Linux命令基本组 linux组管理命令( 七 )


userdel -r 用户名 用户相关的所有配置都会被删除
passwd命令:修改用户密码
passwd 用户名
usermod命令:修改用户属性
/etc/passwd文件:查看用户文件
tail /etc/passwd
/etc/shadow文件:查看用户密码
tail /etc/shadow
groupadd命令:添加用户组
groupadd 用户组
groupdel命令:删除用户组
groupdel 用户组
用户切换
su 用户名 切换用户 , 但是用户所在环境不变,即pwd路径不会变化
su - 用户名 切换用户,同时会切换到用户家目录,即/home/用户名
sudo命令:普通用户需要执行root用户权限的解决方案 。
以下是一些常用命令汇总;The following table provides a reminder of most of the commands that we have covered so far. If you include the three, as-yet-unmentioned, commands in the last column, then you will probably be able to achieve 95% of everything that you will ever want to do in Unix (remember, you can use themancommand to find out more abouttop ,ps , andkill ). The power comes from how you can use combinations of these commands.
-c 'cc-address'-b 'bcc-address'
'to-address' | Command to send email | | mail -s "Subject"
to-addressFilename`| Command to send email with attachment |
File Permission commands
Hope this Linux reference guide helps you!
希望这些常用的命令和系统原理,以及linux操作可以帮助大家提升linux命令和操作?。。?
Linux系统基础操作指令摘要:Linux指令常用结构 :Command [-option] [argument]
Command:即是要运行的命令的本身,说白了就是一个程序;
Option:是选项(可?。?nbsp;, 选项是控制命令运行状态和行为的(可多个选项一起,如ls -al);
Argument:是参数(可?。?是命令要操作对象如文件、路径、数据、目录等;
在指令的第一部分按[tab]键一下为[命令补全] , 两下为所有命令选择;
一、Linux系统操作指令
1、开关机
2、查看系统信息
3、查看系统性能
4、查看磁盘指标
二、Linux目录文件操作指令
1、目录文件
2、文件相关权限
3、文本处理
三、Linux用户权限操作指令
四、Linux压缩解压指令
五、Linux软件安装指令
linux常用命令linux常用命令如下:
1、查看内核版本:uname -a 。
2、控制台-》图形界面:init 5或者startx 。
3、图形界面-》控制台: init3或者直接注销 。
4、如何查看ip地址:ifconfig 。
5、配置ip:ifconfig eth0 ip地址 。
6、重启:reboot 或者 shutdown -r now 。
7、普通用户切换到系统用户:su 。
8、注销用户指令:logout 。
9、从子机退出:ctrl+alt 。
10、全屏:ctrl+alt+enter。
基本思想:
Linux的基本思想有两点:第一 , 一切都是文件;第二,每个文件都有确定的用途 。其中第一条详细来讲就是系统中的所有都归结为一个文件 , 包括命令、硬件和软件设备、操作系统、进程等等对于操作系统内核而言,都被视为拥有各自特性或类型的文件 。
Linux命令基本组的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于linux组管理命令、Linux命令基本组的信息别忘了在本站进行查找喔 。

推荐阅读