Skip to content

Instantly share code, notes, and snippets.

@Nircek
Last active December 27, 2021 13:07
Show Gist options
  • Select an option

  • Save Nircek/acb62cdebd3b6029e160551dfc636c52 to your computer and use it in GitHub Desktop.

Select an option

Save Nircek/acb62cdebd3b6029e160551dfc636c52 to your computer and use it in GitHub Desktop.
get all info about debian system
# debian-like systems (apt installed)
sudo apt install inxi finger
clear
((cat /proc/cpuinfo;echo;for user in $(cat /etc/passwd | cut -f1 -d":");do id $user;finger $user;done;echo "Services:$(echo;systemctl --type=service --all;echo;service --status-all;echo)w:$(echo;w;echo)who:$(echo;who -a;echo;)last:$(echo;last;echo)";inxi -pildfForumxxxv8c0tmc||inxi -pildfForumxxxv 7 -c 0 -tmc;echo "$(dpkg -l | grep -c '^ii') packages:$(echo;dpkg --list)";zgrep 'Start-Date:\|Commandline: apt\|End-Date:' /var/log/apt/history.log /var/log/apt/history.log.*.gz;) 2>/tmp/debug-log;echo "stderr:";cat /tmp/debug-log;rm /tmp/debug-log)
unset HISTFILE
logout
@Nircek
Copy link
Copy Markdown
Author

Nircek commented Dec 27, 2021

# for arch-like
sudo pacman -Syu inxi netkit-bsd-finger util-linux
((cat /proc/cpuinfo;echo;for user in $(cat /etc/passwd | cut -f1 -d":");do id $user;pinky $user;done;echo "Services:$(echo;systemctl --type=service --all;echo;)w:$(echo;w;echo)who:$(echo;who -a;echo;)last:$(echo;last;echo)";inxi -pildfForumxxxv8c0tmc||inxi -pildfForumxxxv 7 -c 0 -tmc;echo "$(pacman -Q | wc -l) packages:$(echo;pacman -Q)";cat /var/log/pacman.log; ) 2>/tmp/debug-log;echo "stderr:";cat /tmp/debug-log;rm /tmp/debug-log)
unset HISTFILE
logout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment