User Tools

Site Tools


notes:c4eng

This is an old revision of the document!


C4ENG CLASS NOTES PAGE

Unix/Linux:

  • cd - change directory
    • cd tmp
  • ~ - home directory
    • cd ~
  • / - root directory
    • cd /
  • sudo - super user
    • sudo shutdown -h now
  • ssh - secure shell to a remote machine
    • ssh remoteMachine
    • ssh remoteMachine@ipaddress
  • mkdir - makes a directory of your choice in current directory
    • mkdir directoryName
  • touch - makes a file in the current directory with the name of your choice
    • touch fileName
  • nano - a text editor
    • nano fileName
  • scp - secure copy to or from a remote machine via local host or remote host
    • scp fileName user@machine:

Mercurial:

  • fixrepo - repository reset
  • hg status - see states of files
  • hg add - adds files to repository
  • hg commit -m “message” - commits to repository with a message
  • hg push - pushes files to repository

Raspberry Pi:

  • sudo shutdown -h now - shutdown Pi
  • gpio readall - displays the status of the General Purpose Input Output pins on the Pi
  • gpio mode pinNumber Status - sets the pin number to IN or OUT
  • gpio write pinNumber Status - sets the value of the pin number to 1(one) or 0(zero)
notes/c4eng.1569442396.txt.gz · Last modified: 2019/09/25 16:13 by mfaucet2