Linux Shell 编程 : linux shell 学习摘记(3)
《linux shell 脚本编程攻略 (第2版)》 第三章 “以文件之名” 笔记 常用命令: comm , chmod/chown , chattr , touch , 列出目录的相关命令 , readlink , file , <<< , dd , 有关光盘的各类命令 , mkfs.ext4 , mkisofs , isohybrid , mount/umount ,...
View ArticleLinux Shell 编程 : linux shell 学习摘记(4)
《linux shell 脚本编程攻略 (第2版)》 第四章 “让文本飞起来” 笔记 主要命令: 正则表达式 , grep/egrep , sed , awk , cut , find , xargs , tr , 变量切片 正则表达式 详细参考 ma(tri)?x 匹配max或matrix Oct (1st|2nd) 匹配 Oct 1st 或者 Oct 2nd 将正则表达式可视化 grep...
View ArticleMount LVM filesystems in live session
Updated: October 1, 2016 Several days ago, I gave you atutorial on how to recover from a borked glibc, using tools available inside the installed system. We mentioned booting into a live session as...
View ArticlePart 10. Pattern 2. Functions with variable number of arguments
Typical examples given in most articles on the issues of porting programs to 64-bit systems refer to incorrect use of the functions printf , scanf and their variants. Example 1: const char...
View ArticleThe OVN Load Balancer
Overview Building upon myprevious post I will explore the the load balancing feature of OVN. But before getting started, lets review the setup created in the last lab. The lab network: The OVN logical...
View ArticleCentOS7进程管理systemd详解
概述:系统启动过程中,当内核启动完成,后加载根文件系统,后就绪的一些用户空间的服务的管理工作,就交由init进行启动和管理,在CentOS6之前的init的管理方式都类似,相关的内容我们在之前的文章中也做出过介绍。在CentOS7上,init变成了systemd,其管理方式也发生了重大的变化,本章就跟大家欧一起探讨一些关于CentOS7上的systemd的新特性的内容。具体分为一下几个方面:1、sy...
View ArticleCentOS 6的系统启动流程
一、POST加电自检按下电源后ROM芯片中的CMOS程序执行并检测CPU、内存等设备是否存在并正常运行,CMOS中的程序叫BIOS,可以设置硬盘接口,网卡声卡开关之类的简单设置。一般PC机主板上有一个纽扣电池,这个电池就是给ROM供电的,可以保证主板断电后BIOS的一些基本设置不会重置。下面是一个比较新的主板的BIOS,在老主板上一般只有英文不会有中文界面,老式主板只支持键盘操作不支持鼠标,现在很多...
View ArticleVim编辑器配置
1.背景说明: Vim编辑器是linux一款非常流行功能强大的文本编辑。配置好Vim可大大提高代码的开发效率。2.配置方案: 我在github搜索了别人是如何进行vim配置的,在这里你可以选择一款适合你的配置方案,这里我选择Star比较多的配置方案:vimrc 3.如何安装: 参考上述链接,安装说明很详尽(由于网络原因,可能下载安装比较慢,耐心等待即可)3.遇到问题:...
View ArticleSVN 版本库的创建和配置
1.创建SVN版本库mkdir trunksvnadmin create /root/trunk/svntest #这里是路径和即将创建的版本库名称2.配置svncd /root/trunk/svntest/conf #配置文件所在的目录vim svnserve.conf...
View Article创建LVM的日志记录
先上一张鸟哥LVM的图.感觉这张最清楚了。linuxidc.com/upload/2016_09/160923095230861.gif" alt="创建LVM的日志记录" />#以下以Xshell的日志记录系统直接记录.上面添加了一些个人理解的注释 [BEGIN] 2016/9/13 9:22:24#先查看下硬盘的情况.[root@linuxidc ~]# fdisk -lDisk...
View ArticleSSH/SSL 源码编译安装简易操作说明
安全加固需求,由于某盟扫描系统主机有SSL系列漏洞,客户要求必须修复;解决方案:将SSH/SSL升级到最新版本,删除SSL旧版本(实测不删除旧版本某盟扫描无法通过)。当前版本:OpenSSH_5.3p1, OpenSSL 1.0.1e-fips当前最新版本:OpenSSH_7.3p1, OpenSSL 1.0.2h...
View Article关于Linux file命令是如何判断文件字符集的
今天在linux使用file -i 查看mysqlDUMP文件的时候其输出为charset=us-ascii with very long lines我导出的文件应该是utf8的,为什么会显示ASCII呢,我们知道ASCII并没有中文编码,那么真的有问题吗?然后用如下2个小程序测试了一下#include<stdio.h>int main(void){ FILE *p; int i=0;...
View ArticleLinux基础教程:chmod命令改变文件/文件夹属性
简介chmod命令用于改变linux系统文件或目录的访问权限,控制用户/用户组对文件或目录的访问权限。用法:两种用法:1)用字母r(读)、w(写)、x(执行)表示权限类型;2)用数字表示,4代表读,2表示写,1代表执行。文件/文件夹的权限属性的面相的用户群体分owner(所有者)、owner group(所有者所在用户组的成员)、others(其他用户)。所以chmod 760...
View ArticleUbuntu 14.04 LTS下配置SSH免密码登录
Ubuntu 14.04 LTS下配置SSH免密码登录首先用apt-get命令安装SSHlinuxidc@ubuntu:~$ sudo apt-get install ssh[sudo] password for linuxidc: Reading package lists... DoneBuilding dependency tree Reading state information......
View ArticleUbuntu 14.04 LTS下安装JDK 1.8
Ubuntu 14.04 LTS下安装JDK 1.8先到Oracle官网的下载中心下载JDK8的tar包到本地。下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html创建应用程序主目录linuxidc@ubuntu:/usr/lib$ sudo mkdir...
View ArticleWitness the new Raspberry Pi interface, shiny and Chrome
There's some good news for the many millions of Raspberry Pi owners out there, and indeed those about to pull the trigger on a purchase, as they'll benefit from a fresh new interface which has been...
View ArticlePink, fluffy dining at the 'Kirby' cafe
Created by Masahiro Sakurai (of Smash Bros . fame), Kirby's simple design was intended as a placeholder midway through game development. However, Sakurai decided to keep it as the final character...
View Articlesystemdconf(2): 1st day / workshop summary
systemdconf(2) So it's the second time systemdconf takes place. Again - in Berlin, which I find even more pretty in early Autumn than year before (which was in November) - sunny and warm. Full...
View Articlealwsl Project Lets You Install Arch Linux in the Windows Subsystem for Linux
It appears that there's a new project on GitHub, called alwsl , which promises to let you install the Arch linux operating system in the WSL (windows Subsystem for Linux) host. If you have no idea...
View ArticleLCFinder 0.1.0 Alpha 4 发布,资源管理工具
LCFinder 0.1.0 Alpha 4 发布了。 LCFinder 是一个用 C 语言编写的资源管理工具,目前暂时只支持管理图片资源,新功能将在后续版本中加入。 这是第四个 Alpha 版,更新内容如下: 添加图片删除功能。 添加 linux 系统支持,构建方法请查阅 README.md。 微调界面样式,修改图片查看器的布局和样式。 为查看器添加图片切换功能,支持触控拖动切换上/下一张图片。...
View Article