Login
You're viewing the y.diskcat.com public feed.

Replies

  • May 3, 2026, 3:54 PM

    @blindcoder I guess none of this changes the answer

    It's the first choice provided and I was wrong about -r

    💬 0🔄 0⭐ 0
  • May 3, 2026, 3:55 PM

    @saxnot @blindcoder because /path/to/ begins with a / it will start from the file system root. However your path/to exists in /tmp/masto, not in the root.

    💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • May 3, 2026, 3:57 PM

    @saxnot @blindcoder You probably don't have to, you could either specify the full path for the purposes of this example (/tmp/masto/path/to) or just make it a relative path.

    💬 0🔄 0⭐ 0
  • May 3, 2026, 3:59 PM

    @mezz @blindcoder huh

    docker run -it --rm 'debian:trixie-slim'

    root@80721cf2c18a:/# mkdir -p path/to
    root@80721cf2c18a:/# mkdir -p src/something
    root@80721cf2c18a:/# mkdir -p src/foobar
    root@80721cf2c18a:/# touch ^C

    root@80721cf2c18a:/# mv src /path/to/dest/
    root@80721cf2c18a:/# ls /path/to/dest/
    foobar something

    So it's the third option

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0