Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. # System
  2. cat /etc/lsb-release ; echo $DESKTOP_SESSION ; uname -a
  3. # Repair, clean, update
  4. 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
  5. # Sources
  6. find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; nl -ba "$1"' _ '{}' \;
  7. # Users
  8. awk -F'[/:]' '{if ($3 >= 1000 && $3 != 65534) print $1}' /etc/passwd
  9. # Partitions
  10. lsblk -o name,fstype,size,label,mountpoint
  11. # Space disk
  12. df -Th | grep -Ev "devpts|none|proc|sys|tmpfs|udev|loop"; echo ; df -Ti | grep -Ev "devpts|none|proc|sys|tmpfs|udev|loop"
  13. # Kernels stored
  14. 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