Skip to main content
Tweeted twitter.com/#!/StackUnix/status/347099299718516736
fix extra backslash
Source Link
derobert
  • 113.3k
  • 20
  • 242
  • 289

It's hard to search for special characters on google, which is why I'm posting this here.

I recently ran (as root) a mv /tmp/folder/* /\** when I meant to run mv /tmp/folder/* ./ Big mistake!

Things broke! A lot of files got mixed up and placed into strange places, none of the normal unix commands worked (ls, dir, cat, etc) and once you logged off, you couldn't ssh back in -- it would give you a prompt, but not accept the old passwords.

Running ls /* shows me that it performs ls on every directory in /. If I tried to draw a parallel, then mv should have simply moved (or copied?) the files to every directory in /. Instead, really weird things happened, and I was just curious what exactly was going on.

More info: The files in /tmp/folder had been transferred from a windows machine, and had been named file (#).txt, where (#) is a number up to two digits, with a space between file and the parenthesis. There were ~40 of these text files.

It's hard to search for special characters on google, which is why I'm posting this here.

I recently ran (as root) a mv /tmp/folder/* /\* when I meant to run mv /tmp/folder/* ./ Big mistake!

Things broke! A lot of files got mixed up and placed into strange places, none of the normal unix commands worked (ls, dir, cat, etc) and once you logged off, you couldn't ssh back in -- it would give you a prompt, but not accept the old passwords.

Running ls /* shows me that it performs ls on every directory in /. If I tried to draw a parallel, then mv should have simply moved (or copied?) the files to every directory in /. Instead, really weird things happened, and I was just curious what exactly was going on.

More info: The files in /tmp/folder had been transferred from a windows machine, and had been named file (#).txt, where (#) is a number up to two digits, with a space between file and the parenthesis. There were ~40 of these text files.

It's hard to search for special characters on google, which is why I'm posting this here.

I recently ran (as root) a mv /tmp/folder/* /* when I meant to run mv /tmp/folder/* ./ Big mistake!

Things broke! A lot of files got mixed up and placed into strange places, none of the normal unix commands worked (ls, dir, cat, etc) and once you logged off, you couldn't ssh back in -- it would give you a prompt, but not accept the old passwords.

Running ls /* shows me that it performs ls on every directory in /. If I tried to draw a parallel, then mv should have simply moved (or copied?) the files to every directory in /. Instead, really weird things happened, and I was just curious what exactly was going on.

More info: The files in /tmp/folder had been transferred from a windows machine, and had been named file (#).txt, where (#) is a number up to two digits, with a space between file and the parenthesis. There were ~40 of these text files.

added 8 characters in body
Source Link
Anthon
  • 81.4k
  • 42
  • 174
  • 228

It's hard to search for special characters on google, which is why I'm posting this here.

I recently ran (as root) a mv /tmp/folder/* /\* when I meant to run mv /tmp/folder/* ./ Big mistake!

Things broke! A lot of files got mixed up and placed into strange places, none of the normal unix commands worked (ls, dir, cat, etc) and once you logged off, you couldn't ssh back in -- it would give you a prompt, but not accept the old passwords.

Running ls /*ls /* shows me that it performs ls on every directory in //. If I tried to draw a parallel, then mvmv should have simply moved (or copied?) the files to every directory in //. Instead, really weird things happened, and I was just curious what exactly was going on.

More info: The files in /tmp/folder had been transferred from a windows machine, and had been named file (#).txt, where (#) is a number up to two digits, with a space between file and the parenthesis. There were ~40 of these text files.

It's hard to search for special characters on google, which is why I'm posting this here.

I recently ran (as root) a mv /tmp/folder/* /\* when I meant to run mv /tmp/folder/* ./ Big mistake!

Things broke! A lot of files got mixed up and placed into strange places, none of the normal unix commands worked (ls, dir, cat, etc) and once you logged off, you couldn't ssh back in -- it would give you a prompt, but not accept the old passwords.

Running ls /* shows me that it performs ls on every directory in /. If I tried to draw a parallel, then mv should have simply moved (or copied?) the files to every directory in /. Instead, really weird things happened, and I was just curious what exactly was going on.

More info: The files in /tmp/folder had been transferred from a windows machine, and had been named file (#).txt, where (#) is a number up to two digits, with a space between file and the parenthesis. There were ~40 of these text files.

It's hard to search for special characters on google, which is why I'm posting this here.

I recently ran (as root) a mv /tmp/folder/* /\* when I meant to run mv /tmp/folder/* ./ Big mistake!

Things broke! A lot of files got mixed up and placed into strange places, none of the normal unix commands worked (ls, dir, cat, etc) and once you logged off, you couldn't ssh back in -- it would give you a prompt, but not accept the old passwords.

Running ls /* shows me that it performs ls on every directory in /. If I tried to draw a parallel, then mv should have simply moved (or copied?) the files to every directory in /. Instead, really weird things happened, and I was just curious what exactly was going on.

More info: The files in /tmp/folder had been transferred from a windows machine, and had been named file (#).txt, where (#) is a number up to two digits, with a space between file and the parenthesis. There were ~40 of these text files.

edited body
Source Link
Michael Mrozek
  • 95.8k
  • 40
  • 245
  • 236

It's hard to search for special characters on google, which is why I'm posting this here.

I recently ran (as root) a 'mv /tmp/folder/* /*'mv /tmp/folder/* /\* when I meant to run 'mv /tmp/folder/* ./'mv /tmp/folder/* ./ Big mistake!

Things broke! A lot of files got mixed up and placed into strange places, none of the normal unix commands worked (ls, dir, cat, etc) and once you logged off, you couldn't ssh back in -- it would give you a prompt, but not accept the old passwords.

Running ls /* shows me that it performs ls on every directory in /. If I tried to draw a parallel, then mv should have simply moved (or copied?) the files to every directory in /. Instead, really weird things happened, and I was just curious what exactly was going on.

More info: The files in /tmp/folder had been transferred from a windows machine, and had been named file (#).txt, where (#) is a number up to two digits, with a space between file and the parenthesis. There were ~40 of these text files.

It's hard to search for special characters on google, which is why I'm posting this here.

I recently ran (as root) a 'mv /tmp/folder/* /*' when I meant to run 'mv /tmp/folder/* ./' Big mistake!

Things broke! A lot of files got mixed up and placed into strange places, none of the normal unix commands worked (ls, dir, cat, etc) and once you logged off, you couldn't ssh back in -- it would give you a prompt, but not accept the old passwords.

Running ls /* shows me that it performs ls on every directory in /. If I tried to draw a parallel, then mv should have simply moved (or copied?) the files to every directory in /. Instead, really weird things happened, and I was just curious what exactly was going on.

More info: The files in /tmp/folder had been transferred from a windows machine, and had been named file (#).txt, where (#) is a number up to two digits, with a space between file and the parenthesis. There were ~40 of these text files.

It's hard to search for special characters on google, which is why I'm posting this here.

I recently ran (as root) a mv /tmp/folder/* /\* when I meant to run mv /tmp/folder/* ./ Big mistake!

Things broke! A lot of files got mixed up and placed into strange places, none of the normal unix commands worked (ls, dir, cat, etc) and once you logged off, you couldn't ssh back in -- it would give you a prompt, but not accept the old passwords.

Running ls /* shows me that it performs ls on every directory in /. If I tried to draw a parallel, then mv should have simply moved (or copied?) the files to every directory in /. Instead, really weird things happened, and I was just curious what exactly was going on.

More info: The files in /tmp/folder had been transferred from a windows machine, and had been named file (#).txt, where (#) is a number up to two digits, with a space between file and the parenthesis. There were ~40 of these text files.

Source Link
M L
  • 51
  • 1
  • 3
Loading