Caution
JavaScript is disabled in your browser.
This site uses JavaScript for features such as search.
For the best experience, please enable JavaScript before browsing this site.
Dictionary
- Home
- Bash Dictionary
Bash Dictionary Index
| [Setup] Bash Environment | Steps to set up an environment for creating and running Bash scripts. |
| ls | Displaying a list of files. |
| cd / pwd | Navigating directories and checking the current location. |
| cp / mv / rm | Copying, moving, and deleting files and directories. |
| mkdir / rmdir / touch | Creating directories and files. |
| find | Searching for files. |
| ln | Creating symbolic links and hard links. |
| chmod / chown / chgrp | Changing permissions and ownership. |
| stat / file / du / df | Checking file information and disk usage. |
| cat / tac | Displaying file contents in order and in reverse. |
| less / more | Browsing a file with paging. |
| head / tail | Displaying the beginning or end of a file. |
| echo / printf | Outputting strings. |
| wc / sort / uniq | Counting lines and words, sorting, and removing duplicates. |
| grep | Searching text for patterns. |
| sed | Line-based text substitution and editing. |
| awk | Field processing and aggregation of text. |
| cut / paste / join | Cutting, pasting, and joining fields. |
| tr / col / expand | Converting and formatting characters. |
| diff / patch | Comparing file differences and applying patches. |
| | (Pipe) | Passing the output of one command to the next. |
| > (Output Redirect) | Redirecting stdout and stderr. |
| < (Input Redirect) / Heredoc | Redirecting stdin and using here documents. |
| tee | Writing to a file in the middle of a pipe. |
| xargs | Running commands from a list of arguments. |
| Defining and Referencing Variables | Declaring, assigning, and referencing shell variables. |
| export / env / printenv | Setting and checking environment variables. |
| ${Parameter Expansion} | Advanced variable expansion and default value settings. |
| Special Variables | Special shell variables used in scripts. |
| $((Arithmetic Expansion)) | Integer arithmetic. |
| {} (Brace Expansion) | Generating sequences and strings. |
| $() (Command Substitution) | Using command output as a value. |
| if / elif / else | Conditional branching. |
| test / [ ] / [[ ]] | Evaluating conditional expressions. |
| case | Multi-way branching by value. |
| for | Looping over a list or range. |
| while / until | Conditional loops. |
| select | Generating an interactive menu. |
| Defining and Calling Functions | Basics of shell functions. |
| Function Arguments and Return Values | Receiving arguments and returning values. |
| read | Reading from standard input. |
| Shebang / chmod +x | Creating and executing script files. |
| source / . (Dot) | Loading another script file. |
| ps / top / htop | Checking running processes. |
| kill / pkill / killall | Stopping processes and sending signals. |
| & (Background Execution) | Running in the background and managing jobs. |
| wait / trap | Waiting for processes and catching signals. |
| curl | Sending and receiving HTTP requests. |
| wget | Downloading files. |
| ssh / scp / rsync | Connecting to remote hosts and transferring files. |
| ping / nslookup / dig | Network diagnostics and name resolution. |
| tar | Creating and extracting archives. |
| gzip / bzip2 / zip / unzip | Compressing and extracting files. |
| date / cal | Getting and manipulating dates and times. |
| Bash vs zsh Differences | Summary of key differences including arrays, globs, and prompts. |