+12
Daily
+52
Weekly
162,764
stars
14,930
forks
2,765
watchers
611
prs
264
issues
0
releases
README
🌍 Čeština ∙ Deutsch ∙ Ελληνικά ∙ English ∙ Español ∙ Français ∙ Indonesia ∙ Italiano ∙ 日本語 ∙ 한국어 ∙ polski ∙ Português ∙ Română ∙ Русский ∙ Slovenščina ∙ Українська ∙ 简体中文 ∙ 繁體中文 The Art of Command Line Note: I'm planning to revise this and looking for a new co-author to help with expanding this into a more comprehensive guide. While it's very popular, it could be broader and a bit deeper. If you like to write and are close to being an expert on this material and willing to consider helping, please drop me a note at josh (0x40) holloway.com. –jlevy, Holloway. Thank you! - Meta - Basics - Everyday use - Processing files and data - System debugging - One-liners - Obscure but useful - macOS only - Windows only - More resources - Disclaimer !curl -s 'https://raw.githubusercontent.com/jlevy/the-art-of-command-line/master/README.md' | egrep -o '\w+' | tr -d '' | cowsay -W50 Fluency on the command line is a skill often neglected or considered arcane, but it improves your flexibility and productivity as an engineer in both obvious and subtle ways. This is a selection of notes and tips on using the command-line that we've found useful when working on Linux. Some tips are elementary, and some are fairly specific, sophisticated, or obscure. This page is not long, but if you can use and recall all the items here, you know a lot. This work is the result of many authors and translators. Some of this originally appeared on Quora, but it has since moved to GitHub, where people more talented than the original author have made numerous improvements. Please submit a question if you have a question related to the command line. Please contribute if you see an error or something that could be better! Meta Scope: - This guide is for both beginners and experienced users. The goals are breadth (everything important), specificity (give concrete examples of the most common case), and brevity (avoid things that aren't essential or digressions you can easily look up elsewhere). Every tip is essential in some situation or significantly saves time over alternatives. - This is written for Linux, with the exception of the "macOS only" and "Windows only" sections. Many of the other items apply or can be installed on other Unices or macOS (or even Cygwin). - The focus is on interactive Bash, though many tips apply to other shells and to general Bash scripting. - It includes both "standard" Unix commands as well as ones that require special package installs -- so long as they are important enough to merit inclusion. Notes: - To keep this to one page, content is implicitly included by reference. You're smart enough to look up more detail elsewhere once you know the idea or command to Google. Use apt, yum, dnf, pacman, pip or brew (as appropriate) to install new programs. - Use Explainshell to get a helpful breakdown of what commands, options, pipes etc. do. Basics - Learn basic Bash. Actually, type man bash and at least skim the whole thing; it's pretty easy to fol
Top issues
#167Lines are too freaking long!13 comments · 2015-07-09#165What about windows users?7 comments · 2015-07-08#124Remove Vi/Vim bias.7 comments · 2015-06-25#509A few more one-liners6 comments · 2017-04-13#769POSIX is mentioned nowhere5 comments · 2022-04-25#147tail -f -F as a must.5 comments · 2015-06-30#922Filipino Translation4 comments · 2025-07-11#919Student4 comments · 2025-06-19
相关报道 (3)
News & coverage (10)
Hacker NewsThe Art of Command Line (2015)▲ 597 · 169 comments · 2019-05-23Hacker NewsThe Art of Command Line▲ 466 · 133 comments · 2015-06-15Hacker NewsAsk HN: Where would you find beautiful shell scripts?▲ 6 · 2 comments · 2018-05-07Hacker NewsThe Art of Command Line: Master the command line, in one page▲ 4 · 0 comments · 2016-09-29KDnuggetsData Cleaning at the Command Line for Beginner Data Scientists2025-11-20KDnuggets10 Command-Line Tools Every Data Scientist Should Know2025-10-08KDnuggetsMake Sense of a 10K+ Line GitHub Repos Without Reading the Code2025-06-24HackerNoonHow to Resolve Bitwarden's 'Some Logins Missing' Issue2024-03-14KDnuggetsMaster The Art Of Command Line With This GitHub Repository2024-02-16KDnuggets5 More Command Line Tools for Data Science2023-03-13