51111111111Rating 5.00 (1 Vote)
51111111111Rating 5.00 (1 Vote)
I have many vm quests in my KVM servers. Today I inventory my VM from migate to other server and I need to view a list of virtual machine disks and their location, you can quiclky see by using bash:
for i in $(virsh list | awk '{print $2}'); do echo -e "$i\n$(virsh dumpxml $i | grep file=)"; done
51111111111Rating 5.00 (1 Vote)
Setup and change timezone in Linux very simple. You can see current timezone:
ls -l /etc/localtime
And current date:
Also you can see exist timezones:
timedatectl list-timezones
And grep if you need:
timedatectl list-timezones | grep Amsterdam
41111111111Rating 4.00 (1 Vote)
After install Fedora, you can see new names for network adapters, example - enp2s0 or wlp3s0u and etc... You can restore old names for network adapters in Fedora / CentOS linux system very simple, for example - eth0 or wlan0...
You need to change grub config:
nano /etc/default/grub
Find string GRUB_CMDLINE_LINUX and add several parameters net.ifnames=0 biosdevname=0:
GRUB_CMDLINE_LINUX="rhgb quiet net.ifnames=0 biosdevname=0"
Save and renew boot parameters:
grub2-mkconfig -o /boot/grub2/grub.cf
51111111111Rating 5.00 (1 Vote)
Bash aliase very useful, I create external file in home folder ~/.bash_aliases and save all alises in this file. For example, create new file in ~/:
nano ~/.bash_aliases
Add new alias in the file:
alias hn="hostname"

We have 278 guests and no members online