Language
日本語
English

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.

  1. Home
  2. Bash Dictionary

Bash Dictionary Index

[Setup] Bash EnvironmentSteps to set up an environment for creating and running Bash scripts.
lsDisplaying a list of files.
cd / pwdNavigating directories and checking the current location.
cp / mv / rmCopying, moving, and deleting files and directories.
mkdir / rmdir / touchCreating directories and files.
findSearching for files.
lnCreating symbolic links and hard links.
chmod / chown / chgrpChanging permissions and ownership.
stat / file / du / dfChecking file information and disk usage.
cat / tacDisplaying file contents in order and in reverse.
less / moreBrowsing a file with paging.
head / tailDisplaying the beginning or end of a file.
echo / printfOutputting strings.
wc / sort / uniqCounting lines and words, sorting, and removing duplicates.
grepSearching text for patterns.
sedLine-based text substitution and editing.
awkField processing and aggregation of text.
cut / paste / joinCutting, pasting, and joining fields.
tr / col / expandConverting and formatting characters.
diff / patchComparing file differences and applying patches.
| (Pipe)Passing the output of one command to the next.
> (Output Redirect)Redirecting stdout and stderr.
< (Input Redirect) / HeredocRedirecting stdin and using here documents.
teeWriting to a file in the middle of a pipe.
xargsRunning commands from a list of arguments.
Defining and Referencing VariablesDeclaring, assigning, and referencing shell variables.
export / env / printenvSetting and checking environment variables.
${Parameter Expansion}Advanced variable expansion and default value settings.
Special VariablesSpecial 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 / elseConditional branching.
test / [ ] / [[ ]]Evaluating conditional expressions.
caseMulti-way branching by value.
forLooping over a list or range.
while / untilConditional loops.
selectGenerating an interactive menu.
Defining and Calling FunctionsBasics of shell functions.
Function Arguments and Return ValuesReceiving arguments and returning values.
readReading from standard input.
Shebang / chmod +xCreating and executing script files.
source / . (Dot)Loading another script file.
ps / top / htopChecking running processes.
kill / pkill / killallStopping processes and sending signals.
& (Background Execution)Running in the background and managing jobs.
wait / trapWaiting for processes and catching signals.
curlSending and receiving HTTP requests.
wgetDownloading files.
ssh / scp / rsyncConnecting to remote hosts and transferring files.
ping / nslookup / digNetwork diagnostics and name resolution.
tarCreating and extracting archives.
gzip / bzip2 / zip / unzipCompressing and extracting files.
date / calGetting and manipulating dates and times.
Bash vs zsh DifferencesSummary of key differences including arrays, globs, and prompts.