tools:bash:customization
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tools:bash:customization [2024/06/04 02:45] – [Other Codes] Humphrey Boa-Gart | tools:bash:customization [2026/03/08 09:12] (current) – [$PATH] Humphrey Boa-Gart | ||
|---|---|---|---|
| Line 40: | Line 40: | ||
| As you start to use bash more often, you will find yourself using specific combinations of commands and flags to accomplish basic tasks. You can drastically cut the amount of typing you will do by setting **aliases**, | As you start to use bash more often, you will find yourself using specific combinations of commands and flags to accomplish basic tasks. You can drastically cut the amount of typing you will do by setting **aliases**, | ||
| - | For example, lets look at the '' | + | For example, lets look at the '' |
| - | ls='ls -lhaF --color=auto' | + | ls='ls -lhAF --color=auto' |
| Aliases do not have to be permanent, either. To set that same alias to only work for the current shell session, you would run: | Aliases do not have to be permanent, either. To set that same alias to only work for the current shell session, you would run: | ||
| - | $ alias ls=\' | + | $ alias ls=\' |
| To unset that alias, you would run: | To unset that alias, you would run: | ||
| Line 72: | Line 72: | ||
| PS1=' | PS1=' | ||
| - | Here is a <wrap em>red version</ | + | Here is a separate |
| PS1=' | PS1=' | ||
| Line 96: | Line 96: | ||
| ==== $PATH ==== | ==== $PATH ==== | ||
| - | The most important variable you will deal with, is the **$PATH** variable, which specifies the directories that bash will look for executable files. (So you can type '' | + | The most important variable you will deal with, is the **$PATH** variable, which specifies the directories that bash will look for installed applications. This lets you type '' |
| + | |||
| + | To figure out where your $PATH is, run: | ||
| $ echo $PATH | $ echo $PATH | ||
| Line 102: | Line 104: | ||
| This will output something like: | This will output something like: | ||
| - | /home/user/.local/bin:/ | + | /home/username/ |
| | | ||
| - | This above line shows that bash will look in your personal **~/ | + | This above line shows that bash will look in your personal **~/ |
| - | To enable bash to run a custom application (such as a freshly downloaded [[tools: | + | To enable bash to run a custom application |
| $ ln -s / | $ ln -s / | ||
| Line 202: | Line 204: | ||
| ===== ANSI Escape Codes ===== | ===== ANSI Escape Codes ===== | ||
| - | When you set your custom hostname earlier in this article, you may have noticed a bunch of numbers | + | When you set your custom hostname earlier in this article, you may have noticed |
| ==== Color Codes ==== | ==== Color Codes ==== | ||
| Line 227: | Line 229: | ||
| ^ Code ^ Description | ^ Code ^ Description | ||
| - | | 0 | Reset/ | + | | 00 |
| - | | 1 | + | | 01 | Bold text | |
| - | | 2 | + | | 02 | Faint text | |
| - | | 3 | + | | 03 | Italics |
| - | | 4 | + | | 04 | Underlined text | |
| + | |||
| - | ---- | + | {{wst> |
| - | * [[tools: | ||
tools/bash/customization.1717469135.txt.gz · Last modified: (external edit)
Find this page online at: https://bestpoint.institute/tools/bash/customization
Find this page online at: https://bestpoint.institute/tools/bash/customization