Tag: linux

  • Analyze Network Traffic using TCPDump

    Analyze Network Traffic using TCPDump

    The Basic TcpDump is a command line network monitoring tool for viewing packets, in real time, as they pass through the server network interface. Specifically, it can be used to view and record packets going into and out of a network interface and can be used to conduct all sort of analysis. I use this…

  • Customize Your VIM Settings

    Customize Your VIM Settings

    Introduction VIM is a popular Linux text editor program. Users can customize VIM by creating a .vimrc file in their home directory. Then, when launching VIM, it will load any variables that were preset in this file. You’ll need to set the file permissions of the .vimrc file to rw-rw—-. A sample .vimrc file In…

  • File, Processes, & System Details in Ubuntu

    File, Processes, & System Details in Ubuntu

    Introduction Often it is necessary to get the OS version, hardware statistics, running process, and details about the file system. You may need to monitor CPU percent level or check the remaining space on a hard drive. In any case, you can use the below commands. What is OS Linux version Get the installed memory…

  • Understanding User Crontabs

    Understanding User Crontabs

    Introduction Crontab stand for CRON table and it is the primary task scheduler for Linux. The CRON daemon runs every minute and checks each user’s crontab (and the system crontab) for scheduled jobs. CRON will auto start on reboot and record to syslog natively when a job runs. CRON will send “standard out” and “errors”…

  • Backup Files to S3 using Bash

    Backup Files to S3 using Bash

    Description A bash script will be used to copy a file from a Linux server to an S3 bucket. Next, it will run a checksum on the results to verify the upload. Finally, it will output the local file size, the local etag , the aws file size, and the aws etag value for easy…

  • Validate the Integrity of a File Backup using Ansible

    Validate the Integrity of a File Backup using Ansible

    Introduction Running nightly file backups is a common task for administrators. How do we know the file was copied successfully with no errors? In this post, we will set up an ansible script and it will run a file integrity check using MD5 on both the source and the destination files to verify it was…