Re: Letting "ls -l" display file permissions in octal

看板FB_hackers作者時間11年前 (2014/04/09 04:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/4 (看更多)
> [Please CC me when you think it's necessary; I'm not subscribed to ] > [-hackers because I'm not a developer. ] > > Someone asked on the FreeBSD Forums whether it was possible to let "ls -l" > display file permissions in octal, e.g. > > % ls -lO > -0644 1 root wheel - 855B Mar 4 16:30 some_file > > instead of > > % ls -l > -rw-r--r-- 1 root wheel - 855B Mar 4 16:30 some_file > > Since ls itself appears not to have an option for that and I quite liked > the idea, I decided to hack the source of ls to do just that. > > If you folks think this is a good idea, then by all means feel free to > discuss my patch and possibly incorporate it into the FreeBSD source tree. > And if you think it's not a good idea, no harm done. It's just a pet > project (and a simply one at that) so my feelings won't be hurt if it's > not accepted. +1 for incorporating it, and adding it to BASE. --Chris > > The patch can be found here: http://www.skysmurf.nl/attic/ls.patch > > And the discussion thread in question on the FreeBSD Forums can be found > here: https://forums.freebsd.org/viewtopic.php?f=3&t=45825 > > Regards, > > Alphons "Fonz" van Werven > > -- > I'm not completely useless, I can be used as a bad example. > _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #1JH5L-yK (FB_hackers)
文章代碼(AID): #1JH5L-yK (FB_hackers)