Skip to content

Welcome to Tech by Example

Menu
  • Home
  • Posts
  • System Design Questions
Menu

Tag: file

How to check the file size and directory size on Linux

Posted on June 27, 2021June 27, 2021 by admin

1. Using ‘du -sh’ command Syntax Example Find the size of the file. Find the size of the directory. Find the size of all files in a dictionary. 2. Using ‘stat’ command…

How to read a file in python?

Posted on June 17, 2021June 17, 2021 by admin

Using open method: We open files with the open method and read file contents using the read method. Note: With context handles the closing of the file is done automatically so you don’t…

©2025 Welcome to Tech by Example | Design: Newspaperly WordPress Theme