Skip to content

Commit ad20939

Browse files
authored
Aliases
1 parent 7a541f1 commit ad20939

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

learningbash.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@
3535
- `CTRL-B, CTRL-F` : go backward/farward.
3636
- `CTRL-A, CTRL-E` : jump to the beginning/end of the line.
3737

38-
### Customizing Environements
38+
### Profiles
3939
- The files `.bash_profile`, `.bash_logout` and `.bashrc` when you log in or out or start a new shell.
4040
- `source .bash_profile`: the source command executes the commands in the specified file.
4141
- If `.bash_profile` doesen't exist, bash will look for `bash_login`, If that dosen't exist, it will look for `.profile`.
4242
- `.bash_profile` is read and executed only by the login shell, if you start up a new shell by typing shell, it will attempt to read commands from the file `.bashrc`.
4343
- The file `.bash_logout` is read and executed every time a login shell exits.
44+
45+
### Aliases
46+
- An alias can be defined on the command line, in the `bash_profile` or in the `.bashrc` file.
47+
- alias `name=command`, This syntax specifies that `name` is an alias od thegiven command, keep in mind no space before and after the equal symbol.

0 commit comments

Comments
 (0)