Category Archives: Linux

Testing a TCP port with curl in Linux

Quick curl command to test a TCP port...

Posted in Linux | Tagged , , | Leave a comment

Secure wipe a disk in Linux with DD command

Here is a quick example how to secure erase a disk or a partition with the Linux DD command. In the example I am using an input file of /dev/urandom instead of /dev/random as it’s quicker to generate random data … Continue reading →...

Posted in Linux | Leave a comment

Create an ext4 File System in RedHat Linux

To create a an ext3 or ext4 file system in Linux there are a few steps involved. The below is a step by step guide how to create, format and mount an ext 4 disk in Linux. Create an ext4 … Continue reading →...

Posted in Linux | Tagged | Leave a comment

Using shred to secure erase files in Linux

I have used DD to overwrite a file with random data, shred is another alternative. This tool comes installed by defaut on most Linux distros. The only limitation is that it cannot secure erase the actual folders, this only works … Continue rea...

Posted in Linux | Leave a comment

Rescan storage command in Linux CentOS

There are many posts on how to do this, pasting my notes around it here. I just added 3 disks to my Linux CentOS vm and I needed to locate them. I knew I could do a restart and they … Continue reading →...

Posted in Linux | Tagged | Leave a comment

Common Administrative commands in RedHat 6 & 7

I’m posting a quick cheat sheet of the command line changes in RedHat or CentOS 7, full list is available here. I’m pasting my own version below as these are the commands I use most often. PS – Process List … Continue reading...

Posted in Linux | Tagged | Leave a comment

Linux – Vim file editor cheat sheet

How to navigate in a Linux file editor VI, pasting a cheat sheet. There are many more options but this is all i usually need to maneuver around. :wq Save file and quit :q! Exit without saving :set nu Display … Continue reading →...

Posted in Linux | Tagged , | Leave a comment

Secure Wipe a File with DD Linux

You may have a need to secure erase a file with the Linux DD command. When you erase a file with the rm command the pointer to the file is erased but the file still exists on the file system … Continue reading →...

Posted in Linux | Tagged , , | Leave a comment

Active Directory permissions required to join Linux and Windows Computers to a Domain

I recently ran into an issue where i needed to create a service account with bare minimum permissions to add a Windows and a Linux server to a domain. Windows was fairly easy to join it only requires the 5 … Continue reading →...

Posted in Linux, Microsoft | Tagged , , , | Leave a comment

How to tar and untar files and folders in Linux

Here is a quick cheat sheet how to compress and extract files/folders in CentOs Linux.  If you are extracting to a specific folder you have to create the folder ahead of time with mkdir /tmp/data/ or the command will not … Continue reading &r...

Posted in Linux | Tagged , , , | Leave a comment