你知道是什么原因导致下面的这个错误吗?
谷歌帮不上忙。
如果我不在tmux,一切都很好。
Tmux版本为1.9a。
>pwd
pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
-bash: 7: Bad file descriptor
>ls
-bash: 7: Bad file descriptor
>pwd
pwd: error retrieving current directory: getcwd: c
我有一个bash脚本,可以在各种不同的Ubuntu Linux机器上运行。它的工作是找出本地主机的局域网IPv4地址。
该脚本正在使用
ip addr show eth0 | sed -n '/inet /{s/^.*inet \([0-9.]\+\).*$/\1/;p}'
这很好,但是由于某些原因,一些机器使用eth1而不是eth0。我希望能够发现局域网接口名称,因此我可以在这里替代它,而不是eth0。
当然,如果你能想出一个不同的oneliner来做同样的事情,那么一切都很好。
当我试图安装本地.rpm包时,我遇到了一个问题。错误消息:
Total size: 124 M
Installed size: 124 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
error: Couldn't create temporary file for %pre(PACKAGE): Success
Error in PREIN scri
我的/boot/分区已经满了,我不能清除旧内核,我已经尝试了这里的建议,但没有运气如何在/中释放更多的空间?
dpkg -l linux-image-\* | grep ^ii
ii linux-image-4.4.0-71-generic 4.4.0-71.92 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-72-generic 4.4.0-72.93 amd64 Linux kernel image for ver
我启动了一个git-bash窗口,并输入以下命令:
git-bash ~$ echo $BASH_VERSION
4.4.23(1)-release
git-bash ~$ type cd
cd is a shell builtin
git-bash ~$ cd tmp
git-bash ~/tmp$
# Change of directory is NOT refelected on git-bash window title
git-bash ~/tmp$ ssh user@linux
[user@linux ~]$ echo $BASH_VERSION
4.4.20(1)-releas