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: tar cvf alltxt.tar *.txt Here’s a second example, which creates a tar file named images.tar containing all the files from the images directory (and any of its ..
Category : Linux
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 temporary firewall access to a specific IP is a process I do not enjoy. As a work around, I have tunneled my YUM updates and Repos through ..
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 email or web traffic. Or in a work environment which may block access to a site you must access through your web browser. With an SSH tunnel, ..
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 within the root of their home directory and adding the following. syntax on This can also be accomplished system wide by editing the /etc/vim/vimrc file and uncommenting ..
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 Found memtest86+ image: /memtest86+.elf Found memtest86+ image: /memtest86+.bin done The link /vmlinuz.old is a damaged link Removing symbolic link vmlinuz.old you may need to re-run your boot ..
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 existing database when you import it. This option means the backup will totally replace the old database when it is imported. Import the database by executing the ..
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 command, you can find out. yum –showduplicates list package | expand And here is the output you would expect using PHP as the example. [jhudgins@www ~]$ sudo ..
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 frozen shell. Doing so is simple. Press ENTER or RETURN Enter a ~ Enter a . That should be all that is necessary..
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 process but Linux is more of a challenge. For this reason, many organizations maintain separate authentication for Linux and Windows users. Though not straightforward, adding Linux, in ..
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 installed or it corrupts itself, having another kernel on hand to revert to can be a huge help. There is a simple way to uninstall unused and ..