Archive:

Month: May 2012


watch what is slowing down your linux

By: | Post date: May 31, 2012 | Comments: No Comments

Posted in categories: Computer Tips, Work related

ps aux | awk ‘\$8 ~ /D/ { print \$0 }’ watch -n 1 “(ps aux | awk ‘\$8 ~ /D/ { print \$0 }’)”

Simple guide for executable chroot jail

By: | Post date: May 29, 2012 | Comments: 1 Comment

Posted in categories: Computer Tips, Work related

1. Install Jailkit, CentOS rpm available in rpmforge repo. 2. mkdir -p # to define your jail root 3. jk_init -v -j ssh # to allow ssh in your jail 4. jk_jailuser -j # to move the user into the jail 5. Edit /etc/jailkit/jk_init.ini and /etc/jailkit/jk_socketd.ini # to match your system 6. jk_cp -v -f […]

A painful lesson of a linux quibble

By: | Post date: May 23, 2012 | Comments: No Comments

Posted in categories: Computer Tips, Work related

It has been longly debated that there is not a liable way to do undelete on linux file system. Only for this, extundelete has provided a workaround. However, mainly the need of undelete comes from the over-powerful command “rm”. Suppose any user committed “rm -rf /*” or “cd /; rm -rf *”, the command will […]

[Samba] how to list computers that are joined to the domain?

By: | Post date: May 16, 2012 | Comments: No Comments

Posted in categories: Computer Tips, Work related

This will get you workstation a domain trust accounts: pdbedit -L -w | grep ‘\[[WI]’