Letting "ls -l" display file permissions in octal

看板FB_hackers作者時間11年前 (2014/04/09 03:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/4 (看更多)
--k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [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. 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=3D3&t=3D45825 Regards, Alphons "Fonz" van Werven --=20 I'm not completely useless, I can be used as a bad example. --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJTREPNAAoJEAfP7gJTaCe87JIQAMqN9XWEI0/x6gYRXjXYnpb4 hJnlva7dR3TJSaaZ0fgUW48ITS4HnDh21SvUzDpc6fYl9K0qjvYVOvoTm7ukKyNm k+lZOcvVcYKOUn42NSXcqqxNBLPIgqni0iPFf/K69C5gZO5rkQfHFKAO9fmYyjAx 8hJ3GT4LRNTFp/EEL3jwBdnvznSlMx6/M3/HZk341kDkrH8nzxabJ5ZZ2c0BJw08 gUMB6M4lMh8UOiAtI7OeZVlQM3JucSeMSKUdqm8OJtatna+J/m+Gcgn+vwSPcVQ5 52moNYzXY79+61M0kQ9TX1KOZoEYtSI6HYKM5XE1bD+t5ohj6tJ4gx2CPBAw4bIO P4MtjuhVd+XoUuiQuUwlKUAzNXAJF45Zuv/oymLeXn4lEsrAxlO9edO7hx69O0O3 mwU0BAyHriacyTOblQt4Vwt7MbR4phBPIY4zO+ESzjaJ3RjG0AammuGaBh9alR4d ap+yDtmGcJIg4Qnhz2GRXbXIMosmVZUk2gI/bAWf8ogad2OIEkVVxjOhsZBJV1J1 DVQDByn4j1IpJ/9cQvRVa25Zc7Ev4+WoPPJ9igvdmIfo58EM17Dhzz+83TT3igOU 6W7agPeWccVKY9D1LpfyHHQus9LGp9pUS1dlbqOHw1Fv8m9nf9R7LHCnIbrwKRai j33EurrQ/nndYowA1jNa =gIqB -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--
文章代碼(AID): #1JH4Tkhh (FB_hackers)
文章代碼(AID): #1JH4Tkhh (FB_hackers)