Session 4: Linux Command Line¶
Date: 10/02/2017, Monday
This week we are going to use Harvard’s Odyssey supercomputer. It is a Linux system, just like most remote servers. Before playing with Odyssey I strongly recommend you to get familiar with Linux basics.
Why command line, not graphical interface?
- Command line is more like programming so it allows you to do much more, such as renaming 1000 files.
- When controlling a remote server, the internet bandwidth is typically not enough for showing the graphical user interface. But with command line you only need to transfer texts, not images.
Linux commmand line is an absolutely essential skill for any programmers (much more important than MATLAB 🙂), so learn it!
Trying Linux command on your Laptop¶
Mac has a built-in app called Terminial. You can find it by searching
for “Terminial” in Spotlight Search (
control+space for older OS). Mac command line is almost the same as
Linux command line, so you can practice Linux commands on Mac without
having to connect to Odyssey. This default terminal is already pretty
good for beginners. If you want more advanced terminals, try
For connecting to remote servers, simply execute
ssh username@ip_address in the terminal.
Window’s own command line is very different from Linux’s. On Windows 10, you can follow this official tutorial to install the Linux subsystem, so you can play with Linux on your laptop. If you are using an older windows system, you can try some online Linux “playground” like https://www.tutorialspoint.com/unix_terminal_online.php.
Linux Command Basics¶
There are a bunch of Linux tutorials online. I particularly like this one. You should at least read Chapter 1 - Chapter 5.