Skip to content

Instantly share code, notes, and snippets.

View raykipkorir's full-sized avatar
👨‍💻
Progress, not perfection!

Raymond Kipkorir raykipkorir

👨‍💻
Progress, not perfection!
View GitHub Profile

Linux commands

Basic commands

ls [options] [directory] -> list contents of a directory
  ls -a
  ls -la
pwd
cat
echo
import socket
HOST = "127.0.0.1"
PORT = 2000
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind((HOST, PORT))
s.listen()
conn, addr = s.accept()
with conn: