which shell is running
Find out which shell runs now, which one is your default, and change it.
shell
steps
-
ps -p $$the shell running this terminal
-
echo "$SHELL"your login shell, the default
-
cat /etc/shellsthe shells you can choose
-
chsh -s /bin/zshmake zsh your default, from the next login
commands used
pschsh
Each has a page in lore: lore ps opens it.
add a folder to the path
Let the shell find programs in a folder, for good, and reload the settings without logging out.
add to the end of a file
Add lines to a file without replacing it, also to a file only root can write.
argument list too long
"Argument list too long" from rm, cp or mv: too many files for one command line. Hand them over in batches.
ask for input in a script
Ask yes or no, read a password without showing it, or wait for an answer with a time limit.