Find out who is accessing the current directory with lsof

Is there a more simple alternative to this?

lsof -FL -O -L -n +D . | grep -v "^p" | cut -dL -f 2 | less | sort -u


Remove content from svn repository (permanent, with history)

svnadmin create <repos_copy>
svnadmin dump <repos> | svndumpfilter exclude <path> | svnadmin load <repos_copy>


bash completion

compgen -A action -- <pattern>

-A action
The action may be one of the following to generate a list of possible
completions:
alias Alias names. May also be specified as -a.
arrayvar
Array variable names.
binding Readline key binding names.
builtin Names of shell builtin commands. May also be specified as -b.
command Command names. May also be specified as -c.
directory
Directory names. May also be specified as -d.
disabled
Names of disabled shell builtins.
enabled Names of enabled shell builtins.
export Names of exported shell variables. May also be specified as
-e.
file File names. May also be specified as -f.
function
Names of shell functions.
group Group names. May also be specified as -g.
helptopic
Help topics as accepted by the help builtin.
hostname
Hostnames, as taken from the file specified by the HOSTFILE
shell variable.
job Job names, if job control is active. May also be specified as
-j.
keyword Shell reserved words. May also be specified as -k.
running Names of running jobs, if job control is active.
service Service names. May also be specified as -s.
setopt Valid arguments for the -o option to the set builtin.
shopt Shell option names as accepted by the shopt builtin.
signal Signal names.
stopped Names of stopped jobs, if job control is active.
user User names. May also be specified as -u.
variable
Names of all shell variables. May also be specified as -v.


This page is powered by Blogger. Isn't yours?