# Bash: Greatest Hits

#### Gettin’ fancy

Bash commands are connecting via “pipes”, which means the input of one command is the output of the previous command. We use the | character to “pipe” one command’s output into another. Below are some useful examples.

Bash can also write to files! This makes a life a lot easier than dragging your cursor, copying large chunks of text from the terminal window. File Output Redirection can be done using the  >  or  >>  operators.

To turn in your HWs, you need to log into the remote SEAS server (ENIAC) and use the turnin tool. There are some commands below which show how to transfer your HW files from your local computer to another machine / server over SSH. The :~/ at the end is required always. For directories, the -r flag is required. For Penn students, the username is your Pennkey.