上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: usermod命令 [root@lizhipeng01 ~]# id lizhipenguid=1000(lizhipeng) gid=1000(lizhipeng) groups=1000(lizhipeng)[root@lizhipeng01 ~]# usermod -G grp2 lizhip 阅读全文
posted @ 2017-12-23 16:59 sisul 阅读(1473) 评论(0) 推荐(0) 编辑
摘要: linux与windows互传文件 先安装一个包lrzsz yum install -y lrzsz linux向windows传testb.txt windows向linux传输 rz 查看/ect/passwd,框中是新添加的用户 第一个字段为用户名,它是代表用用户账号的字符串。 第二个字段存放 阅读全文
posted @ 2017-12-23 13:21 sisul 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 快捷键: crtl l 清屏 crtl d 退出一个终端 ctrl c 不执行命令 crtl u 把前面的东西全部删掉 crtl e 把光标一下子移到后面 crtl a 把光标移到最开始 [root@lizhipeng01 ~]# find /etc/ -name "sshd_config" 知道名 阅读全文
posted @ 2017-12-20 22:36 sisul 阅读(338) 评论(0) 推荐(0) 编辑
摘要: set_uid:该权限针对二进制可执行文件,使文件执行阶段具有文件所有者的权限。 [root@lizhipeng01 ~]# ls -l /usr/bin/passwd s是set_uid的权限,当普通用户执行passwd命令时,可以临时获得root权限,从而可以更改密码。-rwsr-xr-x. 1 阅读全文
posted @ 2017-12-20 21:23 sisul 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 命令chown 更改文件的所有者,格式:chown [-R] 账户名 文件名 chown [-R] 账户名:组名 文件名。 -R选项只适用于目录,作用是级联更改,不仅更改当前目录,目录里面的目录或者文件也劝不回更改 [root@lizhipeng01 ~]# mkdir dir3[root@lizh 阅读全文
posted @ 2017-12-18 22:47 sisul 阅读(1352) 评论(0) 推荐(0) 编辑
摘要: 环境变量:PATH [root@lizhipeng01 ~]# echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin [root@lizhipeng01 ~]# which ls 查看ls命令在哪里alias ls 阅读全文
posted @ 2017-12-17 22:59 sisul 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 绝对路径和相对路径 绝对路径:路径的写法一定是由根目录/写起的,例如/usr/local/mysql 相对路径:路径的写法不是由根目录/写起的。例如,首先用户进入到/home.,然后再进入到test, [root@lizhipeng01 ~]# cd /home[root@lizhipeng01 h 阅读全文
posted @ 2017-12-16 21:28 sisul 阅读(934) 评论(0) 推荐(0) 编辑
摘要: [root@lizhipeng01 ~]# ls ls用于查看系统中的文件与目录1.txt anaconda-ks.cfg a.txt bb split_dir testb.txt testc.txt 学习计划安排.txt [root@lizhipeng01 ~]# ls / 根目录bin boot 阅读全文
posted @ 2017-12-16 01:07 sisul 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 单用户模式 1右击电源——>重新启动虚拟机 2.按字母编辑它 3.进入emergency模式,将光标移动到ro这里,把ro改成rw init=/sysroot/bin/bash 按ctrl+x,正式进入emergency模式 4.修改root密码 5.重新登陆,用新的root密码 救援模式 查看运行 阅读全文
posted @ 2017-12-15 00:24 sisul 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 以xshell为例 1.点击“工具”——>新建用户秘钥生成向导 2,连续点击两次“下一步”,输入密码 3生成公钥,并将其复制,留到下一步用 4.复制公钥到Linux # mkdir /root/.ssh # chmod 700 /root/.ssh # vi /root/.ssh/authorize 阅读全文
posted @ 2017-12-13 23:11 sisul 阅读(160) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页