1111111111Rating 0.00 (0 Votes)
1111111111Rating 0.00 (0 Votes)
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
1111111111Rating 0.00 (0 Votes)
Setup and change timezone in Linux very simple. You can see current timezone:
ls -l /etc/localtime
And current date:
date
Also you can see exist timezones:
timedatectl list-timezones
And grep if you need:
timedatectl list-timezones | grep Amsterdam
1111111111Rating 0.00 (0 Votes)
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
1111111111Rating 0.00 (0 Votes)
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"
Вверх
Вниз