Old_posts

Deprecated linux commands

What are deprecated?

  • ifconfig
  • netstats
  • route

What are the better options?

  • ip
  • ss
  • lsof -iTCP

Basic usages

Command ip

Show / manipulate routing, network devices, interfaces and tunnels

  • Show ip adresses: ip address or ip a
  • Show network devices: ip link or ip l
  • Show routing table entry: ip route or …

Get started with sed

What is sed?

sed is a “stream editor for filtering and transforming text”. Here is a very detailed tutorial.

Basic usages

Use “s” for substitution

Basic syntax:

echo "Sunday Monday" | sed 's/day/night/'
Sunnight Monday

Note that only the first occurrence of …

How to boot from …

Today I tried to fix an old issue with an old laptop having dual boot - windows / ubuntu. This issue occurred one day out of nowhere (someone from forums said it was caused by a windows update).

While the windows system still boots, the laptop cannot boot into ubuntu and always gets stuck at a grub …