add aliases

This commit is contained in:
Malin Freeborn 2020-11-15 22:05:05 +01:00
parent b403584c63
commit b31fd0ba52
1 changed files with 11 additions and 0 deletions

View File

@ -100,6 +100,16 @@ Measure how long a script takes for super-autism powers.
> time [bash script]
# Aliases
Make one word equal a longer command with `alias`.
E.g.:
> alias wot='sudo systemd-analyze blame && free -h '
Now when you type 'go', it will perform that entire operation.
# Functions
Make a function which checks if something is a file, and if so, shows it on screen with `cat`:
@ -124,6 +134,7 @@ Remove a function with:
> unset my_function
# Paths
Every shell has various paths from where it can execute binary files. Find out your current one with:
> echo $PATH