To mount a USB under the linux shell (USB should be in FAT32 and it should the first partition as FAT32)

#tail -f /var/log/messages-2014-10-23 (to see which directory it is read as e.g. /dev/sdb1 , once plugged in) #cat /proc/partitions (to see which /dev/ directory it is plugged into) or #fdisk -l #mkdir /tmp/usb (create a mount point) #mount /dev/sdb1 /tmp/usb #cp /var/archive/backup123. /tmp/usb #unmount /tmp/usb

System information commands

#vmstat (summary information for system load and usage, but does not show individual processes) #ps aux (display all processes running on the Linux system)(to search for specific processes or list them all) #ps aux | grep auth (all the processes that have auth in them) #ps auxf | sort -nr -k 4 | head -10Continue reading “System information commands”

Speed test (speedtest) / slow speed issue

Install iperf client on windows from: https://iperf.fr/ or Ubuntu using: sudo apt-get install iperf Try the following from the client machines inside the network and/or from the Smoothwall: (using speedtest sites through the Smoothwall are not recommended) iperf -c iperf.securityinspection.com iperf -c iperf.saratov.ertelecom.ru iperf -c st2.nn.ertelecom.ru iperf -c iperf.ips.versatel.de iperf -c iperf.testdebit.info iperf -c iperf.cds.comContinue reading “Speed test (speedtest) / slow speed issue”

To see live traffic on an interface especially external interface (updates every second)

watch -n 1 /sbin/ifconfig ethC To check the latest NIC drivers in the database for the Smoothwall’s linux kernel #lspci -nnn (to check the ethernet controllers and the hardware detected by smoothwall)(To check the company ID and the unique hardware ID i.e. PCI-ID) (to check the ethernet controllers and the hardware detected by smoothwall) orContinue reading “To see live traffic on an interface especially external interface (updates every second)”

CPU usage Linux scripts and commands

Script to run top command after every 5 minutes CPU utilization: #!/bin/sh top -b -n 1 | head -17 >> /var/log/logging.txt echo “=========” >> /var/log/logging.txt To show CPU and process information (press q to quit): #top (resource usage and running processes) (uptime and the load average) (CPU usage: us for users, sy for system andContinue reading “CPU usage Linux scripts and commands”