Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # System
- cat /etc/lsb-release ; echo $DESKTOP_SESSION ; uname -a
- # Repair, clean, update
- sudo apt update ; sudo dpkg --configure -a ; sudo apt-get install -fy ; sudo apt-get autoclean ; sudo apt-get autoremove --purge -y ; sudo apt full-upgrade -y
- # Sources
- find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; nl -ba "$1"' _ '{}' \;
- # Users
- awk -F'[/:]' '{if ($3 >= 1000 && $3 != 65534) print $1}' /etc/passwd
- # Partitions
- lsblk -o name,fstype,size,label,mountpoint
- # Space disk
- df -Th | grep -Ev "devpts|none|proc|sys|tmpfs|udev|loop"; echo ; df -Ti | grep -Ev "devpts|none|proc|sys|tmpfs|udev|loop"
- # Kernels stored
- dpkg -l | grep -Ei "linux-(g|h|i|lo|si|t)" | sort -k3 | tr -s " " | cut -d" " -s -f1,2,3 | column -s" " -t
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement