Powered by AppSignal & Oban Pro

Exploring NSK

completed_livebooks/exploring_nsk.livemd

Exploring NSK

Introduction

<- Back to index

Using Toolshed Functions

import Toolshed
# Get the current weather from wttr.in
weather()
# List network interfaces
ifconfig()
# List USB devices
lsusb()

Reading the Filesystem Directly

"/proc/cpuinfo"
|> File.read!() 
|> IO.puts
File.ls!("/sys/class")
File.ls!("/dev")