gitmyhub

Bash-Oneliner

★ 11k updated 5mo ago

A collection of handy Bash One-Liners and terminal tricks for data processing and Linux system maintenance.

A practical reference collection of short bash commands covering text processing, file operations, networking, and system management, gathered from real bioinformatics and cloud computing work.

Bashgrepsedawksetup: easycomplexity 1/5

This is a collection of short, practical bash commands and terminal tricks that the author gathered while working in bioinformatics and cloud computing. Bash is the command-line environment found on Linux and Mac systems, and these are the kinds of commands that let you do in one line what might otherwise take a small script. The collection covers a wide range of everyday tasks, organized into clear sections.

The sections include terminal keyboard shortcuts, working with variables and string manipulation, doing arithmetic in the shell, searching through text with grep, editing text streams with sed and awk, processing lists of files with find and xargs, writing loops and conditions, downloading files, handling dates and time, working with random data, managing system resources, querying hardware information, network commands, and data processing tasks. Each entry shows the command and, in most cases, a short inline comment explaining what it does or what the output looks like.

The author wrote the guide while primarily using Ubuntu, Amazon Linux, RedHat, CentOS, and Mac. Some commands may behave differently or not work on other systems. The guide is informal and honest about its origins: most examples came from web searches and Stack Overflow, and the author welcomes corrections and additions from anyone who has useful commands to contribute.

This is purely a reference document, not software you install. You can read it directly on GitHub or on the linked website version which has slightly nicer formatting. It is well suited to anyone who uses a Linux or Mac terminal regularly and wants a handy reference, or to beginners who are just learning what the command line can do.

The full README is longer than what was shown.

Where it fits