<pre>
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
</pre>

[{'answer_id': 72988, 'author': 'raldi', 'author_id': 7598, 'author_profile': 'https://Stackoverflow.com/users/7598', 'pm_score': 4, 'selected': True, 'text': "<p>First off, here's your question, nicely formatted (surround it in &lt; pre > tags to get this):</p>\n\n<pre>kt@rails-ubuntu:~/rails/ledger/releases/20080820144914/.git/hooks$ ls -al\nls: cannot access post-commit: No such file or directory\nls: cannot access update: No such file or directory\nls: cannot access post-update: No such file or directory\n[snip]</pre>\n\n<p>Anyway, you need to boot up in single-user mode and run fsck. If you can't reboot right now, just move the directory to /tmp and forget about it.</p>\n"}, {'answer_id': 73013, 'author': 'David Precious', 'author_id': 4040, 'author_profile': 'https://Stackoverflow.com/users/4040', 'pm_score': 1, 'selected': False, 'text': "<p>(a) Looks like you have some kind of filesystem problems; I'd recommend you run fsck and see if it finds anything</p>\n\n<p>(b) Really not a programming-related question, so off-topic here.</p>\n"}, {'answer_id': 8263727, 'author': 'James EJ', 'author_id': 600525, 'author_profile': 'https://Stackoverflow.com/users/600525', 'pm_score': 0, 'selected': False, 'text': '<p>I had the same problem caused by Aptana Studio working with rails more than once.\n The long term solution was to avoid using aptana to create files.</p>\n'}, {'answer_id': 23014728, 'author': 'iOSAndroidWindowsMobileAppsDev', 'author_id': 1611779, 'author_profile': 'https://Stackoverflow.com/users/1611779', 'pm_score': 0, 'selected': False, 'text': '<p>I ran into this problem and tried everything. Surprisingly the solution is very simple. Dude, this is what you do:\nUsing GUI and not the terminal\n1. Move all other files in that folder to a different one with a different name\n2. Move the containing directory which should have only the problematic file to trash\n3 Empty trash</p>\n\n<p>and yes, it is that simple</p>\n'}]
['https://Stackoverflow.com/questions/72936', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/12417/']