Thursday, February 18, 2021

show repositories on Ubuntu (and others)

 
 
debian
grep ^[^#] /etc/apt/sources.list /etc/apt/sources.list.d/*
 
 
Fix GPG signatures
sudo apt-key list  | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | xargs -n1 sudo apt-key adv --keyserver keys.gnupg.net --recv-keys
 
 
general apt structure is in:
/etc/apt
 
--30--

 

Tuesday, February 16, 2021

ipconfig replaced by ip

 

ipconfig vs ip

show
ipconfig  ip addr show <interface>
                ip a
 
add
ifconfig eth0 add 192.168.80.174                ip a add 192.168.80.174 dev eth0
ifconfig eth0 add 192.168.80.174                ip a add 192.168.80.174 dev eth0
ifconfig eth0 del 192.168.80.174                 ip a del 192.168.80.174 dev eth0
ifconfig eth0 hw ether 00:0c:29:33:4e:aa    ip link set dev eth0 address 00:0c:29:33:4e:aa

Deprecated command

Replacement command(s)

arp ip n (ip neighbor)
ifconfig ip a (ip addr), ip link, ip -s (ip -stats)
iptunnel ip tunnel
iwconfig iw
nameif ip link, ifrename
netstat ss, ip route (for netstat-r), ip -s link (for netstat -i), ip maddr (for netstat-g)
route ip r (ip route)

 

--30--