South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
think i read this somewhere on these forums, but lazy unmount is awesome
umount -l /mnt/durp
top
iptraf
rsync
ssh -C2qTnN -D 8080 username@remote_machine.com
umount -l = Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.)Im too lazy to google, what does lazy unmount do?
For process list and to see whats wasting process`s.Code:top
I don't know exactly why, but this will do the same:ps ax | grep screen | grep -v grep
removes the grep process from the grep-ed process list. Helps to check if process are still running and restart them if they arent.
in this case im looking if screen is running
ps ax | grep [s]creen
updatedb && locate whatever
If you do this every once in a while it should take less than a second. You can alias it in .bashrc
alias locate='sudo updatedb && locate'