Useful Pi terminal commands

Booting

  • sudo reboot
  • sudo shutdown -h now

SSH

  • ssh [yourip] -l pi replace bracketed text with the Pi’s IP address

Files

  • mv one.txt two.txt  changes the name of one.txt to two.txt
  • cp /home/pi/one.txt /home  move one.txt from pi directory to home directory

Configuration

  • sudo raspi-config  pick option 4 to set timezone

Leave a Reply