1 / 13

Programmin' for Biologists

Lecture 1: Basic C/Unix. Programmin' for Biologists. Windows: SSH Secure Shell http://artsci.wustl.edu/utilities/sshsecureshellclient-3.2.9.exe “Quick Connect” - hostname: warlord.wustl.edu Mac/Linux: Terminal, ssh ssh username@warlord.wustl.edu. Connecting to Computers. ls /home ls -l

Download Presentation

Programmin' for Biologists

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. Lecture 1: Basic C/Unix Programmin' for Biologists

  2. Windows: SSH Secure Shell http://artsci.wustl.edu/utilities/sshsecureshellclient-3.2.9.exe “Quick Connect” - hostname: warlord.wustl.edu Mac/Linux: Terminal, ssh ssh username@warlord.wustl.edu Connecting to Computers

  3. ls /home ls -l ls -lS /home ls *.h LS? Listing Files

  4. man ls man <command> <command> --help Help

  5. Directory = Folder cd cd foldername cd ~ pwd mkdir foldername Change DirectoryPrint Working Directoryand Make Directory

  6. ./ = current directory ../ = parent directory file.h = file type marker .file = “hidden file” cd . cd .. ls -a Meanings of Dot

  7. cp source folder cp source newname mv source folder mv source newname rm file rmdir folder rm -rf folder Copy/Move/Remove

  8. DON'T TRY THIS AT HOME mv junk hw6.c rm * rm *.o rm -rf / Caution

  9. Autocomplete using TAB ls /home/d[TAB] mkd[TAB] Old Commands up arrow history !1040 !ls Useful Tricks

  10. ls > listing wc < listing ls | wc Piping

  11. To open a file, hold down CtrlX then CtrlF. Then type the name of the file, and hit enter. To save the file, hit CtrlX then CtrlS. Use CtrlZ to send the program to the background. Type fg to bring it back up. To exit the program, hit CtrlX then CtrlC. Emacs – text editing

  12. Copy: Highlight Paste: Middle Mouse Button or Ctrl-Insert Copy And Paste

  13. wget http://www... Internet

More Related