List files, filter by size, print only size+space+path, and sort by size only, descending order: size=10485760 tar tvf some.tar.gz \ | awk -v size=”$size” ‘$3 >= size {print $3″ “$6}’ \ | sort -t’ ‘ -k1,1nr
Linux Support for SSDs
fstrim is used on a mounted filesystem to discard (or “trim”) blocks which are not in use by the filesystem. This is useful for solid- state drives (SSDs) and thinly-provisioned storage. Running fstrim frequently, or even using mount -o discard, might negatively affect the lifetime of poor-quality SSD devices. For most desktop and server systems […]
Linux arp-scan
The ARP Scan Tool is a very fast ARP packet scanner that shows every active IPv4 device on your subnet. Since ARP is non-routable, this type of scanner only works on the local LAN (local subnet or network segment). The ARP Scan Tool shows all active devices even if they have firewalls. Devices cannot hide […]
Resize, Modify & Convert Images from the Linux Terminal
ImageMagick is a set of command-line utilities for modifying images. ImageMagick can perform modifications of an image from a terminal, perform batch processing of multiple images, or be used in a bash script. Converting Between Formats The following command takes a PNG file in the current directory and creates a JPEG file from it: convert […]