# 5 Useful Linux Commands Every Sysadmin Should Use

DevFeed: [5 Useful Linux Commands Every Sysadmin Should Use](<https://devfeed.tech/articles/5-useful-linux-commands-every-sysadmin-should-use-105921.md>)

Original publisher: [Read original article](<https://www.tecmint.com/mkdir-tar-and-kill-commands-in-linux/>)

Author: Avishek

Published: 2026-10-29T05:00:15Z

Content type: tutorial

Language: en

Sources: [Tecmint: Linux Howtos, Tutorials & Guides](<https://devfeed.tech/sources/tecmint-linux-howtos-tutorials-guides.md>)

Topics: [Linux](<https://devfeed.tech/topics/linux.md>), [Shell](<https://devfeed.tech/topics/shell.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [systemd](<https://devfeed.tech/topics/systemd.md>), [dnf](<https://devfeed.tech/topics/dnf.md>)

Tags: [commands](<https://devfeed.tech/tags/commands.md>), [kill-commands](<https://devfeed.tech/tags/kill-commands.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-commands](<https://devfeed.tech/tags/linux-commands.md>), [linux-hacks](<https://devfeed.tech/tags/linux-hacks.md>), [linux-tips](<https://devfeed.tech/tags/linux-tips.md>), [mkdir-commands](<https://devfeed.tech/tags/mkdir-commands.md>), [sysadmin](<https://devfeed.tech/tags/sysadmin.md>), [tar-commands](<https://devfeed.tech/tags/tar-commands.md>)

## AI overview

The guide presents five ways to shorten routine Linux administration tasks: combine `mkdir -p` with Bash brace expansion to create nested directory trees; use heredocs to write files, quoting the delimiter to preserve literal variables and `sudo tee` for root-owned destinations; extract archives into an existing target directory with `tar -C`, optionally stripping a top-level path component; use `pgrep` to preview process matches and `pkill` to signal selected processes; and use `pidwait` to wait for identified processes to exit. It distinguishes Bash features from utility options, notes brace expansion requires Bash, and warns that broad `pkill -f` patterns can affect unintended processes. For systemd-managed services, it recommends `systemctl stop`. `pidwait` availability depends on procps-ng packaging, and it returns immediately if no match exists when started; a polling loop is offered as a fallback.

## Source excerpt

The post 5 Useful Linux Commands Every Sysadmin Should Use first appeared on Tecmint: Linux Howtos, Tutorials & Guides . Building a directory structure one mkdir at a time or hunting for PIDs with ps and grep wastes time on The post 5 Useful Linux Commands Every Sysadmin Should Use first appeared on Tecmint: Linux Howtos, Tutorials & Guides.