Sort and deduplicate
Count and rank duplicate lines in a file
sort file.txt | uniq -c | sort -rn | head -20
More linux commands
-
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,UUIDTree of disks, partitions, loop devices with filesystem info
-
blkidPrint UUID, LABEL, and FSTYPE for all block devices
-
mount -t ext4 /dev/sdb1 /mnt/dataMount ext4 partition to /mnt/data
-
findmnt --realList all real (non-virtual) mounted filesystems in a tree
-
mount -o remount,rw /Remount the root filesystem as read-write (e.g. after rescue boot)