Month: November 2016
-
Linux df says disk is full, du does not add up
There might be files which you deleted but but are still on disk. This happens if a process still has the file open. You can check for open files by doing: sudo lsof +L1 firefox 15940 klu txt REG 0,39 130896 0 4064267 /usr/lib64/firefox/firefox (deleted) firefox 15940 klu 12r REG 0,39 9698845 0 4064383 /usr/lib64/firefox/omni.ja…
-
LVM lv logical volumes not in mapper (or in /dev)
vgdisplay (are they there?) vgscan –mknodes -v vgchange -a y
-
Reboot failing in RHEL/centos: Failed to talk to init daemon.
Use reboot -f [root@lintest ~]# reboot Failed to start reboot.target: Activation of org.freedesktop.systemd1 timed out Failed to open /dev/initctl: No such device or address Failed to talk to init daemon. [root@lintest ~]# [root@lintest ~]# [root@lintest ~]# [root@lintest ~]# [root@lintest ~]# reboot -f packet_write_wait: Connection to 10.0.100.31 port 22: Broken pipe
-
Bash compound commands (()){{}}{}[[]]
Compound Commands A compound command is one of the following. In most cases a list in a command’s description may be separated from the rest of the command by one or more newlines, and may be followed by a newline in place of a semicolon. (list) list is executed in a subshell environment (see COMMAND…