130 likes | 207 Views
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
E N D
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 ls -lS /home ls *.h LS? Listing Files
man ls man <command> <command> --help Help
Directory = Folder cd cd foldername cd ~ pwd mkdir foldername Change DirectoryPrint Working Directoryand Make Directory
./ = current directory ../ = parent directory file.h = file type marker .file = “hidden file” cd . cd .. ls -a Meanings of Dot
cp source folder cp source newname mv source folder mv source newname rm file rmdir folder rm -rf folder Copy/Move/Remove
DON'T TRY THIS AT HOME mv junk hw6.c rm * rm *.o rm -rf / Caution
Autocomplete using TAB ls /home/d[TAB] mkd[TAB] Old Commands up arrow history !1040 !ls Useful Tricks
ls > listing wc < listing ls | wc Piping
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
Copy: Highlight Paste: Middle Mouse Button or Ctrl-Insert Copy And Paste
wget http://www... Internet