×


Category: Docker


w Command in Linux - Explained with Examples

This article covers all you need to know about the w command in Linux. In fact, The w command is a built-in tool that allows administrators to view information about users that are currently logged in. This includes their username, where they are logged in from, and what they are currently doing.


w Command in Linux Syntax

The Linux w command is a system utility that displays information about currently logged-in users. It uses the following syntax:

$ w [options] [username]

Where:

  • [options]: Options that change the way the command behaves.
  • [username]: Entering the name of a specific user only shows information about that particular user in the output.


The w command uses the following options:

  • -h, --no-header Print output without the header.
  • -u, --no-current Ignores username when calculating current process times and load.
  • -s, --short Print output in the short format.
  • -f, --from Toggle printing the FROM (remote hostname) field.
  • --help Display help text.
  • -i, --ip-addr Replace the hostname in the FROM field with the IP address.
  • -V, --version Display current command version.
  • -o, --old-style Print old-style output (blank space for idle times shorter than 1 minute).


Generating Random Numbers via Linux Terminal

This article covers how to generate random numbers with a small command on the terminal or by creating the script.


Copy Multiple Files Using cp command in Linux - Complete guide ?

This article covers how to copy multiple files using the cp command in Linux. In fact, cp is the command entered in a Unix and Linux shell to copy a file from one place to another, possibly on a different filesystem. The original file remains unchanged, and the new file may have the same or a different name.


Configure a Custom SSH Banner - Step by step guide ?

This article covers How to Set a Custom SSH Warning Banner and MOTD in Linux. In fact, SSH banner warnings are necessary when companies or organizations want to display a stern warning to discourage unauthorized parties from accessing a server.


How to Configure Linux Mint 20 Automatic Updates Through GUI ?

This article covers the process of configuring the automatic updates of a Linux Mint 20 system.


htop Tool in Linux - htop command explained with examples

This article covers how to use the htop tool in Linux. In fact, the htop command is an interactive process viewer for Linux / Unix systems. It is a text-mode application and requires the ncurses library.


How to Install and Use Htop in Linux System ?

To install Htop on a Linux operating system distribution of your choice, reference one of the following installation commands:

$ sudo apt-get install htop     [On Debian, Ubuntu and Mint]
$ sudo yum install htop         [On RHEL/CentOS/Fedora and Rocky Linux/AlmaLinux]
$ sudo emerge sys-process/htop  [On Gentoo Linux]
$ sudo pacman -S htop           [On Arch Linux]
$ sudo zypper install htop      [On OpenSUSE]