Hey Guys,
If you facing issue " shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory " for restarting service whaterver mysql,httpd,etc,
just do "cd or cd / " on console
it will resolved.
[root@domU-taging]# /etc/init.d/mysqld restart
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]
[root@domU-taging]# cd
[root@domU- ~]# /etc/init.d/mysqld restart
Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]
cool.;)
Sunday, April 11, 2010
Subscribe to:
Post Comments (Atom)
17 comments:
Ih helped me. Thank you.
Wow, I can't believe that worked so easily. I still don't understand, but I'm glad it's working!
Often times, this is because your "current working directory," or the last directory you changed into, is no longer available. Perhaps the directory was removed or the disk it's located on was removed.
Same as Matt said. Strange that it works, but thank you!
i cannot believe it actually worked!
thank you!!!!
Thanks so much! You saved my day...
thanks
Thanks ! You explained how to solve this problem but you didn't explain the reason of the error.
You were in a location that was moved after you moved to that directory.
Thank you! This worked perfectly!
Hi,
I have had the same thing. Find below the commands that provoke this message to me:
1.- user@pc:~ cd /home/user/Documents
2.- user@pc:/home/user/Documents/$ rm -Rf ../Documents
3.- user@pc:/home/user/Documents/$ su
So root tries to open a terminal on a location that has been removed.
That is all!!
Thank you so much!
Thanks! Helped me out!
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
Devops Training in electronic city
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
Devops Training in electronic city
Informative blog.
AWS Online Training
salesforce quickbooks integration
Post a Comment