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 monitor your Linux servers with Checkmk

    Find out how to set up the powerful Checkmk monitor to keep tabs on all of your networked servers.

  2. Tomi Engdahl says:

    jq is a Linux/Unix or macOS/*BSD CLI utility efficiently extracts data from JSON documents. Now we have an excellent htmlq utility written in Rust Lang. It is like jq but for HTML documents.

  3. Tomi Engdahl says:

    Did you know? You can use ‘nethogs’ that shows the bandwidth usage per *process* on #Linux.

  4. Tomi Engdahl says:

    Want to find your Linux distro name and version? Try universal method: cat /etc/os-release

    Another option for systemd based distros:

    The following may not work on all distros:
    lsb_release -a
    See for more info.

  5. Tomi Engdahl says:

    How VPN works. These days I like WireGuard very much It is like SSH only. #Linux #unix #FreeBSD

  6. Tomi Engdahl says:

    Let us see how to make, list snapshots for LXD and automatically expires them too on #Linux #container #SysAdmin

  7. Tomi Engdahl says:

    Did you know? When you exit a login Bash session/shell, you can run commands on macOS/Linux/Unix. Useful to remove bash/mysql history or run backup job so that files are backed up as soon as you exit a login shell:

    cat ~/.bash_logout

    See for more info.

  8. Tomi Engdahl says:

    Want to see a tree of processes on your #Linux and #Unix box? Try the pstree command.

  9. Tomi Engdahl says:

    It is not UNIX’s job to stop you from shooting your foot. If you so choose to do so, then it is UNIX’s job to deliver Mr. Bullet to Mr Foot in the most efficient way it knows.

  10. Tomi Engdahl says:

    PS4 Emulator for Linux Now Plays Hundreds of Games
    By Michelle Ehrhardt 13 days ago
    Just Don’t expect God of War to be one of them.

  11. Tomi Engdahl says:
    I use my Unix laptop as server and when power goes out for an extended time i get various alert on my mobile and email Poor man’s solution :P

  12. Tomi Engdahl says:

    Want to use ffmpeg to accelerate video encode and decode with an NVIDIA GPU on Linux? Try these tips about installing and usage the ffmpeg with NVIDIA GPU

  13. Tomi Engdahl says:

    {nixCraft Patreon supporters content} This guide explains how to use USBGuard to configure the Linux server or desktop dynamic policy to block, reject, or permit access to specific USB devices.

  14. Tomi Engdahl says:

    Want to stress test your CPU and Memory On a Linux, FreeBSD or Unix-like systems? Try stress-ng

  15. Tomi Engdahl says:

    xRDP – Allow multiple sessions (local and remote) for the same user – HowTo

  16. Tomi Engdahl says:

    Still have a problem checking FB or any other site due to DNS outages? Check TTL which defines how long a resolver supposed to cache the DNS query before the query expires using the dig command without visting any website as this will check your local DNS resolver typically hosted by wifi/router:
    dig +nocmd +noall +answer +ttlid A

    Check detailed explanation. #Linux #macos #Unix

  17. Tomi Engdahl says:

    {updated} how to search and remove files with one #Linux or #Unix command on fly

  18. Tomi Engdahl says:

    Microsoft releases Linux version of the Windows Sysmon tool
    Microsoft has released a Linux version of the very popular Sysmon system monitoring utility for Windows, allowing Linux administrators to monitor devices for malicious activity.

    Microsoft has released a Linux version of the very popular Sysmon system monitoring utility for Windows, allowing Linux administrators to monitor devices for malicious activity.

    For those not familiar with Sysmon (aka System Monitor), it is a Sysinternals tool that monitors a system for malicious activity and then logs any detected behavior into system log files.

    Sysmon’s versatility comes from the ability to create custom configuration files that administrators can use to monitor for specific system events that may indicate malicious activity is occurring on the system.

  19. Tomi Engdahl says:

    If you ever think about it, computers are exceedingly stupid. Even the most powerful CPU can’t do very much. However, it can do what it does very rapidly and repeatably. Computers are so fast, they can appear to do a lot of things at once, too and modern computers have multiple CPUs to further enhance their multitasking abilities. However, we often don’t write programs or shell scripts to take advantage of this. However, there’s no reason for this, as you’ll see.

    Bash Support

    It is surprisingly easy to get multiple processes running under Bash.

    Wrap Up

    It is easy to forget that you can do more than one thing at a time pretty easily. Of course, this also opens up a whole new realm of problems. If you need to protect your programs from each other, check out our earlier post about critical sections. Not everyone thinks bash is a great programming language, but it is surprisingly capable and while it might not be good for everything, it is great for some tasks.

  20. Tomi Engdahl says:

    Using GNU Profiling (gprof) With ARM Cortex-M
    Learn how to profile an embedded application on ARM Cortex-M devices using GNU gprof.

    Tutorial: Using GNU Profiling (gprof) with ARM Cortex-M

  21. Tomi Engdahl says:

    IPv6 bridge and IPv4 router (NAT) shell script for OpenWRT


Leave a Comment

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