摘要: 最近在使用 BASH 进行处理 文本文件的时候,对于文本处理真的是力不从心,今天进行搜集一下linux 中文本处理相关的命令,这样你在进行书写shell 脚本的时候,就能写出更好的方案。 命令搜集: grep (较为重点) sed (重点) awk (重点) cat head tail more w 阅读全文
posted @ 2018-07-22 14:57 "Michael_Xu" 阅读(284) 评论(0) 推荐(0) 编辑
摘要: How to connect to a VM hosted on QEMU remotely using virt-viewer I couldn’t find comprehensive articles about this, so I decided to write one myself. 阅读全文
posted @ 2018-07-18 18:37 "Michael_Xu" 阅读(2695) 评论(0) 推荐(0) 编辑
摘要: 我们在升级Linux 内核的时候,难免会接触到补丁的知识。下面对如何生成补丁和如何打补丁作讲解。 生成补丁: 制作 hello.c 和 hello_new.c 两个文件如如下所示。 使用 diff -uN 命令 进行生成patch 至此,patch 已经创建完毕。 之后,我们进行使用 patch 命 阅读全文
posted @ 2018-07-17 17:34 "Michael_Xu" 阅读(2917) 评论(0) 推荐(0) 编辑
摘要: Question: Recently I have to use the RHEL and need to config the network with a few NICs. Here comes the question: What's the network bonding and How 阅读全文
posted @ 2018-07-12 14:21 "Michael_Xu" 阅读(671) 评论(0) 推荐(0) 编辑
摘要: Windows : ping -S Linux : ping -I <device> -I interface interface is either an address, or an interface name. If interface is an address, it sets sour 阅读全文
posted @ 2018-07-12 11:35 "Michael_Xu" 阅读(9034) 评论(0) 推荐(0) 编辑
摘要: 生产环境使用 Fedora 28, 并且需要搭建一个 Jupyter 的notebook 方便使用,所搭建的Jupyter 支持单人远程 密码访问 1. 安装 安装 Jupyter , 出错 [root@dhcp-65-15 ~]# pip install jupyter WARNING: Runn 阅读全文
posted @ 2018-07-10 15:59 "Michael_Xu" 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 使用: 这两个命令 保持更新,转载请注明出处。 阅读全文
posted @ 2018-07-06 16:55 "Michael_Xu" 阅读(11072) 评论(0) 推荐(0) 编辑
摘要: Ctrl+ALT+F1~F6 可以进入不同的字符终端和图形界面。体现了 linux 或者 unix 的多用户的特点。 6个不同的终端,相当于六个不同的用户。 保持更新,转载请著名出处。 阅读全文
posted @ 2018-07-05 13:40 "Michael_Xu" 阅读(2079) 评论(0) 推荐(0) 编辑
摘要: 当我们在使用kickstart 的时候,会遇到写网卡配置文件的情况,这时候我们使用cat > file << EOF 命令等,可以从标准输入中接受输入并保存到 file 文件中。 这里应注意,后面的文字 不止接 EOF , 接任何字符字符都行,只要保持前后对应。 [root@dhcp-65-15 ~ 阅读全文
posted @ 2018-07-05 10:25 "Michael_Xu" 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 最近需要使用 ftp 工具,所以借此机会来进行整理以下具体的内容: 具体什么是ftp, ftp 能干什么? 请参考: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_admini 阅读全文
posted @ 2018-07-02 13:50 "Michael_Xu" 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 经常我们使用脚本登入服务器的时候,如果使用ssh 命令,经常会提示密码输入,我们不得不手动输入密码,因为ssh 没有 密码的选项。 为了能绕过交互式验证,我们使用sshpass命令解决这个问题: 1. 安装 检查是否安装 2. 查看 sshpass 命令帮助, 也可以使用 man sshpass N 阅读全文
posted @ 2018-07-02 11:56 "Michael_Xu" 阅读(3641) 评论(0) 推荐(0) 编辑
摘要: 网上下载rar 压缩文件的使用,在linux在我们需要对其进行解压缩,这个时候,我们需要安装 rar相关的文件,来进行解压缩。 1. 下载 我们进入rarlab网站,进行下载 rar for linux x64 2. 使用 tar 命令 解压 (*.tar 用 tar –xvf ) 3. 进入文件夹 阅读全文
posted @ 2018-07-02 09:54 "Michael_Xu" 阅读(17605) 评论(0) 推荐(0) 编辑
摘要: nmcli 是 NetworkManager 的控制客户端,通过 man 查看可知: NMCLI(1) General Commands Manual NMCLI(1) NAME nmcli - command-line tool for controlling NetworkManager SYN 阅读全文
posted @ 2018-07-02 09:25 "Michael_Xu" 阅读(841) 评论(0) 推荐(0) 编辑
摘要: 网上相似的资源很多,可以参考如下资料: man ip ip help 博客链接: https://linoxide.com/linux-command/use-ip-command-linux/ https://www.cnblogs.com/ginvip/p/6367803.html https: 阅读全文
posted @ 2018-07-02 09:02 "Michael_Xu" 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 差别是KB等单位以10为底数的指数,KiB是以2为底数的指数。 K 与 Ki 分别表示 kilo-(千) 与 kibi-(二进制千) 。作为前缀使用时, k 表示 1,000,Ki 表示1,024。 不带"i"的单位 1KB=10^3=1000, 1MB=10^6=1000000=1000KB, 1 阅读全文
posted @ 2018-07-01 17:25 "Michael_Xu" 阅读(1751) 评论(0) 推荐(0) 编辑
摘要: 文件系统的挂载相关的有两个命令: mount 和 umount 其中: mount 用于挂载和 umount 用于取消挂载 基础用法: (执行这些操作,需要在管理员权限下) mount 文件系统 /挂载点 mount 文件系统uuid /挂载点 其中,uuid使用 blkid 获得 umount / 阅读全文
posted @ 2018-07-01 17:10 "Michael_Xu" 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 出现这种情况,是索引库没有建立。 man 和 whatis 共用一个索引库的。 我们使用 man whatis 进行查看: 所以进行执行 mandb 就行了。 老版本的 linux 需要执行: /usr/sbin/makewhatis 这些命令都是在 root 模式下执行。执行后我们重新查看: 保持 阅读全文
posted @ 2018-06-25 12:07 "Michael_Xu" 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 什么是crontab? crontab命令常见于Unix和类Unix的操作系统之中,用于设置周期性被执行的指令。该命令从标准输入设备读取指令,并将其存放于“crontab”文件中,以供之后读取和执行。该词来源于希腊语 chronos(χρνο),原意是时间。通常,crontab储存的指令被守护进程激 阅读全文
posted @ 2018-06-25 08:55 "Michael_Xu" 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 什么是notify-send? notify-send - a program to send desktop notifications 怎么使用? NAME SYNOPSIS DESCRIPTION OPTIONS AUTHOR 之后我们将结合crontab等命令, 来进行定时发送消息,进行桌面 阅读全文
posted @ 2018-06-25 08:26 "Michael_Xu" 阅读(947) 评论(0) 推荐(0) 编辑
摘要: windows 中 使用 start . 可以实现 macos 中 使用 open . 可以实现 linux 中 可以使用 nautilus . 可以实现 了解nautilus 详细的使用说明,可以 使用 man nautilus 来查看。 NAME nautilus - a file manage 阅读全文
posted @ 2018-06-25 08:00 "Michael_Xu" 阅读(960) 评论(0) 推荐(0) 编辑