Large file split and join in linux Rumi, July 19, 2021 Let’s assume we have a large file of 102 GB and named as “vzdump-lxc-103-2021_07_19-12_05_06.tar.lzo”. We’d like to split this large file into 10GB of partial file. Let’s apply the split command as below- split -b 102400M vzdump-lxc-103-2021_07_19-12_05_06.tar.lzo repo. Wait for a while, the execution continues, and once over, you’ll find 11 split files altogether- root@ktlhost4:/mnt/pve/nfs-1/dump# ls -lah total 203G drwxr-xr-x 2 root root 4.0K Jul 19 15:04 . drwxr-xr-x 7 root root 4.0K Jul 14 19:39 .. -rw-r--r-- 1 root root 10G Jul 19 14:53 repo.aa -rw-r--r-- 1 root root 10G Jul 19 14:54 repo.ab -rw-r--r-- 1 root root 10G Jul 19 14:55 repo.ac -rw-r--r-- 1 root root 10G Jul 19 14:56 repo.ad -rw-r--r-- 1 root root 10G Jul 19 14:58 repo.ae -rw-r--r-- 1 root root 10G Jul 19 14:59 repo.af -rw-r--r-- 1 root root 10G Jul 19 15:00 repo.ag -rw-r--r-- 1 root root 10G Jul 19 15:01 repo.ah -rw-r--r-- 1 root root 10G Jul 19 15:03 repo.ai -rw-r--r-- 1 root root 10G Jul 19 15:04 repo.aj -rw-r--r-- 1 root root 1.3G Jul 19 15:04 repo.ak -rw-r--r-- 1 root root 102G Jul 19 13:23 vzdump-lxc-103-2021_07_19-12_05_06.tar.lzo Now it’s time join the split files, so here it goes- cat repo.?? > vzdump-lxc-103-2021_07_19-12_05_06.tar.lzo Your slit files are not joined in a single file again. Related Administrations Configurations (Linux) JointSplit
Tuning Nginx for Maximum Performance May 13, 2017May 13, 2017 Worker_processes Make sure you use the correct amount of worker_processes in your /etc/nginx/nginx.conf. This should be equal to the amount of CPU cores in the output of cat /proc/cpuinfo | grep processor root@server1:~# cat /proc/cpuinfo | grep processor processor : 0 processor : 1 processor : 2 processor : 3… Read More
Enable VNC viewer for Proxmox 2.x/3.x with tightvnc December 10, 2017 Configure Proxmox host for TLS connections: This configures the host to accept VNC connections. aptitude install openbsd-inetd Run this to get your KVM id’s : qm list root@homenet-home10 /etc # qm list VMID NAME STATUS MEM(MB) BOOTDISK(GB) PID 101 freenas stopped 1024 32.00 0 102 debpbx running 512 0.00 573304 105… Read More
Installing Squish November 9, 2008November 9, 2008 Well, install squint is quite simple! But installing squish is quite tricky- the document provided is not sufficient to cover few steps. I’ll try to summerize it (I’ve tested it on FC-5 distro)- Step -1 Make backup of your squid.conf for in case things go wrong. Install perl GD module…. Read More