Summary Cli
Summary Cli
mkdir-Creating directories
● create a directory mkdir dir
● create multiple directories mkdir dir1 dir2 dir3
rm-Removing files/directories
● remove a directory -> needs to be done recursively (-r): rm -r <directory name>
● remove a file: rm <filename>
● remove multiple files: rm file1 file2
● remove multiple files using wildcard e.g. when the first 4 letters are the same: rm file*
Note: be careful with rm, the cli doesn't have an undo command!!!. Be especially in combination
with wildcards like *. Using rm * will remove all files in a directory.
Whenever you use wildcards, try `ls` first to see the selection... then rm...
● Add -g to keep the application in the background, so you remain centered in Termina
lopen -g -a iTunes
5. Other
export and echo
export => shows all your environment variables that are available to your programs
echo $PATH => shows which programs are available in path
which
shows which program you are running
which python3
/usr/local/bin/python3