What version of Linux are we running?
In [13]:
    
!lsb_release -a
    
    
What version of Python are we running?
In [14]:
    
import sys
print(sys.version)
    
    
What version of Jupyter are we running?
In [18]:
    
import jupyter
print(jupyter.__version__)
    
    
In [19]:
    
!cat hello.c
    
    
Let's compile a simple C file that contains the K&R Hello, World code
In [20]:
    
!gcc -o hello hello.c
    
Now, let's run that file
In [21]:
    
!./hello
    
    
How big is hello.c?
In [22]:
    
!ls -l hello
    
    
In [27]:
    
!pip3 install pyelftools
    
    
In [38]:
    
from elftools.elf.elffile import ELFFile
f = open('hello', 'rb')
elffile = ELFFile(f)
    
In [39]:
    
for sect in elffile.iter_sections():
    print(sect)
    
    
In [ ]: