Announcement

Collapse
No announcement yet.

Corrupted files

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Corrupted files

    Somehow I've wound up with a dozen files in my /home directory with 0 bytes and corrupted names, all containing diamond shapes with question marks inside them. When I try to "Move to Trash," I'm informed that the file does not exist. This is a small issue, not preventing me from doing anything, but how do I get rid of them?
    -- Werdigo49
    Registered Linux User #291592
    Kubuntu Xenial Xerus (16.04)

    #2
    http://askubuntu.com/questions/65473...rom-file-names

    Comment


      #3
      Thank you, Steve; that looks helpful. Sorry for the beginner's question, but I'm having trouble with this: "run with --no-test as first parameter to really rename". Guess I don't know what the "first parameter" is. I've tried replacing various things with "--no-test" (without the "") but still get the output "This is a simulation > run with --no-test as first..."
      -- Werdigo49
      Registered Linux User #291592
      Kubuntu Xenial Xerus (16.04)

      Comment


        #4
        Assume you save the script in a file called bad-renamer.sh and set the attributes to a+x.

        If you run this:
        Code:
        ./bad-renamer.sh [I]CORRUPTED-FILE-NAME[/I]
        then the script will run only in simulation mode. To actually do the work, you need to pass --no-test as the first parameter thusly:
        Code:
        ./bad-renamer.sh --no-test [I]CORRUPTED-FILE-NAME[/I]

        Comment

        Working...
        X