Skip to content

Commit

Permalink
Добавил alias check-file-connection
Browse files Browse the repository at this point in the history
  • Loading branch information
boffart committed May 7, 2024
1 parent a283437 commit d2abae1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Core/System/RootFS/etc/profile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ fi
alias ls='ls --color=auto';
alias myip="curl http://ipecho.net/plain; echo";
alias remount-offload="_remountOffload";
alias check-file-connection="_checkFileConnection";
alias ps='ps -A -f';
alias sqlite3='sqlite3 -table';
alias sngrep='sngrep -r';
Expand All @@ -74,6 +75,12 @@ PS2='>'
# Set language
export LANG=en_US.utf8

_checkFileConnection()
{
lsof "$1" | awk 'NR>1 {print $2}' | xargs -I {} sh -c 'ps | grep {} | grep -v grep'
}


# Function to remount offload device
_remountOffload()
{
Expand Down

0 comments on commit d2abae1

Please sign in to comment.