单击选项卡时出现shell初始化问题,getcwd怎么了? [英] shell init issue when click tab, what's wrong with getcwd?

查看:222
本文介绍了单击选项卡时出现shell初始化问题,getcwd怎么了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一旦我单击bash上的Tab键,就会出现错误消息,这是怎么回事?

once i click Tab on bash, the error message will appear, what's wrong?

symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: Success
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: Success
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: Success
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: Success
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: Success
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: Success

有时,错误消息是:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No s uch file or directory

如何解决shell初始化问题?

how to solve shell init problem?

推荐答案

通常在当前目录不存在时发生.最有可能的是,从另一个终端中删除该目录(从脚本或其他内容中).为了避免这种情况,如果在此期间重新创建了当前目录,只需cd到另一个(现有)目录,然后再cd;最简单的是:cd; cd -.

This usually occurs when your current directory does not exist anymore. Most likely, from another terminal you remove that directory (from within a script or whatever). To get rid of this, in case your current directory was recreated in the meantime, just cd to another (existing) directory and then cd back; the simplest would be: cd; cd -.

这篇关于单击选项卡时出现shell初始化问题,getcwd怎么了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆