Tar commands

November 12, 2022 Linux

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:…

Show user Library directory on a Mac

November 12, 2022 Macintosh

Mac OS X defaults to hiding the users Library directory. No doubt, this was changed to keep novices from deleting necessary system files. Those that wish may show…

VIM – Enable color syntax

November 12, 2022 Linux

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 Linux

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 Linux

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…

Properly Closing a Frozen SSH Session

November 12, 2022 Linux

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…