摘要: 1:查看文件的所有者 ls -ahl 简写ll ll lu.txt -rw-r--r-- 1 root root 27 5月 21 18:25 lu.txt 2:修改文件所有者 chown 用户名 文件名 chown luo lu.txt root@luo-xia:/tmp# ll lu.txt - 阅读全文
posted @ 2018-05-22 09:28 陆伟 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1:查询用户 select user,host from mysql.user; 2:删除用户 Delete FROM mysql.user Where User='wordpressusername' and Host='hostname'; 3:创建用户 create database test 阅读全文
posted @ 2018-05-22 09:25 陆伟 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1:用户 添加用户:useradd 用户名 设置密码:passwd 密码 删除用户:userdel 用户名 切换用户 :su 用户名 查看当前用户:whoami 2:用户组 1):添加组:groupadd 组名 2):删除组:groupdel 组名 3):增加用户时直接加上组: useradd –g 阅读全文
posted @ 2018-05-22 09:24 陆伟 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 一:存活 启动vim后,是在Normal模式下(命令行模式)。 进入Insert模式(编辑模式)。 在Insert模式进入到Normal模式。ESC键。 1): i → Insert 模式,按 ESC 回到 Normal 模式. 2):x → 删当前光标所在的一个字符。 3): :wq → 存盘 + 阅读全文
posted @ 2018-05-22 09:22 陆伟 阅读(135) 评论(0) 推荐(0) 编辑