- 博客(27)
- 收藏
- 关注
转载 第十章 日常运维
[root@xuefei ~]# ethtool eth0 Settings for eth0: Link detected: yes [root@xuefei ~]# 转载...
2018-03-22 18:37:00
141
转载 第十章 日常运维
w查看系统负载 [root@izm5e9voc4k5nenpa42yb3z ~]# w 22:49:45 up 2 min, 3 users, load average: 0.02, 0.04, 0.02 USER TTY FROM ...
2018-03-20 22:53:00
157
转载 awk 命令
awk '{print $0}'MacBook-Pro:develop qiuxuefei$ ps -u whoami |grep 261|grep -v "grep"501 261 ?? 0:04.29 /usr/libexec/UserEventAgent (Aq...
2018-03-20 10:52:00
167
转载 sed 正则表达式
打印某行 打印第二行 MacBook-Pro:develop qiuxuefei$ sed -n '2'p passwd # User Database 打印所有行 MacBook-Pro:develop qiuxuefei$ sed -n '1,$'p passwd ...
2018-03-13 22:19:00
149
转载 grep / egrep 正则表达式
语法一:grep [-cinvABC] 'word'. filename -c :打印符合要求的行数 MacBook-Pro:develop qiuxuefei$ grep -c 71 passwd 1 -i :忽略大小写 MacBook-Pro:develop qi...
2018-03-13 22:16:00
158
转载 Linux shell基础命令(一)
cut MacBook-Pro:20170405 qiuxuefei$ cat /etc/passwd |tail -2 _fpsd:*:265:265:FPS Daemon:/var/db/fpsd:/usr/bin/false _timed:*:266:266:Tim...
2018-03-09 16:51:00
207
转载 shell基础知识
通配符 1.1 全匹配 MacBook-Pro:20170405 qiuxuefei$ ls -l -rw-r--r--@ 1 qiuxuefei staff 374 4 5 2017 Person.m -rwxr-xr-x 1 qiuxuefei staf...
2018-03-08 20:38:00
115
转载 Linux软件包安装和卸载
挂载光驱 虚拟机连接 mount 光驱 [root@localhost dev]# mount /dev/cdrom /mnt mount: /dev/sr0 写保护,将以只读方式挂载 [root@localhost dev]# cd /mnt [root@local...
2018-03-05 22:53:00
259
转载 Linux的压缩与打包
gzip 命令 gzip 1.txt 与gunzip 1.txt.gz 说明:gzip不支持压缩目录,gzip压缩文件后(不带参数)源文件不存在; [root@localhost d6z]# ll -rw-r--r--. 1 root root 2376920 3月 ...
2018-03-01 22:31:00
113
转载 vim 命令
vi命令是UNIX操作系统和类UNIX操作系统中最通用的全屏幕纯文本编辑器。Linux中的vi编辑器叫vim,它是vi的增强版(vi Improved)。 命令vi编辑器支持:编辑模式和命令模式。编辑模式下可以完成文本的编辑功能;命令模式下可以完成对文件的操作命令。...
2018-02-28 22:29:00
165
转载 usermod 命令
usermod -G root xuefei 将用户xuefei添加到root组中; usermod xuefei_newxuefei 修改xuefei的用户名为xuefei_new; usermod -L xuefei 锁定账号xuefe; ...
2018-02-06 21:26:00
188
转载 用户组管理和用户管理
groupadd -g 1001 xuefei 在/etc/passwd文件中产生一个组ID(GID)是1001的项目。 useradd -u 1001 xuefei 说明:设定ID值时尽量要大于1000,以免冲突。因为Linux安装后会建立一些特殊用户,一般0到...
2018-02-06 21:19:00
127
转载 find 命令
查找root目录下面以cfg结尾的文件 [root@localhost ~]# find /root/ -name '*cfg' /root/anaconda-ks.cfg /root/xuefei/e_file.cfg /root/file.cfg [root@loca...
2018-02-04 22:23:00
286
转载 软连接与硬连接
ln-s 源文件 软连接文件 [root@localhost 29]# ll -rw-rw-r--. 1 root root 0 2月 1 08:18 chmod_002.test -rw-r--r--. 1 root root 0 2月 1 08:17 chmo...
2018-02-01 21:58:00
114
转载 chmod 命令
文件权限说明 -:文件类型 rw-:uUser,即文件或目录的拥有者; r--:gGroup,即文件或目录的所属群组; r--: oOther,除了文件或目录拥有者或所属群组之外,其他用户皆属于这个范围; ...
2018-02-01 21:10:00
201
转载 cat/more/less/head/tail 命令
cat 说明:查看全部文件 more 说明:分页查看 less 说明:分页查看,查找:/,退出:q head 说明:查看首几行 ...
2018-01-30 22:23:00
122
转载 mv 命令
mvfileAfileB 说明:重命名目录 mvfileA . 说明:将fileA移动到当前目录 mvfileA fileB/ 说明:将fileA移动到fileB目录 ...
2018-01-30 22:03:00
218
转载 cp 命令
cp 说明:复制文件到指定目录 cp -r 说明:复制目录(含子目录)到指定目录 转载于:https://my.oschina.net/u/377152...
2018-01-30 21:48:00
117
转载 rm 命令
rm -r 说明:-r/d:删除目录-f:强制删除 rm -i 说明:交互式删除 转载于:https://my.oschina.net/u/37...
2018-01-29 22:17:00
154
转载 mkdir 命令 ( rmdir )
mkdir 2017 说明:创建目录 mkdir -m 700 2016 说明:创建带权限的目录 mkdir -p 2018/01/29 说明:逐级创建目录 rmdir 2017 说明:删除文件 ...
2018-01-29 22:02:00
116
转载 alias 别名
which ll 查看该命令 alias 查看所有设置的别名 aliastest='ls -lah' 设置别名 unalias 取消别名 转载于:htt...
2018-01-27 11:39:00
71
转载 ls 命令
ls-l 以该行进行说明: drwxrwxr-x 6 billing billing 4096 2017-04-24 18:26:16 acquire 文件类型(首位) d:目录-:文件 c:字符串设备(鼠标/键盘) b:块设备(光...
2018-01-27 11:23:00
98
转载 单用户模式-修改root密码
重启操作系统 重启命令:reboot 或者 init 6 或者 shutdown -r now,输入e,进入grub模式: 修改启动方式 通过光标移动到:Linux16开头那行数据,修改“ ro ”(read only)为 “rm init=/sysroot/bin/...
2018-01-25 23:09:00
175
转载 远程登录Linux系统-PuTTY
1.使用密码直接登录 填写基本信息 左边:选择Session,右边:配置IP(192.168.79.158)和名称(xuefei-001),点击保存(Save) 定义字符 选择:UTF-8 登录成功 ...
2018-01-24 22:45:00
240
转载 Linux 配置IP
自动获取IP:dhclient 说明一:dhclient执行不报错则没有问题,有报错则需要对应解决: 说明二:重启DHCP服务:dhclient -r 重启的截图如下: 自动添加IP:ip addr 设置静态IP:vi /etc/syscon...
2018-01-23 21:10:00
150
转载 安装 CentOS
按照CentOS 选择安装语言: 配置分区 (1)/boot 分区分 200MB; (2)/swap 分区为内存的2倍,但是不超过8GB; (3)/ 分区分配20GB 配置sw...
2018-01-22 22:38:00
72
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅