Unable to delete directory under Linux due to broken files

kt @ rails-ubuntu : ~ / rails / ledger / releases / 20080820144914 / .git / hooks $ ls -al
ls: cannot access post-commit: No such file or directory
ls: cannot access update: No such file or directory
ls: cannot access post-update: No such file or directory
ls: cannot access commit-msg: No such file or directory
ls: cannot access pre-rebase: No such file or directory
ls: cannot access post-receive: No such file or directory
ls: cannot access pre-applypatch: No such file or directory
ls: cannot access pre-commit: No such file or directory
total 8
drwxrwxr-x 2 kt kt 4096 2008-09-09 18:10.
drwxrwxr-x 4 kt kt 4096 2008-09-09 18:10 ..
- ?????????? ? ? ? ? ? commit-msg
- ?????????? ? ? ? ? ? post-commit
- ?????????? ? ? ? ? ? post-receive
- ?????????? ? ? ? ? ? post-update
- ?????????? ? ? ? ? ? pre-applypatch
- ?????????? ? ? ? ? ? pre-commit
- ?????????? ? ? ? ? ? pre-rebase
- ?????????? ? ? ? ? ? update
+3
source share
4 answers

First of all, here is your question, nicely formatted (circle it in the pre> tags):

kt @ rails-ubuntu : ~ / rails / ledger / releases / 20080820144914 / .git / hooks $ ls -al
ls: cannot access post-commit: No such file or directory
ls: cannot access update: No such file or directory
ls: cannot access post-update: No such file or directory
[snip]

fsck. , /tmp .

+5

(a) , ; fsck , -

(b) , , .

+1

, , Aptana Studio .   aptana .

0

I ran into this problem and tried everything. Surprisingly, the solution is very simple. Dude, this is what you do: Using the graphical user interface, not the terminal 1. Move all the other files in this folder to another with a different name 2. Move the containing directory, which should only contain the problem file. 3 Empty trash

and yes it's just

0
source

Source: https://habr.com/ru/post/1696963/


All Articles