How to Tar / Untar From the Command Line Rumi, December 10, 2009 A simple guide for those who are as helpless on the Linux command line. When managing websites, you’ll often need to compact, move and extract a large number of files, here’s how to do it on your Linux box. Initial Steps First SSH into your web server and move to the directory of the files you wish to tar up, since tarring an absolute path will save the folder structure as well which is bad (ie: /home/yoursite/public_html/backupthis/ will save the folders home -> yoursite -> public_html -> backupthis). You can get to the folder you need to by typing: cd /path/to/your/stuff Creating a Tar Now that we’re at the directory we want to tar, or the sub-directory, you can do one of two commands depending on what you need. If you want to save every file / folder in your current location into a file called backup.tar. tar -cvf backup.tar * If you want to save a tar named backup.tar with the folder “somefolder” and its contents. tar -cvf backup.tar somefolder/ You can test/view your tars with the following command: tar -tvf backup.tar Extracting the Tar When you need to extract that tar, the following command will be suffice: tar -xvf backup.tar Related Configurations (Linux)
Assign range of IP addresses to an interface October 2, 2018 For example, you need to assign the IP range 192.168.10.6 – 192.168.10.100 to your eth0 interface. Create a range file in /etc/sysconfig/network-scripts/ifcfg-eth0-range0 as below DEVICE=eth0 BOOTPROTO=static IPADDR_START=192.168.10.6 IPADDR_END=192.168.10.100 NETMASK=255.255.255.0 CLONENUM_START=1 ONBOOT=yes TYPE=Ethernet CLONENUM_START is the number that will be assigned to the first IP alias interface (eth0:1 in this example)…. Read More
Creating A Linux Firewall using webmin January 12, 2009January 12, 2009 Here is what I need to do- I want to block ping on eth0- my external link I want to open everything else on eth1- internal link Let’s assume eth0- has public IP and eth1 has private IP I want to allow SSH, auth, httpd and certain protocols to eth0…. Read More
Install Openfiler from USB April 24, 2013 The problem we have now is our storage server has no optical drive and we do not have any external optical drive available here in office. Alternatively, we can use USB stick drive and make sure our server are able to boot from USB. Server: DELL PowerEdge R510 OS version:… Read More