HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/local/bin/top10.sh
#!/usr/bin/env bash
# top10bigfiles.sh
# Usage: ./top10bigfiles.sh [PATH]
# Prints the ten largest files beneath PATH (default: current dir),
# human‑readable, sorted biggest → smallest.

TARGET="${1:-.}"

if command -v numfmt >/dev/null 2>&1; then
  # GNU coreutils present: easy byte→IEC conversion
  find "$TARGET" -type f -printf '%s\t%p\n' 2>/dev/null \
    | sort -nr \
    | head -n 10 \
    | numfmt --to=iec --field=1 --padding=7 \
    | column -t
else
  # Fallback without numfmt
  find "$TARGET" -type f -printf '%s\t%p\n' 2>/dev/null \
    | sort -nr \
    | head -n 10 \
    | awk '{
        split("B KB MB GB TB PB",u);
        s=$1; i=1;
        while (s>=1024 && i<6) {s/=1024; i++}
        size=sprintf("%.1f %s",s,u[i]);
        sub($1 FS,"");                     # remove size from $0, leave full path (handles spaces)
        printf "%-8s  %s\n", size, $0;
    }' \
    | column -t
fi