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.
ディレクトリのこれらの詳細を単純に印刷したかったのですが、スクリプトをperlで記述したかったのですが、何か洞察はありますか?
statファイルの所有者のUIDを取得getpwuidし、IDのユーザー名を取得するために使用します。例:
stat
getpwuid
私の$owner= getpwuid((stat)[4]);
getpwuidリストコンテキストで呼び出すと、値のリストが返されることに注意してください。最初の値はユーザー名です。