by shigemk2

当面は技術的なことしか書かない

cheatコマンドのdiff

最後のやつは知ってた。

bとかiとかは、なるほどなってかんじ。

# To view the differences between two files:
diff -u version1 version2

# To view the differences between two directories:
diff -ur folder1/ folder2/

# To ignore the white spaces:
diff -ub version1 version2

# To ignore the blank lines:
diff -uB version1 version2

# To ignore the differences between uppercase and lowercase:
diff -ui version1 version2

# To report whether the files differ:
diff -q version1 version2

# To report whether the files are identical:
diff -s version1 version2

# To diff the output of two commands or scripts:
diff <(command1) <(command2)

diffコマンド(2つのファイルや標準入力を比較する)

CentOS 6.5にCheatを入れてみる - by shigemk2

週刊 CentOS7 dockerその1

docker - Failed to get D-Bus connection: No connection to service manager.の対処 - Qiita

CentOS 7のDockerコンテナ内でsystemdを使ってサービスを起動する - Qiita

Bug 1118740 – Review Request: fakesystemd - Minimal docker-specific package to satisfy systemd Provides

眠いのでリンクだけ貼っておきたいけど。

$ sudo docker run -i -t centos /bin/bash
bash-4.2# cat /etc/redhat-release 
CentOS Linux release 7.0.1406 (Core)
bash-4.2# yum swap -- remove fakesystemd -- install -y systemd systemd-libs
bash-4.2# systemctl 
Failed to get D-Bus connection: No connection to service manager.

これをどうにかしたいけど眠い。