information_programs
Table of Contents
If you want to send us your comments, please do so. Thanks
More on comments
CLI information programs
Network
USB
Commands which can show info about USB devices
Command | Description | Example | Output | Remark |
---|---|---|---|---|
bonnie++ | Benchmark | Writes huge files, maybe multiple times, to disk | ||
dmseg | Boot info | |||
lsblk | list block devices | lsblk -a -f -l -o NAME,MODEL,TRAN | grep usb | sdd USB_Flash_Disk usb | Has a RM (ReMovable) column. lsblk -S | grep usb shows, of only usb devices, NAME (device) HCTL TYPE (disk type) VENDOR (interface type?) MODEL (name) REV (revision) TRAN (bus type) |
lshw | Infomation about the computer | Use lshw -short -C disk to show all block devices with their size in the name | ||
lsusb | Show info about all usb devices | No link made to a block device | ||
usb-devices | No link made to a block device |
Other
Command | Description | Example | Output | Remark |
---|---|---|---|---|
arch | Print system architecture | arch | x86_64 | |
armbianmonitor | Has several monitor and upload options | armbianmonitor -m Output: CPU speed, load, temperature and several others | Warning: the -u option uploads dmesg info to sprunge.us . Probably does the -d option something similar | This command has privacy implications! |
atop | Monitor for system resources and process activity | |||
atsar | system activity report | |||
blkid | Show info about all drives | |||
dmidecode | Infomation about the computer | |||
dstat | Versatile tool for generating system resource statistics | |||
dpkg-architecture | cpu & OS info | dpkg-architecture | 18 lines of info | |
echo $HOSTTYPE | Print system architecture | echo $HOSTTYPE | x86_64 | |
free | Show memory and swap information and usage | |||
htop | Show CPU and memory usage | |||
id | Show user id | id -u user | ||
iftop | Display bandwidth usage on an interface by host | |||
iotop | Simple, top like, I/O monitor showing harddisk read and write throughput | iotop --only --accumulated --user=user | ||
ips | Intelligent process status | Like ps | ||
itop | Simple, top like, interrupt load monitor | |||
journalctl | Query the systemd journal | |||
linux-cpupower | Package containing cpupower (Shows and sets processor power related values)), turbostat (Report processor frequency and idle statistics) and x86_energy_pref_policy (x86_energy_pref_policy is for some Intel processors only) | |||
lnav | ncurses log file viewer | Nice | ||
logcheck | Spot problems and security violations in logfiles | sudo -u logcheck logcheck -o -t | Sends the output standard to e-mail. The example command did not work for us | |
logwatch | System log analyzer and reporter | Sends the output standard to e-mail | ||
lsblk | Show all drives in a tree | |||
lshw | Infomation about the computer | |||
mountpoint | See if a directory or file is a mountpoint | |||
mpstat | Report processors related statistics | mpstat --dec=1 -P ALL. mpstat 300 500 > ~/mpstat.log & (log every 5 minutes, 500 times to a logfile, do it in the background) | ||
ncdu | NCurses Disk Usage | |||
nmon | Systems administrator, tuner, benchmark tool | |||
powertop | Power consumption and power management diagnosis tool | |||
ps | Report a snapshot of the current processes | ps -p <pid> -o %cpu,%mem,cmd | ||
read-edid | Information gathering tool for VESA PnP monitors | |||
report-hw | Report system hardware info | Incorporates info from other commands | ||
sar | Collect, report, or save system activity information | We got: “Cannot open /var/log/sysstat/sa25: No such file or directory. Please check if data collecting is enabled” To be solved | ||
service | Run a System V init script | service --status-all | [ + ]: running, [ - ]: stopped, [ ? ] no status command | |
smartctl | Show S.M.A.R.T information of a harddisk drive | smatrtctl -a /dev/sda | A lot of data | You do not need to install all the other pacakges shown in aptitude. Unselect them and just install smartmontools if you want smartctl |
stat | Display file or file system status | stat --format=%A somefile.txt | -rw-r--r-- | |
s2u | Monitors messages through D-BUS taking appropraite actions | |||
top | Show CPU and memory usage | See below this table | ||
trend | General-purpose efficient trend graph | |||
uname | Print system information | uname -r | 3.2.0-4-amd64 | Kernelversion and others |
vmstat | Reports information about processes, memory, paging, block IO, traps, disks and cpu activity | |||
w | ||||
wait | Wait for job completion and return exit status | wait --help for more info. No man page nor whatis info | ||
watch | Watch the output of a command | watch --color --differences --interval 5 “df -h | grep sda1” | Watch the disk usage of /dev/sda1 with an interval of 5 secondes and highlight the differences with the previous result | |
whatis | ||||
whereis | ||||
which | ||||
who | ||||
xdpyinfo | Show screeninfo | |||
xfce4-about | Show the version of xfce | |||
xrandr | Show screeninfo | |||
CPU | ||||
cat /proc/cpuinfo | ||||
lscpu | ||||
cpuid | Does not seem to show the CPUID. Shows a lot of other information | |||
dmidecode --type processor | ||||
lshw -C CPU | ||||
lscpu | ||||
hardinfo |
Examples
echo $(date;uptime;echo "Temperatuur: ";sensors | grep "CPUTIN" | tr --squeeze-repeats [:space:] | cut -d " " -f 2 | cut -d \+ -f 2 | cut -d \. -f 1; echo " °C")
top:
load=$(top -b -n1 | grep "Cpu(s)" | tr ',' '.' | awk '{printf "%0.1f", $2 + $4}');echo "Load: $load"
Get your IP address
alias ipaddress='wget --quiet --output-document=/tmp/ipaddress.html https://myip.nl && unhtml /tmp/ipaddress.html | grep "IP Address" | sed "s/)/) /"'
Get the RAM size in bytes
Use one of:
free --bytes | grep Mem | tr -s " " | cut -d " " -f 2 echo $(bc <<< $(vmstat --stats | grep "total memory" | tr -s " " | cut -d " " -f 2)*1000) echo $(bc <<< $(cat /proc/meminfo | grep MemTotal | tr -s " " | cut -d " " -f 2)*1000)
Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy
RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.
information_programs.txt · Last modified: 30-12-2023 21:43 by wim