The Archives

  • 06.15.08
    Knowing when a user last logged in cmd | rafacas | (0)
    # lastlog -u rafacas Username Port From Latest rafacas pts/5 192.168.1.16 mar jun 10 13:36:46 +0200 2008 Prints the contents of the 'last logging' log file (/var/log/lastlog) for the specified user.
  • 06.11.08
    Identifying a network card cmd | rafacas | (0)
    # ethtool -p eth0 5 Makes the interface lights on a NIC (eth0) blink for 5 seconds to help identify it
  • 06.08.08
    Displaying virtual memory data cmd | rafacas | (0)
    $ vmstat 5 5 procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 1 0 0 1468896 23356 354528 0 0 101 28 70 642 4 1 94 2 0 0 0 1468888 23356 354528 ...
  • 05.13.08
    An IP Network/broadcast/etc calculator cmd | rafacas | (0)
    $ ipcalc 192.168.0.100 255.255.255.192 Address: 192.168.0.100 11000000.10101000.00000000.01 100100 Netmask: 255.255.255.192 = 26 11111111.11111111.11111111.11 000000 Wildcard: 0.0.0.63 00000000.00000000.00000000.00 111111 => Network: 192.168.0.64/26 11000000.10101000.00000000.01 000000 HostMin: 192.168.0.65 11000000.10101000.00000000.01 000001 HostMax: 192.168.0.126 11000000.10101000.00000000.01 111110 Broadcast: 192.168.0.127 11000000.10101000.00000000.01 111111 Hosts/Net: 62 ...