Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by 1718627440

13 days ago

I do not know what "Linux" you are using.

    user@machine:~$ python3
    >>> with open('/tmp/a', 'wb') as f:
    ...     f.write (b'a'*1000);
    ... 
    1000
    >>> with open('/tmp/b', 'wb') as f:
    ...     f.write (b'a'*1024);
    ... 
    1024

    $ ll /tmp -h
    -rw-r--r-- 1 user user 1000 Feb  5 10:40 a
    -rw-r--r-- 1 user user 1.0K Feb  5 10:40 b

0 comments

1718627440

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities