ls

Linux CLI - Listing media files across multiple drives (KODI)

  • 30 March 2017
  • charm
Screen capture of the results of our ls command

Our KODI entertainment system currently houses 3 hard drives with media spread across all 3 drives. Two issues have arisen from having media spread across three drives. First, it's hard to get a sense of all the media, despite the fact the media is organized into directories with names like Bluray_TV (for Bluray Television Shows we've bought). Second, it's a bit more difficult to back up. The second problem is solved by buying larger drives: 3 x 6TB drives are on my list. I've always had good luck with Seagate drives (I might be charmed). The first problem is solvable using ls, some switches, and piping that to sort and uniq.