Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
home_server:home_server_setup:other_services:misc [2024-08-03 Sat wk31 09:41] – [pbcopy pbpaste] baumkphome_server:home_server_setup:other_services:misc [2025-08-10 Sun wk32 17:11] (current) – [dmesg] baumkp
Line 4: Line 4:
 =====dmesg==== =====dmesg====
 ''sudo dmesg'' lists the OS boot messages between grub and os up. ''sudo dmesg'' lists the OS boot messages between grub and os up.
 +''sudo dmesg --level=emerg,alert,crit,err,warn,notice,debug'' give a more succinct list of focus potential problem issues.
 +  *emerg - system is unusable    
 +  *alert - action must be taken immediately
 +  *crit - critical conditions
 +  *err - error conditions
 +  *warn - warning conditions   
 +  *notice - normal but significant condition
 +  *info - informational    
 +  *debug - debug-level messages
 +
 +
 =====systemd===== =====systemd=====
   *Systemctl related commands:   *Systemctl related commands:
Line 195: Line 206:
 Once you're comfortable with using grep to find simple strings as seen above, it can do far more complex tasks. These include but are not limited to: case-insensitive use, more complex patterns (including full regular expressions), exclusion (only show me lines that don't include the pattern), and much, much more. But don't worry about that until after you're familiar with simple grep uses. Once you start, it's truly hard to imagine life without grep anymore! Once you're comfortable with using grep to find simple strings as seen above, it can do far more complex tasks. These include but are not limited to: case-insensitive use, more complex patterns (including full regular expressions), exclusion (only show me lines that don't include the pattern), and much, much more. But don't worry about that until after you're familiar with simple grep uses. Once you start, it's truly hard to imagine life without grep anymore!
  
 +====netstat====
 +  *''netstat -n'' to see active internet connections
 +  *''netstat -ie'' to see kernal interface table
 +  *''netstat -u'' to see status of TCP/IP connections
 +  *''netstat -p'' to see all the active IPv4 connections
 +  *''netstat -a'' to demonstrate the stat of all sockets, TCP and UDP
 +  *''netstat -s'' to see statistical summary for each available protocol
 +  *''netstat -su'' to see statistical summary of UDP
 +  *''netstat -stu'' to see statistical summary of TCP
 +  *''netstat -r'' to kernal route table 
 =====Sed replaces strings===== =====Sed replaces strings=====
  
Line 270: Line 291:
   *''ss -a'' show all sockets (listening ornon-listening)   *''ss -a'' show all sockets (listening ornon-listening)
  
 +''sudo hwinfo -class network'' to list network heard ware adapter properties
 =====pbcopy pbpaste===== =====pbcopy pbpaste=====
 Also see [[https://wiki.kptree.net/doku.php?id=home_server:home_server_setup:other_services:bash|BASH Customisation]] Also see [[https://wiki.kptree.net/doku.php?id=home_server:home_server_setup:other_services:bash|BASH Customisation]]