Very good article. I know another way to get ONLY the ownername or groupname with 1 shot:
# stat -c %U /path/to/file
# stat -c %G /path/to/file
These are helpful in writing scripts. More details at:
# man stat
本文介绍了一种使用stat命令的一键式方法来获取文件的所有者或组名,非常适合在编写脚本时使用。更多详情请参阅官方手册。
Very good article. I know another way to get ONLY the ownername or groupname with 1 shot:
# stat -c %U /path/to/file
# stat -c %G /path/to/file
These are helpful in writing scripts. More details at:
# man stat
779

被折叠的 条评论
为什么被折叠?