Terminal: cp file to /dev/file not allowed

Discussion in 'Mac Basics and Help' started by pmasterkim, Jan 17, 2010.

  1. pmasterkim macrumors newbie

    Jan 17, 2010
    Dear Terminal users,

    I have tried the following both as my user and root user

    sudo cp -R file /dev/file

    and I get

    cp: /dev/file: Operation not supported

    This is the ls -l for the file

    -rwxrwxrwx 1 lee lee 129260 Apr 3 2009 file

    and this is mount

    /dev/disk0s2 on / (local, journaled)
    devfs on /dev (local)
    fdesc on /dev (union)
    <volfs> on /.vol
    automount -nsl [125] on /Network (automounted)
    automount -fstab [146] on /automount/Servers (automounted)
    automount -static [146] on /automount/static (automounted)

    Can anyone tell me what is wrong with what I am doing?
  2. BlueRevolution macrumors 603


    Jul 26, 2004
    Montreal, QC
    First off, sudo runs a command as root, so it doesn't matter what user you're using (so long as it's in sudoers).

    In response to your question... why would you want to put something in /dev? I don't think you can, since it's not so much a directory as an abstraction of various hardware interfaces.
  3. jb60606 macrumors 6502a

    Jan 27, 2008
    what are the permissions on /dev? By default, I think they're just read and execute only.

Share This Page