How to Copy Directories and Files on a Linux Server
Use the command cp on the command line on the Linux server to
– Copy a directory.
– Copy a file.
See the most commonly used arguments.
How to Get Country From IP Address in PHP on Ubuntu 22.04
Get the country name and country code from the visitor’s IP address in PHP with the GeoIP2 library:
– See how to install and configure the GeoIP2 library on Ubuntu 22.04.
– See an example of code for getting the country name and country code.
How to Copy Files and Directories Between Linux Servers
To copy a file or folder between Linux servers directly:
1. Go to the destination directory.
2. Use the command scp.
How to Keep a Bash Script Running After the Putty Terminal Gets Closed
To keep a bash command or script running after the Putty terminal gets closed:
1. Use the command screen.
2. Detach the session by pressing Ctrl+A, then D.
3. Close Putty.
4. Reconnect to the Linux server.
5. Check the command or script is still running.
Or use the commands nohup + disown.
How to Install Ubuntu 22.04 Virtual Machine on KVM
Get all parameters necessary for installation from the Ubuntu image file. Install a virtual machine with Ubuntu 22.04 on KVM with the command virt-install. Configure networking.
How to Install KVM on Ubuntu 22.04 Server
nstall KVM packages on an Ubuntu 22.04 Server. Configure network Interfaces. Also, you can install KVM on a VirtualBox virtual machine if you’d like to try it first.
[VirtualBox] Configure an Ubuntu 22.04 / 20.04 Virtual Machine for Web Development (Complete Guide)
The complete guide on creating a VirtualBox VM for web development. See how to
– Create Ubuntu 22.04 / 20.04 VirtualBox virtual machines.
– Configure the network on a bridged adapter or 2 adapters: NAT + host-only.
– Install Guest Additions.
– Share folders between the host machine and the virtual machine.
– Optimize performance.