ipython tips

 — 

IPython is a very helpful tool in prototyping and testing code in python. Its many rich features make exploring code base's painless and easy.

installation

pip install -U ipython
ipython

magic

ipython has a set of "magic" commands + %load - loads file (copies file into repl) + %run - runs file (global variables …

Category: python Tags:

Compressing files

 — 

tar

Compressing files with tar is simple

# compress
tar cvfz compressed.tar.gz directory_to_compress/
# uncompress
tar xvfz compressed.tar.gz
argument what it does
c create new archive
z compress/uncompress with gzip
j compress/uncompress with bzip
v list files to standard output that are handled
f after this …
Category: bash Tags:

© Salah Ahmed 2016

Powered by Pelican