Posts

Showing posts from June, 2013

Grep option from Jua

Today tasks, when we want to grep something we use >> ls -l | grep Jua tell me, if i need everything except >> ls -l | grep -v    # I think it's come from exclude by help said invert match!!! ### Thank Jua :) Anyway, we can use some simple regular expression by >> ls -l | grep -e [regex] such as >> ls -l | grep -e ^B

Clean chroot manually

I mess around schroot, chroot and mkschroot(  https://github.com/KayEss/mkschroot  ). Done something with blind but do not want to remove them with blind So!!! thank for link at the page's bottom. The instruction below are what I have done for remove unwanted chroot. 1. Check mounted sys by     >> df -ah     * you will see chroot mount path. 2. Goto /var/lib/schroot     - remove your's chroot inside session's dir     - do unmount  proc sys dev/pts dev tmp  in your's chroot from mount's dir     * I'd use     >> for f in proc sys dev/pts dev tmp;do sudo umount $f;done;     - do unmount your's chroot     thank for  http://manpages.ubuntu.com/manpages/natty/man7/schroot-faq.7.html

Write a better python with Guide

I found this during i sit down in Lib of Burapha U. http://docs.python-guide.org/en/latest/ , it look like interesting guide and worth to read. :) thanks, hitchhiker