The -d option is to get rid of the "total" line I like to add -F to show the trailing slash for directories (it will also mark symlinks with when you do a plain ls -F). We don't want to pass these through sort because they are already in the correct order, and sorting them can result in. To make things easier to manage, I came up with separate commands to output each segment of the directory listing to my liking, then assembled them together using the
0 Comments
Leave a Reply. |