1 / 16

CS 60 Discussion Review

CS 60 Discussion Review. Important Unix Commands. ls Options: -ltra pwd mkdir rmdir cd. Important Unix commands. cp Options: -r mv rm more/less cat echo. File Permissions. rwx: Read, Write, eXecute What do these mean for files/dirs Owner, Group, Others Example:

chaka
Download Presentation

CS 60 Discussion Review

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 60Discussion Review

  2. Important Unix Commands • ls • Options: -ltra • pwd • mkdir • rmdir • cd

  3. Important Unix commands • cp • Options: -r • mv • rm • more/less • cat • echo

  4. File Permissions • rwx: Read, Write, eXecute • What do these mean for files/dirs • Owner, Group, Others • Example: • chmod 754 file.txt

  5. Redirection, Pipes • >, >> • < • |

  6. Backquotes • cat `ls abc* |grep 123`

  7. Processes • ps • pidof • kill -9

  8. Background jobs • ^Z • bg • fg • &

  9. Debugging • gcc -g • gdb <program> [core] • GDB commands • run • list • print • break • continue • step • next

  10. Compiling • Compiling • Pre-Processing • Compiling/Assembly • Linking • Gcc • Options: • -o, -c, -l, -L • -W, -Wall, -g

  11. More commands • find • Options: -name, -type, -maxdepth, -user, -exec • grep • Options: -r, -l, -n, -v, -I

  12. Tars • tar -tvzf tarfile.tar.gz • tar -czf tarfile.tar.gz dir/ • tar -xvzf tarfile.tar.gz

  13. Shells • What is a shell ? • csh, bash, etc • Setenv • PATH ? • .cshrc, .login, .logout

  14. More commands • head • tail • cut • cut -f2 -d’ ‘ |head -10|tail -2

  15. Shell Scripts • Examples

  16. all the best for finals !!

More Related