Karan's Programming Notes
Open File Descriptors
Initializing search
    mr-karan/notes
    mr-karan/notes
    • Home
      • CLI
      • Cloud Init
      • EC2 Metadata inside Docker
      • EC2 Pricing
      • View the volume ID in Instance
      • FAQ
      • Snippets
      • Vault
      • Query Snippets
      • Securing server with RBAC
      • CLI
      • Custom Build Output
      • Custom DNS Server
      • Custom subnet
      • CI
      • Decode JSON with proper types
      • Gotchas
      • Inspect HTTP Headers
      • Open File Descriptors
      • Profile Golang Applications
      • Update Golang Version
      • CLI
      • Debug CNI Issues
      • Control Brightness
      • Create a MacOS like screenshot effect
      • Filesystem
      • Git
      • JournalD
      • Networking
      • SystemD
      • cURL
      • Ps
      • Rsync
      • Sed
      • Add Table of Images in Markdown
      • Connect to Pritunl with a custom DNS server
      • API
      • CLI
      • Editor setup
      • Single Node Setup
      • Service List
      • Generate Million Rows
      • Reset WAL Log
      • Open File Descriptors
      • Transform requests to cURL
      • UTC to Local Time
      • Generate Random String
      • Get filename using bash
      • Get number of cores using bash
      • Line count for each file
      • Most used shell commands
      • Run a command as a different user
      • Shellscript Template
      • View a CSV file in Terminal
      • Snippets
      • Snippets

    Open File Descriptors

    See Golang/Open File Descriptors version for context.

    >>> [open("FD_TEST_%d.txt" % i, "w") for i in range(1, 1025)]
    
    OSError: [Errno 24] Too many open files: 'FD_TEST_1021.txt'
    >>> 
    
    Previous Reset WAL Log
    Next Transform requests to cURL
    Made with ❤️ by Karan.
    Made with Material for MkDocs