Follow

私の名前も数字だけだから、いろんなところで事故を起こして楽しい。

$ chown 2510 test
$ ls -al test
-rw-r--r-- 1 2510 wheel 0 Jan 23 17:02 test
$ ls -aln test
-rw-r--r-- 1 1001 0 0 Jan 23 17:02 test

数字のUIDが2510な人にchownしようとしたら、名前を探してあげないといけないのか。めんどいね。

> The owner may be either a numeric user ID or a user name. If a user name is also a numeric user ID, the operand is used as a user name.

man.freebsd.org/cgi/man.cgi?qu

Sign in to participate in the conversation
Mastodon

Experimental private instance. Running on FreeBSD!