Skip to content

Commit

Permalink
Maybe list more open files
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Dec 7, 2023
1 parent fcb7d17 commit bee7c8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ trace_process() {
}

open_files() {
sudo lsof -s | awk '$5 == "REG"' | sort -n -r -k 7,7 | head -n 50
i=${1:-50}
sudo lsof -s | awk '$5 == "REG"' | sort -n -r -k 7,7 | head -n "$i"
}

git_recover_file() {
Expand Down

0 comments on commit bee7c8a

Please sign in to comment.