Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Linux で mv を使用すると、新しいファイルは同じ権限を保持します。ファイルを mv したいのですが、移動後、新しいファイルの所有者になります。これは可能ですか?
同時とはどういう意味ですか?なぜそれが重要なのですか? これはうまくいきますか?
権限の場合:
mv $old $new; chmod xyz $new
所有者向け:
mv $old $new; chown user:user $new