Linux / Unix Command Examples

Here are links to some useful Linux tips:

Awesome. VIM “for people who don’t want to use it , but have to…”. Or see my page

sudo is the right choice for granting admin rights on the CentOS Linux 8 server. Learn how to create a new user and grant her admin rights


  1. Tomi Engdahl says:

    How to Impose High CPU Load and Stress Test on #Linux via @tecmint

  2. Tomi Engdahl says:

    Sometimes, it pays to read the man pages of commands you use often. There might be a gem hidden in there that you don’t know about. Case in point: I’ve used curl (technically, cURL, but I’m going to stick with curl) many times to grab data from some website or otherwise make a web request. But what happens if you want to do the same thing from a C program? Well, you could be lazy and just spawn a copy of curl. But it turns out curl has a trick up its sleeve that can help you. If only I’d read the man page sooner!

  3. Tomi Engdahl says:

    Emulating wide area network delays with Linux

    NetEm (already enabled in the Linux kernel) provides Network Emulation functionality for testing protocols by emulating the properties of wide area networks.

    To simulate an additional latency of 80 ms, just type sudo tc qdisc add dev eth0 root netem delay 80ms
    It just adds a fixed amount of delay to all packets going out of the local Ethernet.

    To stop the additional latency, just type sudo tc qdisc change dev eth0 root netem delay 0ms

    Lines to add to the file /etc/rc.local before exit 0, to add 40ms of latency :

    # Add +40ms latency
    tc qdisc add dev eth0 root netem delay 40ms

    Note: If your network interface is not eth0, replace eth0 with the name of your network interface


  4. Tomi Engdahl says:

    say goodbye to the sudo. a sudo replacement called run0 that will be part of the upcoming systemd 256 release. #linux


    So, after they forgot what are nettols for, they forgot what is sudo for. So started inventing things again.

    I still use ifconfig instead of ip
    I’m sure I’ll be using sudo for quite some time yet..

  5. Tomi Engdahl says:

    It may be a very long time since some readers have installed a copy of Windows, but it appears at one point during the installation there’s a step that asks you which OS version you would like to install. Normally this is populated by whichever Windows flavours come on the install medium, but [Naman Sood] has other ideas. How about a Windows installer with Alpine Linux as one of the choices? Sounds good to us.

    How to install Linux from a Windows installer
    I’m not sure why you would want to do this. Presumably for the same reason as me? I also don’t know what that was.

  6. Tomi Engdahl says:

    This page provides instructions on installing and enabling Bash auto-completion on Debian Linux versions 10, 11, and 12 to increase productivity by writing custom bash code #Debian #Linux


Leave a Comment

Your email address will not be published. Required fields are marked *