Count lines in a file
Useful Linux one-liner
wc -l file.txt
Linux basics
386 Files & Folders Linux command examples grouped into 84 practical sections.
Browse grouped command cards or search directly below.
1152 commands
Useful Linux one-liner
wc -l file.txt
Useful Linux one-liner
sort file | uniq
Useful Linux one-liner
wget -c url
Useful Linux one-liner
> file.txt
Useful Linux one-liner
tail -f logfile
Useful Linux one-liner
gpg -c file
Useful Linux one-liner
split -b 1G largefile part-
Useful Linux one-liner
sha256sum file
Useful Linux one-liner
nl file.txt
Useful Linux one-liner
dos2unix file
Useful Linux one-liner
pdftotext file.pdf - | less
Useful Linux one-liner
a() { case $1 in *.tar.gz) tar xzf $1;; *.zip) unzip $1;; esac; }; a file
Useful Linux one-liner
truncate -s 10G file.img
command-line two-factor authentication code generator
2fa -add [account_name]
high-compression file archiver supporting multiple formats
7z a [archive.7z] [files...]
standalone file archiver from the 7-Zip family
7za a [archive.7z] [files...]
minimal 7z-only file archiver
7zr a [archive.7z] [files...]
disable an Apache2 configuration file
sudo a2disconf [configuration_file]
Translate awk scripts to Perl
a2p [script.awk] > [script.pl]
Clean AppArmor profiles by removing redundant rules
sudo aa-cleanprof [profile_name]
Android resource packaging tool
aapt list [app.apk]
generate UUID from coredump for crash deduplication
abrt-action-analyze-c
generate human-readable backtrace from a coredump
abrt-action-generate-backtrace -d [/var/spool/abrt/ccpp-2024-01-15]
display user connect time statistics
ac
grep-like source code search tool for programmers
ack [pattern]
autoconf macro collector for GNU build system
aclocal
Adaptable modal text editor
ad [path/to/file]
List and filter installed Android packages
adb shell pm list packages
Translate addresses to source file locations
addr2line -e [path/to/executable] [address]
Adobe font metrics to TeX font metrics converter
afm2tfm [font.afm] [font.tfm]
inspect age-encrypted files without decrypting them
age-inspect [secrets.age]
Simple and modern file encryption
age -p [file.txt] > [file.txt.age]
Detect file system changes for intrusion detection
sudo aide -i
Remove WEP cloaking from wireless capture files
airdecloak-ng -i [capture.cap] --bssid [00:11:22:33:44:55]
Query JSON data using JSONPath expressions
ajson '$.store.book[*].author' [file.json]
GPU-accelerated terminal emulator
alacritty
809 commands
Useful Linux one-liner
mkdir project{01..100}
Useful Linux one-liner
du -h . | sort -hr | head -20
Useful Linux one-liner
ls -lt
Useful Linux one-liner
mkdir dir && cd dir
Useful Linux one-liner
ls -d */
Useful Linux one-liner
tree
Useful Linux one-liner
ls | wc -l
Render 3D models as ASCII art in the terminal
3d-ascii-viewer [path/to/model.obj]
enable or disable process accounting
sudo accton [/var/log/account/pacct]
fine-grained file permission management
getfacl [path/to/file]
Android application installer
adb install [app.apk]
Register valid login shells
sudo add-shell [/usr/local/bin/zsh]
STL mesh analysis, repair, and transformation tool
admesh [path/to/model.stl]
Serve content over the Gemini protocol
agate --content [/var/gemini] --hostname [example.com]
Test runner for AI agent skills
npx agent-skills-eval [./skills]
Command-line download/upload tool with resume
aim [https://domain.com/file.tar.gz] .
Live-reloading development server for Go applications
air
Decrypt WEP and WPA/WPA2 encrypted capture files
airdecap-ng -w [hex_key] [capture.cap]
Update the IEEE OUI manufacturer database
sudo airodump-ng-oui-update
Handle alert deduplication, grouping, and routing for Prometheus
alertmanager --config.file=[alertmanager.yml]
Interactively browse and restore Amanda backups
amrecover [config_name]
CLI for building Angular web applications
ng new [project-name]
Generate parsers from grammar files
antlr4 [Grammar.g4]
Run OSS applications using ALSA emulation
aoss [application]
File bug reports with automatic system diagnostics.
apport-bug
Open an interactive shell inside a container
apptainer shell [container.sif]
Backup and restore installed package states
sudo apt-clone clone [path/to/directory]
CLI for Apple Passwords on macOS
apw start
TUI client for the aria2 download manager
aria2tui
Translate assembly language source into object files.
as [path/to/file.s]
ASCII file transfer over serial connections
ascii-xfr -s [path/to/file]
Convert AsciiDoc markup to HTML and DocBook
asciidoc [document.txt]
Manage multiple runtime versions with a single tool
asdf plugin add [nodejs]
Structural code search and rewrite using AST patterns
ast-grep --pattern 'console.log($ARG)'
Postman-like API client for the terminal
atac
Manipulate extended attributes on filesystem objects
attr -s [attribute_name] -V [value] [path/to/file]
197 commands
Useful Linux one-liner
cp file{,.bak}
Useful Linux one-liner
ln -s target link
Useful Linux one-liner
for f in *.txt; do mv "$f" "${f%.txt}.bak"; done
Find network-listening processes without AppArmor profiles
sudo aa-unconfined
macOS audio file format converter
afconvert -f m4af -d aac [input.wav] [output.m4a]
Share files between devices on the local network
airshare [mycode] [file.txt]
Manage Apptainer container platform configuration
sudo apptainer config fakeroot --add [username]
Discover hidden HTTP parameters in web applications
arjun -u [https://example.com/page]
Debug bare-metal ARM firmware interactively.
arm-none-eabi-gdb [firmware.elf]
wrap an ARM ELF printer firmware image with HP download header/trailer
arm2hpdl [sihp1005.img] > [sihp1005.dl]
Cross-platform audio recording/playback CLI tool with TUI
asak rec [output]
Automatically format Python code to PEP 8 style
autopep8 --in-place [file.py]
CLI for the Avo analytics tracking plan platform
avo init
Move files to, from, and between S3 buckets
aws s3 mv [file.txt] s3://[bucket-name]/
Delete objects from S3
aws s3 rm s3://[bucket-name]/[file.txt]
Deploy Azure resources using ARM templates and Bicep
az deployment group create --resource-group [rg_name] --template-file [template.json]
Flash OS images to SD cards and USB drives
balena-etcher
Cross-platform TUI Bluetooth manager
bluetuith
official CLI for interacting with Box cloud storage
box login
Upgrade the runtime itself
bun upgrade
Deploy and manage applications on CapRover
caprover login
cross-platform audio spectrum visualizer for the terminal
cava
distributed storage cluster management
ceph status
Versatile checksum file verifier and creator
cfv
Encrypted cloud storage and key-value database
charm kv set [key] [value]
multi-threaded antivirus scanning daemon
clamd
daemon-based virus scanner client
clamdscan [/path/to/scan]
AI-powered agentic coding assistant CLI
claude
shell-like command-line file manager
clifm
cross-platform build system generator
cmake -B [build]
Cockpit web service message relay
cockpit-bridge --packages
AI-powered terminal coding assistant
copilot
hybrid mobile app development framework
cordova create [myapp] [com.example.myapp] "[MyApp]"
Copy files and directories
cp [path/to/source.txt] [path/to/destination.txt]
Google C++ style guide checker
cpplint [file.cpp]
Modern fast file copy tool with progress bars
cpx [source.txt] [dest.txt]
154 commands
Useful Linux one-liner
find . -iname "*.log"
Useful Linux one-liner
find . -type f -size +100M
Useful Linux one-liner
find . -mtime +30 -delete
Useful Linux one-liner
find . -type d -empty -delete
Useful Linux one-liner
find . -xtype l
Enable Apache2 configuration files
sudo a2enconf [configuration_file]
Generate encryption key pairs for age
age-keygen
Catch insensitive, inconsiderate writing in text.
alex [file.md]
Search and stream anime from the terminal
ani-cli [anime_name]
Execute a command within an Apptainer container.
apptainer exec [container.sif] [command]
Display embedded help text from a container.
apptainer run-help [container.sif]
Search manual page descriptions by keyword
apropos [keyword]
Create and extract ARC format archives
arc a [archive.arc] [files]
Discover subdomains and related domains
assetfinder [example.com]
Manage cost budgets and spending alerts.
aws budgets create-budget --account-id [123456789012] --budget file://[budget.json]
Provision infrastructure from declarative templates.
aws cloudformation create-stack --stack-name [my-stack] --template-body file://[template.yaml]
Convert BIN/CUE CD images to ISO and audio tracks
bchunk [path/to/image.bin] [path/to/image.cue] [path/to/output]
Nucleotide-to-nucleotide sequence alignment search
blastn -query [query.fa] -subject [subject.fa] -evalue [1e-9]
Protein-to-protein sequence alignment search
blastp -query [query.fa] -subject [subject.fa] -evalue [1e-9]
Visualize Active Directory attack paths
bloodhound
Word search game on a grid of letter cubes
boggle
Shell syntax for grouping and expansion
{ [command1]; [command2]; }
Remove an installed Homebrew package
brew uninstall [formula]
Find and manage the minimum supported Rust version
cargo msrv find
Create a new Cargo package
cargo new [project_name]
Assemble a local package into a distributable archive
cargo package
find processes using outdated shared libraries
sudo checkrestart
audit security features in ELF binaries
checksec --file=[path/to/binary]
spelling checker for source code and text files
codespell
Python code coverage measurement tool
coverage run [script.py]
user cron table editor
crontab -e
reset dconf keys to default values
dconf reset /[path/to/key]
find orphaned packages on Debian-based systems
deborphan
DICT protocol dictionary client
dict [word]
multi-container Docker orchestration
docker-compose up
list Docker images stored locally
docker images
99 commands
Add font metric information to troff font files
addftinfo [resolution] [unitwidth] [font] < [input.tfm] > [output.tfm]
Archive authentication and trust model documentation.
man apt-secure
Sort package index files
apt-sortpkgs [Packages] > [Packages.sorted]
Bundle aptitude state for bug reports
aptitude-create-state-bundle [bundle.tar.bz2]
Create and manage static library archives
ar rcs [archive.a] [file1.o] [file2.o]
Mount archive files as virtual filesystems via FUSE
archivemount [path/to/archive] [path/to/mount_point]
Remove unused imports and variables from Python code
autoflake --in-place --remove-unused-variables [file.py]
CLI tool for searching Homebrew and Linuxbrew formulae and casks
bbrew search [query]
Block compression with random access support for genomics data
bgzip [file.vcf]
Cloudflare API v4 command-line client
cli4 /zones
Cryptographic Message Syntax operations via OpenSSL
openssl cms -sign -in [file.txt] -out [signed.p7m] -signer [cert.pem] -inkey [key.pem]
Markdown-based API test specification runner
cotton [spec.md]
time-based job scheduler daemon
crontab -e
extract sections from lines of files
cut -f [1,3] [file.txt]
generate kernel module dependency files
depmod
distributed C/C++ compilation across network hosts
distcc [gcc] -c [file.c] -o [file.o]
standard Unix line editor
ed [file.txt]
Manage file-based Elasticsearch users
elasticsearch-users list
Python code linter and style checker
flake8 [file.py]
filesystem backup and restore tool
sudo fsarchiver savefs [archive.fsa] [/dev/sda1]
decrypt data using Cloud KMS keys
gcloud kms decrypt --ciphertext-file=[encrypted.enc] --plaintext-file=[decrypted.txt] --key=[key] --keyring=[keyring] --location=[global]
POSIX shell builtin for option parsing
while getopts "ab:c" opt; do case $opt in a) echo "Option a";; b) echo "Option b with arg: $OPTARG";; c) echo "Option c";; esac; done
manage GitHub Actions workflow caches
gh cache list
Clean up whitespace in Git messages
git stripspace < [file]
Meta-build system that generates Ninja files
gn gen [out/Default]
Simplified OpenPGP signature verifier
gpgv [file.sig]
Groff terminal output driver
groff -Tutf8 [file.roff]
Terminal interface for viewing Git repositories
grv
extracts and displays Intel graphics BIOS information
intel_bios_reader --file=[bios.bin]
sorts Python imports alphabetically and separates them into sections
isort [file.py]
interactive spell checker
ispell [file.txt]
TUI file-sharing tool using the LocalSend protocol
jocalsend
joe's Own Editor, a terminal text editor
joe [file.txt]
formats JavaScript, HTML, and CSS files with consistent indentation and style
js-beautify [file.js]
Terminal-based Kanban board task manager
kanban-tui
Minimal terminal AI coding agent with pluggable LLM providers
keen
31 commands
CSS code quality checker
csslint [file.css]
convert CoffeeScript to modern JavaScript
decaffeinate [file.coffee]
Lock package versions to prevent updates
dnf versionlock list
dotfiles bootstrapping automation tool
dotbot -c [install.conf.yaml]
Rebase with patch application
git rebase-patch [patch_file]
Common shell library for Git scripts
. "$(git --exec-path)/git-sh-setup"
command-line interface for GnuCash reports and quotes
gnucash-cli --quotes get [file.gnucash]
Signal Messenger client for the terminal
gurk
List information about block devices
lsblk
creates block devices, character devices, or FIFOs as special files
sudo mknod [path/to/device_file] b [major_device_number] [minor_device_number]
manages lightweight NixOS containers using Linux namespaces
sudo nixos-container list
ruby HTML/XML parser CLI
nokogiri [file.html]
neovim, a modern Vim fork
nvim [file]
Interactive NVIDIA GPU process viewer and monitor
nvitop
Manage MaxCompute user-defined functions from odpscmd
list functions;
Python 3 package installer
pip3 install [package]
Maintain documentation translations via PO files
po4a [path/to/config_file]
Report running process status
ps aux
Convert raw RGB data to PPM format
rawtoppm [width] [height] [input.raw] > [output.ppm]
Render rich text and markdown in terminal
python -m rich.markdown [file.md]
View files in read-only nano editor
rnano [file]
Repair corrupted scamper warts files
sc_wartsfix [input.warts] > [fixed.warts]
Scala source code compiler
scalac [Hello.scala]
PipeWire resampler debugging utility
spa-resample -r [48000] [input.wav] [output.wav]
Control Transmission daemon remotely
transmission-remote -l
Vite-powered static site generator
vitepress dev [docs]
Cisco-compatible IPSec VPN client
sudo vpnc [config_file]
Build Vue.js applications for production
vue build
Fast CSV command-line toolkit
xsv headers [file.csv]
Pattern matching for malware detection
yara [rules.yar] [file]
Configure YubiKey authentication slots
ykpersonalize -v
26 commands
Source code formatter for C, C++, C#, and Java
astyle [file.cpp]
POSIX-standard C99 compiler interface
c99 [file.c] -o [output]
export flattened image filesystem
crane export [image] [output.tar]
remove files from version control
fossil delete [file]
command-line webcam image capture
fswebcam [image.jpg]
manage code snippets and shareable files
gh gist create [file]
Generate a 3D model of your GitHub contribution history
gh skyline
Compiler for the Haskell functional programming language
ghc [file.hs]
format Go source code to standard style
go fmt [file.go]
Animated version control history visualization
gource
GNOME GResource bundle inspector
gresource list [file.gresource]
displays repository commit history
hg log
converts source code to formatted output with syntax highlighting
highlight [file.py]
Generate open source license files
license list
mono C# compiler
mcs [program.cs]
displays vector data information
ogrinfo [file.shp]
Oh My Zsh management CLI
omz update
Create an index image for a Kodak Photo CD
pcdovtoppm [overview.pcd] > [index.ppm]
synchronize a PostgreSQL data directory with another copy
pg_rewind -D [target_dir] --source-server="host=[host] user=[rewind_user] dbname=[postgres]"
Format and extract SQL strings embedded in Python source files
py-sql-cleaner list jobs/load_users.py
Extract translatable strings from Python code
pygettext [script.py]
Generate Ruby documentation from source code
rdoc [file.rb]
Modern Scala command-line runner and build tool
scala-cli [script.sc]
POSIX-compliant command interpreter
sh
Convert between measurement units
units
Open-source disk encryption software
veracrypt -t -c --random-source=/dev/urandom
19 commands
Adobe font metrics to groff font description converter
afmtodit [font.afm] [textmap] [fontname]
automatic source code formatter for C-family languages
clang-format [file.cpp]
view compose service logs
docker compose logs
start compose services
docker compose up
UEFI boot entry decoder
efibootdump -f [/sys/firmware/efi/efivars/Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c]
MATE desktop archive manager
engrampa [path/to/archive1.tar] [path/to/archive2.tar]
capture framebuffer screenshots to PNG
fbgrab [screenshot.png]
Grap graph to image converter
grap2graph [file.grap] > output.png
Groff preprocessor for Gremlin graphics
grn [file.grn] | groff > output.ps
creates and restores backups of iOS devices
idevicebackup backup [backup-dir]
creates and restores backups of iOS devices running iOS 4 and later
idevicebackup2 backup [backup-dir]
adds cryptographic signatures to in-toto metadata files
in-toto-sign -k [key.pem] -f [link_file]
command-line system information tool with ASCII art
neofetch
transfers data to/from MaxCompute
odps tunnel upload [file] [project.table]
converts PBM bitmaps to GraphOn terminal graphics format
pbmtogo [input.pbm] > [output.go]
Convert PNM images to PostScript
pnmtops [input.pnm] > [output.ps]
Protocol Buffers compiler and code generator
protoc --python_out=[path/to/output_directory] [input_file.proto]
Disable then re-enable a unit
systemctl reenable [unit]
Reload service configuration without restart
systemctl reload nginx
15 commands
Useful Linux one-liner
tar czf backup.tar.gz directory/
Useful Linux one-liner
tar xzf archive.tar.gz
Useful Linux one-liner
tar cjf archive.tar.bz2 dir/
load Docker images from tar archives
docker load -i [image.tar]
Extract commit ID from tar archive
git get-tar-commit-id < [archive.tar]
Create and restore GitLab instance backups
sudo gitlab-backup create
manages disk images for systemd containers and system extensions
sudo importctl pull-tar [URL] [name]
parallel bzip2 compressor and decompressor
lbzip2 [file]
builds customized, modern Linux OS images
mkosi summary
POSIX archiver
pax -wf [archive.pax] [directory]
restores PostgreSQL databases from archives created by pg_dump
pg_restore -d [database] [backup.dump]
Export container filesystem as tar archive
podman export [container] -o [container.tar]
Load container images from tar archives
podman image load -i [image.tar]
Generate random identity data
rig
Extract files from ZIP archives
unzip [archive.zip]
9 commands
Search and query audit log events
sudo ausearch -m avc
COPR build system client
copr-cli whoami
D programming language reference compiler
dmd [file.d]
command-line HTML5 validation tool using the Nu Html Checker
html5validator [file.html]
simple program to insert a module into the Linux kernel
sudo insmod path/to/module.ko
removes configuration values from Jujutsu config files
jj config unset --user [key]
Manage a PPPoE DSL connection
sudo pppoe-connect
Sign RPM packages with GPG keys
rpmsign --addsign [package.rpm]
Clear Linux software update and bundle manager
sudo swupd update
8 commands
GUI version of Vim
gvim [file]
post-modern modal text editor inspired by Kakoune and Vim
hx [file]
modal text editor inspired by Vim
kak [file.txt]
simple text editor
nano [file.txt]
text-to-speech synthesizer using the SVOX Pico engine
pico2wave -w [output.wav] "[Hello world]"
Classic Unix visual text editor
vi [file]
Open files in read-only Vim mode
view [file]
Highly configurable modal text editor
vim [file]
8 commands
List installed Homebrew packages
brew list
generates shell completion scripts
npm completion
shows why a package is installed
npm explain [package-name]
searches for duplicate packages in node_modules
npm find-dupes
creates a new package
npm init
removes packages not in dependencies
npm prune
Add packages to Arch Linux repository
repo-add path/to/database.db.tar.gz
APT-like package manager for Slackware
slapt-get --update
5 commands
Edit XML documents from command line
xml edit -u "[//element]" -v "[new value]" [file.xml]
List XML element names and paths
xml elements [file.xml]
List element structure of an XML document
xml el [file.xml]
Query XML documents with XPath
xml select -t -v "[//element]" [file.xml]
Validate XML against schemas
xml val [file.xml]
4 commands
Parse and display ASN.1 encoded data
openssl asn1parse -in [file.der]
Compute and verify BLAKE3 cryptographic checksums.
b3sum [file]
converts Markdown-formatted text to HTML
markdown [file.md]
Validate X.509 certificate chains
openssl verify [certificate.pem]
3 commands
3 commands
3 commands
2 commands
Interactive web server for inspecting and mocking HTTP requests
httplab
Bulk data transfer for MaxCompute tables
odpscmd tunnel upload [file.csv] [project.table]
2 commands
add layers to container images
crane append -b [base_image] -f [layer.tar.gz] -t [new_image:tag]
retrieve blobs from container images
crane blob [image]@[digest]
2 commands
Apply patches to files and the index
git apply [patch.diff]
Resolve canonical author and committer identities
git check-mailmap "[Name] <email@example.com>"
2 commands
lists account names from the journal
hledger accounts
adds transactions from CSV or other files to a journal
hledger import [file.csv]
2 commands
Import VMs from OVF/OVA files
vboxmanage import [file.ova]
Register existing VM with VirtualBox
vboxmanage registervm [path/to/vmname.vbox]
1 commands
1 commands
1 commands
Check for Advanced Power Management support
apm_available && echo "APM supported"
1 commands
Replay aptitude state from a bundle
aptitude-run-state-bundle [bundle.tar.bz2]
1 commands
1 commands
1 commands
1 commands
Extract Microsoft cabinet archives
cabextract [file.cab]
1 commands
1 commands
1 commands
ebook metadata editor
ebook-meta [book.epub]
1 commands
1 commands
1 commands
combine 32-bit and 64-bit EFI binaries
grub-glue-efi -3 [ia32.efi] -6 [x64.efi] -o [boot.efi]
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
analyzes LLVM bitcode files
llvm-bcanalyzer [file.bc]
1 commands
1 commands
displays information about object files
llvm-objdump -d [file.o]
1 commands
extracts printable strings from binary files
llvm-strings [file]
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
creates a new LXC container in Proxmox VE from a template image
pct create 100 local:vztmpl/distro.tar.zst --rootfs local-lvm:4
1 commands
creates a base backup of a PostgreSQL cluster
pg_basebackup -D [backup_dir] -h [host] -U [user]
1 commands
enables, disables, or verifies data checksums
pg_checksums -e -D [data_dir]
1 commands
displays PostgreSQL cluster control information
pg_controldata [data_dir]
1 commands
converts a physical standby to logical replication subscriber
pg_createsubscriber -d [dbname] -D [data_dir] -P [conninfo]
1 commands
streams WAL from server to archive
pg_receivewal -D [wal_dir] -h [host] -U [username]
1 commands
1 commands
1 commands
Validate Perl POD documentation syntax
podchecker [file.pod]
1 commands
1 commands
1 commands
1 commands
1 commands
1 commands
Metrics collection and monitoring toolkit
prometheus --config.file=[prometheus.yml]
1 commands
1 commands
1 commands
1 commands
SonarQube static code analysis scanner
sonar-scanner
1 commands
1 commands
1 commands
1 commands
Useful Linux one-liner
xmllint --format file.xml
mkdir project{01..100}
复制后可按需替换文件名、目录或参数。
cp file{,.bak}
复制后可按需替换文件名、目录或参数。
du -h . | sort -hr | head -20
涉及管道、覆盖或删除,执行前请先确认路径和参数。
tar czf backup.tar.gz directory/
复制后可按需替换文件名、目录或参数。
tar xzf archive.tar.gz
复制后可按需替换文件名、目录或参数。
wc -l file.txt
复制后可按需替换文件名、目录或参数。
sort file | uniq
涉及管道、覆盖或删除,执行前请先确认路径和参数。
find . -iname "*.log"
复制后可按需替换文件名、目录或参数。
find . -type f -size +100M
复制后可按需替换文件名、目录或参数。
wget -c url
需要网络或远程资源。
ls -lt
复制后可按需替换文件名、目录或参数。
> file.txt
涉及管道、覆盖或删除,执行前请先确认路径和参数。
mkdir dir && cd dir
涉及管道、覆盖或删除,执行前请先确认路径和参数。
tar cjf archive.tar.bz2 dir/
复制后可按需替换文件名、目录或参数。
xmllint --format file.xml
复制后可按需替换文件名、目录或参数。
tail -f logfile
复制后可按需替换文件名、目录或参数。
ls -d */
复制后可按需替换文件名、目录或参数。
tree
复制后可按需替换文件名、目录或参数。
ln -s target link
复制后可按需替换文件名、目录或参数。
find . -mtime +30 -delete
复制后可按需替换文件名、目录或参数。
find . -type d -empty -delete
复制后可按需替换文件名、目录或参数。
gpg -c file
权限或系统影响较大,执行前请核对目标。
split -b 1G largefile part-
复制后可按需替换文件名、目录或参数。
sha256sum file
复制后可按需替换文件名、目录或参数。
nl file.txt
复制后可按需替换文件名、目录或参数。
dos2unix file
复制后可按需替换文件名、目录或参数。
pdftotext file.pdf - | less
涉及管道、覆盖或删除,执行前请先确认路径和参数。
ls | wc -l
涉及管道、覆盖或删除,执行前请先确认路径和参数。
find . -xtype l
复制后可按需替换文件名、目录或参数。
a() { case $1 in *.tar.gz) tar xzf $1;; *.zip) unzip $1;; esac; }; a file
涉及管道、覆盖或删除,执行前请先确认路径和参数。
truncate -s 10G file.img
复制后可按需替换文件名、目录或参数。
for f in *.txt; do mv "$f" "${f%.txt}.bak"; done
涉及管道、覆盖或删除,执行前请先确认路径和参数。
2fa -add [account_name]
权限或系统影响较大,执行前请核对目标。
3d-ascii-viewer [path/to/model.obj]
复制后可按需替换文件名、目录或参数。
7z a [archive.7z] [files...]
复制后可按需替换文件名、目录或参数。
7za a [archive.7z] [files...]
复制后可按需替换文件名、目录或参数。
7zr a [archive.7z] [files...]
复制后可按需替换文件名、目录或参数。
sudo a2disconf [configuration_file]
权限或系统影响较大,执行前请核对目标。
sudo a2enconf [configuration_file]
权限或系统影响较大,执行前请核对目标。
a2p [script.awk] > [script.pl]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
sudo aa-cleanprof [profile_name]
权限或系统影响较大,执行前请核对目标。
sudo aa-unconfined
权限或系统影响较大,执行前请核对目标。
aapt list [app.apk]
复制后可按需替换文件名、目录或参数。
abrt-action-analyze-c
复制后可按需替换文件名、目录或参数。
abrt-action-generate-backtrace -d [/var/spool/abrt/ccpp-2024-01-15]
复制后可按需替换文件名、目录或参数。
ac
复制后可按需替换文件名、目录或参数。
sudo accton [/var/log/account/pacct]
权限或系统影响较大,执行前请核对目标。
ack [pattern]
复制后可按需替换文件名、目录或参数。
getfacl [path/to/file]
复制后可按需替换文件名、目录或参数。
aclocal
复制后可按需替换文件名、目录或参数。
ad [path/to/file]
复制后可按需替换文件名、目录或参数。
adb install [app.apk]
复制后可按需替换文件名、目录或参数。
adb shell pm list packages
复制后可按需替换文件名、目录或参数。
sudo add-shell [/usr/local/bin/zsh]
权限或系统影响较大,执行前请核对目标。
addftinfo [resolution] [unitwidth] [font] < [input.tfm] > [output.tfm]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
addr2line -e [path/to/executable] [address]
复制后可按需替换文件名、目录或参数。
admesh [path/to/model.stl]
复制后可按需替换文件名、目录或参数。
afconvert -f m4af -d aac [input.wav] [output.m4a]
复制后可按需替换文件名、目录或参数。
afm2tfm [font.afm] [font.tfm]
复制后可按需替换文件名、目录或参数。
afmtodit [font.afm] [textmap] [fontname]
复制后可按需替换文件名、目录或参数。
agate --content [/var/gemini] --hostname [example.com]
复制后可按需替换文件名、目录或参数。
age-inspect [secrets.age]
复制后可按需替换文件名、目录或参数。
age-keygen
复制后可按需替换文件名、目录或参数。
age -p [file.txt] > [file.txt.age]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
npx agent-skills-eval [./skills]
复制后可按需替换文件名、目录或参数。
sudo aide -i
权限或系统影响较大,执行前请核对目标。
aim [https://domain.com/file.tar.gz] .
复制后可按需替换文件名、目录或参数。
air
复制后可按需替换文件名、目录或参数。
airdecap-ng -w [hex_key] [capture.cap]
复制后可按需替换文件名、目录或参数。
airdecloak-ng -i [capture.cap] --bssid [00:11:22:33:44:55]
复制后可按需替换文件名、目录或参数。
sudo airodump-ng-oui-update
权限或系统影响较大,执行前请核对目标。
airshare [mycode] [file.txt]
复制后可按需替换文件名、目录或参数。
ajson '$.store.book[*].author' [file.json]
复制后可按需替换文件名、目录或参数。
alacritty
复制后可按需替换文件名、目录或参数。
alertmanager --config.file=[alertmanager.yml]
复制后可按需替换文件名、目录或参数。
alex [file.md]
复制后可按需替换文件名、目录或参数。
sudo alien -d [path/to/file]
权限或系统影响较大,执行前请核对目标。
alt [path/to/file.rb]
复制后可按需替换文件名、目录或参数。
amdump [config_name]
复制后可按需替换文件名、目录或参数。
amp [path/to/file]
复制后可按需替换文件名、目录或参数。
amrecover [config_name]
复制后可按需替换文件名、目录或参数。
ng new [project-name]
复制后可按需替换文件名、目录或参数。
ani-cli [anime_name]
复制后可按需替换文件名、目录或参数。
antibody bundle < [plugins.txt]
复制后可按需替换文件名、目录或参数。
antlr4 [Grammar.g4]
复制后可按需替换文件名、目录或参数。
aoss [application]
复制后可按需替换文件名、目录或参数。
apisnip [input.yaml]
复制后可按需替换文件名、目录或参数。
aplay [path/to/file]
复制后可按需替换文件名、目录或参数。
aplaymidi -p [hw:1,0] [file.mid]
复制后可按需替换文件名、目录或参数。
apm_available && echo "APM supported"
涉及管道、覆盖或删除,执行前请先确认路径和参数。
sudo aa-status
权限或系统影响较大,执行前请核对目标。
sudo apparmor_parser -a [profile_file]
权限或系统影响较大,执行前请核对目标。
apport-bug
复制后可按需替换文件名、目录或参数。
apport-cli
复制后可按需替换文件名、目录或参数。
apport-unpack [/var/crash/_usr_bin_app.1000.crash] [output_directory]
复制后可按需替换文件名、目录或参数。
apptainer build [path/to/image.sif] [path/to/definition.def]
复制后可按需替换文件名、目录或参数。
sudo apptainer capability list --user [username]
权限或系统影响较大,执行前请核对目标。
sudo apptainer config fakeroot --add [username]
权限或系统影响较大,执行前请核对目标。
apptainer exec [container.sif] [command]
复制后可按需替换文件名、目录或参数。
apptainer inspect [path/to/image.sif]
复制后可按需替换文件名、目录或参数。
apptainer overlay create -s [size] [path/to/image.sif]
复制后可按需替换文件名、目录或参数。
apptainer pull [path/to/image.sif] docker://[image]:[tag]
复制后可按需替换文件名、目录或参数。
apptainer run-help [container.sif]
复制后可按需替换文件名、目录或参数。
apptainer shell [container.sif]
复制后可按需替换文件名、目录或参数。
apropos [keyword]
复制后可按需替换文件名、目录或参数。
sudo apt-clone clone [path/to/directory]
权限或系统影响较大,执行前请核对目标。
sudo apt update
权限或系统影响较大,执行前请核对目标。
man apt-secure
复制后可按需替换文件名、目录或参数。
apt-sortpkgs [Packages] > [Packages.sorted]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
aptitude-create-state-bundle [bundle.tar.bz2]
复制后可按需替换文件名、目录或参数。
aptitude-run-state-bundle [bundle.tar.bz2]
复制后可按需替换文件名、目录或参数。
apw start
复制后可按需替换文件名、目录或参数。
ar rcs [archive.a] [file1.o] [file2.o]
复制后可按需替换文件名、目录或参数。
arc a [archive.arc] [files]
复制后可按需替换文件名、目录或参数。
archivemount [path/to/archive] [path/to/mount_point]
权限或系统影响较大,执行前请核对目标。
arecord -vv -f cd [path/to/file.wav]
复制后可按需替换文件名、目录或参数。
arecordmidi -p [hw:1,0] [recording.mid]
复制后可按需替换文件名、目录或参数。
aria2c [https://example.com/file.zip]
复制后可按需替换文件名、目录或参数。
aria2tui
复制后可按需替换文件名、目录或参数。
arjun -u [https://example.com/page]
复制后可按需替换文件名、目录或参数。
ark -b [path/to/archive]
复制后可按需替换文件名、目录或参数。
arm-none-eabi-gdb [firmware.elf]
复制后可按需替换文件名、目录或参数。
arm2hpdl [sihp1005.img] > [sihp1005.dl]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
as [path/to/file.s]
复制后可按需替换文件名、目录或参数。
asak rec [output]
复制后可按需替换文件名、目录或参数。
asar pack [dir/] [output.asar]
复制后可按需替换文件名、目录或参数。
ascii-xfr -s [path/to/file]
复制后可按需替换文件名、目录或参数。
asciidoc [document.txt]
复制后可按需替换文件名、目录或参数。
asciinema rec [recording.cast]
复制后可按需替换文件名、目录或参数。
asdf plugin add [nodejs]
权限或系统影响较大,执行前请核对目标。
openssl asn1parse -in [file.der]
复制后可按需替换文件名、目录或参数。
aspell check [file.txt]
复制后可按需替换文件名、目录或参数。
assetfinder [example.com]
复制后可按需替换文件名、目录或参数。
assimp export [input.fbx] [output.obj]
复制后可按需替换文件名、目录或参数。
ast-grep --pattern 'console.log($ARG)'
复制后可按需替换文件名、目录或参数。
astyle [file.cpp]
复制后可按需替换文件名、目录或参数。
at now + 5 minutes
复制后可按需替换文件名、目录或参数。
atac
复制后可按需替换文件名、目录或参数。
atool -x [archive.tar.gz]
复制后可按需替换文件名、目录或参数。
attr -s [attribute_name] -V [value] [path/to/file]
复制后可按需替换文件名、目录或参数。
sudo audit2why
权限或系统影响较大,执行前请核对目标。
sudo auditctl -s
权限或系统影响较大,执行前请核对目标。
sudo auditd
权限或系统影响较大,执行前请核对目标。
aur sync [package1] [package2] ...
需要网络或远程资源。
aurvote --configure
复制后可按需替换文件名、目录或参数。
sudo ausearch -m avc
权限或系统影响较大,执行前请核对目标。
austin-tui python3 [path/to/script.py]
复制后可按需替换文件名、目录或参数。
autoflake --in-place --remove-unused-variables [file.py]
复制后可按需替换文件名、目录或参数。
autoheader
复制后可按需替换文件名、目录或参数。
autoload [function_name]
复制后可按需替换文件名、目录或参数。
autopep8 --in-place [file.py]
复制后可按需替换文件名、目录或参数。
autoprefixer [input.css] -o [output.css]
复制后可按需替换文件名、目录或参数。
autopsy
复制后可按需替换文件名、目录或参数。
avidemux [video.mp4]
复制后可按需替换文件名、目录或参数。
avifdec [input.avif] [output.png]
复制后可按需替换文件名、目录或参数。
avifenc [path/to/input.png] [path/to/output.avif]
需要网络或远程资源。
avo init
复制后可按需替换文件名、目录或参数。
avr-gcc -mmcu=[atmega328p] -o [output.elf] [source.c]
复制后可按需替换文件名、目录或参数。
avro-tools fromjson --schema-file [schema.avsc] [input.json] > [output.avro]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
awk '{print $5}' [path/to/file]
复制后可按需替换文件名、目录或参数。
aws acm-pca create-certificate-authority --certificate-authority-configuration [file://config.json] --certificate-authority-type ROOT
复制后可按需替换文件名、目录或参数。
aws budgets create-budget --account-id [123456789012] --budget file://[budget.json]
复制后可按需替换文件名、目录或参数。
aws cloudformation create-stack --stack-name [my-stack] --template-body file://[template.yaml]
复制后可按需替换文件名、目录或参数。
aws cloudfront create-invalidation --distribution-id [EDFDVBD6EXAMPLE] --paths "/[path/to/file.jpg]" "/[images/*]"
复制后可按需替换文件名、目录或参数。
aws codebuild start-build --project-name [my-project]
复制后可按需替换文件名、目录或参数。
aws efs describe-file-systems
复制后可按需替换文件名、目录或参数。
aws-google-auth
复制后可按需替换文件名、目录或参数。
aws history list
复制后可按需替换文件名、目录或参数。
aws kafka create-cluster --cluster-name [my-cluster] --kafka-version [3.5.1] --number-of-broker-nodes 3 --broker-node-group-info file://[broker-config.json]
复制后可按需替换文件名、目录或参数。
aws lambda create-function --function-name [my-function] --runtime python3.11 --role [arn:aws:iam::account:role/lambda-role] --handler [index.handler] --zip-file fileb://[function.zip]
复制后可按需替换文件名、目录或参数。
aws s3 cp [file.txt] s3://[bucket-name]/
复制后可按需替换文件名、目录或参数。
aws s3 ls
复制后可按需替换文件名、目录或参数。
aws s3 mv [file.txt] s3://[bucket-name]/
复制后可按需替换文件名、目录或参数。
aws s3 presign s3://[bucket-name]/[file.txt]
复制后可按需替换文件名、目录或参数。
aws s3 rm s3://[bucket-name]/[file.txt]
复制后可按需替换文件名、目录或参数。
aws s3 sync [./local-dir] s3://[bucket-name]/
需要网络或远程资源。
aws s3 ls
复制后可按需替换文件名、目录或参数。
aws s3 ls
复制后可按需替换文件名、目录或参数。
sesh
复制后可按需替换文件名、目录或参数。
awstats -config [virtualhostname] -update
复制后可按需替换文件名、目录或参数。
axel [https://example.com/file.zip]
复制后可按需替换文件名、目录或参数。
axi-cache search [keyword]
复制后可按需替换文件名、目录或参数。
az bicep build --file [main.bicep]
复制后可按需替换文件名、目录或参数。
az config get
复制后可按需替换文件名、目录或参数。
az deployment group create --resource-group [rg_name] --template-file [template.json]
复制后可按需替换文件名、目录或参数。
az storage blob upload -f [/path/to/file] -c [container-name] -n [blob-name] --account-name [account]
复制后可按需替换文件名、目录或参数。
az storage container create -n [container-name] --account-name [account]
复制后可按需替换文件名、目录或参数。
az storage copy -s [/path/to/file.txt] -d https://[account].blob.core.windows.net/[container]/[blob]
复制后可按需替换文件名、目录或参数。
azcopy copy [path/to/file] "https://[account].blob.core.windows.net/[container]/[blob]?[SAS_token]"
复制后可按需替换文件名、目录或参数。
b2 account authorize [applicationKeyId] [applicationKey]
复制后可按需替换文件名、目录或参数。
b2 authorize-account [applicationKeyId] [applicationKey]
复制后可按需替换文件名、目录或参数。
b2sum [file]
复制后可按需替换文件名、目录或参数。
b3sum [file]
复制后可按需替换文件名、目录或参数。
bagels
复制后可按需替换文件名、目录或参数。
baksmali disassemble [classes.dex]
复制后可按需替换文件名、目录或参数。
balena-etcher
复制后可按需替换文件名、目录或参数。
ballast
复制后可按需替换文件名、目录或参数。
balooctl status
复制后可按需替换文件名、目录或参数。
baobab
复制后可按需替换文件名、目录或参数。
bar -if [input_file] -of [output_file]
复制后可按需替换文件名、目录或参数。
base32 [file]
复制后可按需替换文件名、目录或参数。
base64 [file]
复制后可按需替换文件名、目录或参数。
basename [/path/to/file.txt]
复制后可按需替换文件名、目录或参数。
basenc --base64 [file]
需要网络或远程资源。
basilk
复制后可按需替换文件名、目录或参数。
bat [file.js]
复制后可按需替换文件名、目录或参数。
batcat
复制后可按需替换文件名、目录或参数。
battlestar
复制后可按需替换文件名、目录或参数。
bbrew search [query]
复制后可按需替换文件名、目录或参数。
bcal "(5kb+2mb)/3"
复制后可按需替换文件名、目录或参数。
bcftools view [input.vcf.gz]
复制后可按需替换文件名、目录或参数。
bchunk [path/to/image.bin] [path/to/image.cue] [path/to/output]
复制后可按需替换文件名、目录或参数。
bcrypt [file.txt]
复制后可按需替换文件名、目录或参数。
bd [dirname]
复制后可按需替换文件名、目录或参数。
python3 -c "from bs4 import BeautifulSoup; import requests; print([a['href'] for a in BeautifulSoup(requests.get('[url]').text, 'html.parser').find_all('a', href=True)])"
涉及管道、覆盖或删除,执行前请先确认路径和参数。
benben [path/to/song.mp3]
复制后可按需替换文件名、目录或参数。
bfs [/path]
复制后可按需替换文件名、目录或参数。
bgzip [file.vcf]
复制后可按需替换文件名、目录或参数。
biber [document]
复制后可按需替换文件名、目录或参数。
bibiman [path/to/references.bib]
复制后可按需替换文件名、目录或参数。
bibtex [document]
复制后可按需替换文件名、目录或参数。
sudo bindfs /path/to/source /path/to/mount
权限或系统影响较大,执行前请核对目标。
binsider [path/to/binary]
复制后可按需替换文件名、目录或参数。
binwalk [firmware.bin]
复制后可按需替换文件名、目录或参数。
bioradtopgm [bioradfile.pic] > [output.pgm]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
bkp [path/to/file]
复制后可按需替换文件名、目录或参数。
blaise --source [Hello.pas] --output [Hello]
复制后可按需替换文件名、目录或参数。
blastn -query [query.fa] -subject [subject.fa] -evalue [1e-9]
复制后可按需替换文件名、目录或参数。
blastp -query [query.fa] -subject [subject.fa] -evalue [1e-9]
复制后可按需替换文件名、目录或参数。
bloodhound
复制后可按需替换文件名、目录或参数。
bluetooth-sendto
复制后可按需替换文件名、目录或参数。
bluetuith
复制后可按需替换文件名、目录或参数。
bmptopnm [image.bmp] > [output.pnm]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
bmptoppm [image.bmp] > [output.ppm]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
boggle
复制后可按需替换文件名、目录或参数。
bombadillo
复制后可按需替换文件名、目录或参数。
bondai
复制后可按需替换文件名、目录或参数。
box login
复制后可按需替换文件名、目录或参数。
boxxy [application]
复制后可按需替换文件名、目录或参数。
bpkg install [package-name] -g
复制后可按需替换文件名、目录或参数。