Category

Linux

22 articles in this category

Tar commands

November 12, 2022 2 min read

To create an archive using tar, use a command like this, which bundles all the files in the current directory that end with .txt into the alltxt.tar file:…

Tunnel YUM traffic through an SSH proxy connection

November 12, 2022 1 min read

My work environment has heavily restricted access to the outside from any of our machines.  I am often spinning up new Linux machines for testing purposes and getting…

Creating an SSH tunnel for proxy connections

November 12, 2022 2 min read

Often it is helpful to tunnel certain traffic through an SSH tunnel. If you are on a public wifi connection where you may fear someone else intercepting your…

VIM – Enable color syntax

November 12, 2022 1 min read

It may be easier to edit html or other code by enabling color syntax within VIM. You can do this for individual users by creating a .vimrc file…

Re-run boot loader

November 12, 2022 1 min read

Often when updating my Ubuntu systems, I am presented with the following after running apt-get Generating grub configuration file ... Found linux image: /boot/vmlinuz-3.13.0-77-generic Found initrd image: /boot/initrd.img-3.13.0-77-generic…

Exporting and Importing MariaDB/MySQL Databases

November 12, 2022 1 min read

To export a database use the following command: mysqldump --add-drop-table -u username -p dbname > dbname.sql NOTE: Omit the –add-drop-table argument if you plan to merge this backup with an…

Show all available versions of packages from YUM

November 12, 2022 1 min read

Sometimes you may wish to see not only the version of a package you currently have installed but also the versions that are available for installation.  Using following…

Properly Closing a Frozen SSH Session

November 12, 2022 1 min read

Remote SSH sessions will often freeze after a period of inactivity.  Sure you can simply close the terminal but a better option is to properly disconnect from a…

Administrating Linux Machines Through Active Directory

November 12, 2022 4 min read

In a mixed Windows-AD Linux environment, it is beneficial to maintain user accounts for both platforms through Active Directory.  Adding Windows machines to Active Directory is a straightforward…

Remove Old Kernels on Red Hat

November 12, 2022 1 min read

Keeping a few Linux kernels installed is not a bad idea.  If you install a new kernel and for some reason it breaks something else you may have…