Bash Cheatsheet
- to tell how much memory is left on SD card (RasPi):
df -h /dev/root
ordf -h
- free memory:
free -m
- restart your shell:
$ exec -l $SHELL
- sudo previous command:
$ sudo !!
- copy directories:
cp -R <sourcedir> <destdir>
- rename folder:
mv /home/user/oldname /home/user/newname
- see java folder path:
whereis java