command まとめ

NetworkManager

example をみる

man nmcli-examples

interface の設定を見る

nmcli c show configured em1

interface の起動

nmcli c up em1

device の確認

nmcli device status

IP address の変更

nmcli c mod ipv4.addresses=""

LVM 関連

physical volume (PG) の作成

# pvcreate /dev/sdc1
  Physical volume "/dev/sdc1" successfully created
# pvs
  PV         VG             Fmt  Attr PSize  PFree
  /dev/sda2  fedora_bldsv09 lvm2 a--  29.31g

volume group の作成

# vgcreate fcs /dev/sdc1
  Volume group "fcs" successfully created
# vgs
  VG             #PV #LV #SN Attr   VSize  VFree
  fcs              1   0   0 wz--n-  1.95t 1.95t
  fedora_bldsv09   1   2   0 wz--n- 29.31g

Logical Volume を作成する。全体の容量を指定

# lvcreate -L 1.95t -n fcs_lv fcs
  Rounding up size to full physical extent 1.95 TiB
  Logical volume "fcs_lv" created
# vgs
  VG             #PV #LV #SN Attr   VSize  VFree
  fcs              1   1   0 wz--n-  1.95t 3.20g
  fedora_bldsv09   1   2   0 wz--n- 29.31g    0

その他

.ssh と authorized_key の permission

chmod 600 .ssh
chmod 700 .ssh/authorized_keys

yum での package 検索

yum search [word]

今まで何故か

yum list | grep [word]

というアホなやり方をしていたので……。

ldap の設定

authconfig-tui

daemon の操作

service [daemon name] [start | restart | status ...]

もしくは systemctl を使ってもいい。

home directory の変更

vi /etc/passwd

もしくは、

sudo usermod -d [directory name] [user name]

でもできる。

disk の位置、容量の確認

fdisk -l

自動起動 on

systemctl enable [daemon name]

コメント

このブログの人気の投稿

相互インクルード対策

make error "Circular"

gdb操作