Skip to content
Alon Grinberg Dana edited this page May 13, 2021 · 13 revisions

Linux/Ubuntu

Hidden files

Any file or folder that begin with a period . are "hidden". To see them, open your file browser (Files), and press Ctrl + H. Pressing Ctrl + H again will hide them again.

Terminal

Open a terminal, do one of the following:

  • Press Ctrl + Alt + T
  • Click the terminal icon on the start menu
  • Right-click in any folder in the Files browser and select "Open in terminal"

Typing shortcuts

  • When typing in a terminal, you can use the arrows on the keyboard to go up/down in the history of commands you already typed. THis is especially convenient to restore long commands you previously wrote.
  • Pressing Tab on the keyboard will auto-complete commands and file paths. Try writing just cd Co and then press Tab. It will autocomplete your command into cd Code if you already created the Code folder. This is very useful when you need to type paths to specific files or folders and you'd like top make sure the path is correct.

Files browser

Tabs

You can open multiple tabs (just like when you serf the internet in a browser like Firefox) in your Files browser window. This is very convenient when working with two or more locations simultaneously instead of changing folders back and forth. Just press Ctrl + T in a Files browser window to open a new tab.

Computational tools

Profiling

To profile how much time a Python program (like RMG or ARC) spends on each function call, have anaconda:graphviz and conda-forge:gprof2dot on your env, call the software with -m cProfile -o profiling.txt (e.g., python -m cProfile -o profiling.txt ~/Code/ARC/ARC.py input.yml), then create a .dot file by typing gprof2dot -f pstats profiling.txt -o callingGraph.dot, and finally convert the .dot file into a graphics file by doing dot -Tps callingGraph.dot -o outfile.ps.

Graphics

colors

Consider using ColorBrewer to select print-friendly and color-blind-safe colors for your graphics.

Clone this wiki locally