commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
kill processes by user . Remove "i" if you don't want to confirm.
Alternative if "Lazy unmount" (umount -l) doesn't obey.
Alternative for NFS:
umount -f /media/sdb1
Use with caution: forcing to unmount a busy partition can cause data loss!
Useful if you are trying to umount a filesystem and need to find and kill any processes currently using the mount.
-k (kill option ) . To kill all processes accessing this port
Shell timeout variables (TMOUT) can be very liberal about what is classified as 'activity', like having an editor open. This command string will terminate the login shell for an user with more than a day's idle time.
Com o fuser voce descobre quem esta ocupando o dispositivo.
Depois pode desativar o servico manualmente. Ou se necessario, matar o servico com Kill, usando o numero PID.
ex: kill -9 1768
Display which user run process from given port name
Useful when you're trying to unmount a volume and other sticky situations where a rogue process is annoying the hell out of you.
fuser 25/tcp (see which pid is listening on smtp)