01JS↗
File Size Formatter
Convert bytes to human-readable file sizes
function formatFileSize(bytes, decimals = 2) {
if (bytes === 0) return '0 Bytes';
const k = 1024;#files#size
easy3 useful things
Convert bytes to human-readable file sizes
function formatFileSize(bytes, decimals = 2) {
if (bytes === 0) return '0 Bytes';
const k = 1024;Powerful file synchronization and backup using rsync with various options.
# Basic sync (local)
rsync -av source/ destination/
# Sync with progressPowerful find command usage for searching files with complex criteria and actions.
# Basic find by name
find /path -name "filename.txt"
find . -iname "*.jpg" # Case insensitive