notes:c4eng
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:c4eng [2019/09/24 15:19] – mfaucet2 | notes:c4eng [2020/10/21 18:49] (current) – [Mercurial:] jwhitso2 | ||
---|---|---|---|
Line 10: | Line 10: | ||
* sudo shutdown -h now | * sudo shutdown -h now | ||
* ssh - secure shell to a remote machine | * ssh - secure shell to a remote machine | ||
- | * ssh lab46 | + | * ssh remoteMachine |
+ | * ssh remoteMachine@ipaddress | ||
* mkdir - makes a directory of your choice in current directory | * mkdir - makes a directory of your choice in current directory | ||
- | * mkdir tmp | + | * mkdir directoryName |
+ | * rm - deletes argument file | ||
+ | * rm fileName | ||
+ | * rmdir - deletes directory in argument with no files inside it | ||
+ | * rmdir directory name | ||
* touch - makes a file in the current directory with the name of your choice | * touch - makes a file in the current directory with the name of your choice | ||
- | * touch tmp | + | * touch fileName |
+ | * ls - shows files and directories within current directory | ||
+ | * ls -l -shows files and directories within directory with shielding info | ||
* nano - a text editor | * nano - a text editor | ||
- | * nano tmp | + | * nano fileName |
* scp - secure copy to or from a remote machine via local host or remote host | * scp - secure copy to or from a remote machine via local host or remote host | ||
- | * scp programName.ext | + | * scp fileName |
+ | * make - builds a program based on a make file | ||
+ | * whoami - returns the current user | ||
====Mercurial: | ====Mercurial: | ||
* fixrepo - repository reset | * fixrepo - repository reset | ||
Line 25: | Line 34: | ||
* hg commit -m " | * hg commit -m " | ||
* hg push - pushes files to repository | * hg push - pushes files to repository | ||
+ | * hg update -C - reverts uncommitted changes in the working directory | ||
+ | * hg merge - starts a merge between two heads | ||
====Raspberry Pi:==== | ====Raspberry Pi:==== | ||
*sudo shutdown -h now - shutdown Pi | *sudo shutdown -h now - shutdown Pi | ||
Line 30: | Line 41: | ||
*gpio mode pinNumber Status - sets the pin number to IN or OUT | *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) | *gpio write pinNumber Status - sets the value of the pin number to 1(one) or 0(zero) | ||
+ | |||
+ | ====Lab 46 Shell:==== | ||
+ | *status desig - shows completed class tasks and upcoming due projects | ||
notes/c4eng.1569352798.txt.gz · Last modified: 2019/09/24 15:19 by mfaucet2