1、cannot create temp file for here-document: No space left on device
问题描述:
硬盘内存不足
解决办法:
# 查看硬盘根目录内存使用情况
> df -h
# 根据查找到的目录使用情况,一层层查找最大文件,并删除最大文件
> du -h
# 删除最大文件时,务必确认文件可删
> rm -rf [文件名]
2、切换用户后输入命令失效
命令失效很大可能是环境变量出现问题,切换到相应用户,查看 .bash_profile 配置文件内容是否完整,参考以下:
# # .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH