Skip to content

jasonblanchard/filesystem-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

File System Experiment

  1. go run main.go
  2. px aux | grep main.go
  3. Grab pid from ^
  4. pgrep -P [pid]
  5. Grab child pid from ^
  6. lsof -p [pid]
  7. Sort it: lsof -p [pid] | sort -n -r -k7
  8. rm output.txt
  9. Watch the file count continue to go up from previous step because the file descriptor is still open.

Sort all file handlers by size:

lsof | sort -n -r -k7 | head -10

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages