160 likes | 193 Views
Join the IoT Engineering Summer Program 2018 at the University of Notre Dame to learn UNIX 101 Command Line and Raspberry Pi operations like echo, clear, pwd, ls, and more. Explore file management and directory structures to enhance your skills.
E N D
Internet-of-Things (IoT) Summer Engineering Program 2018 University of Notre Dame UNIX 101
Man pages echo helloworld clear pwd man echo man clear man pwd
Directory Structure /home/its/ug1/ee51vn/report.doc
Directory Structure ls ls –a mkdirmynewdirectory cd mynewdirectory cd . cd ..cd ~ pwd cd ~/mynewdirectory
File Operations Write simple file (vi, nano, …) cp, mv, rm, mkdir, rmdir, cat Wild cards: * ? find . -name "*.txt" -print
Directory Structure (Files) r (or -), indicatesreadpermission (orotherwise), thatis, thepresenceorabsenceofpermissiontoreadandcopythefile w (or -), indicateswritepermission (orotherwise), thatis, thepermission (orotherwise) tochange a file x (or -), indicatesexecutionpermission (orotherwise), thatis, thepermissiontoexecute a file, whereappropriate
Directory Structure (Directories) rallowsuserstolistfiles in thedirectory; wmeansthatusersmaydeletefilesfromthedirectoryormovefilesintoit; x meanstherighttoaccessfiles in thedirectory. This impliesthatyoumayreadfiles in thedirectoryprovidedyouhavereadpermission on the individual files.
Directory Structure chmod chmodgo-rwxsomefile chmoda+rwbiglist
Processes ps kill -9 PID 9: SIGKILL
Superuser Normal user vs. superuser (root) su sudocommand /etc/sudoers
Package Management (APT) sudoapt-get update sudoapt-get upgrade sudoapt-getinstall PACKAGE
Other Commands raspi-config reboot shutdown –h now ifconfig iwconfig iwlist wlan0 scan ping IPADDRESS wgethttp://www.website.com/example.txt hostname -I