Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pmasterkim

macrumors newbie
Original poster
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?
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.