Posts

Showing posts from May 19, 2013

linux: annoying postfix install popup

Image
Perm URL with updates: http://xahlee.info/linux/linux_postfix_install_popup.htmlWhen installing postfix, it does a annoying popup. Here's a screenshot:Linux postfix installation popup screenshot.Programs shouldn't do this, because it interrupts installation.For example, this happened when i'm installing emacs dependencies by sudo apt-get build-dep emacs23. 〔☛ Building Emacs on Linux — a Guide〕 I wasn't even consciously installing postfix. You go for a coffee, expecting things will be done when you come back, but instead, you get this popup stuck on your screen.Another software that does this is MySQL.

linux: view dir as tree

Image
Perm URL with updates: http://xahlee.info/linux/linux_view_dir_as_tree.htmlyou can view directory as a tree. It prints a dir in a visual tree format, similar to pstree for processes.to install:sudo apt-get install treeFor example, here's a tree view of 〔/etc/X11〕 dir.screenshot of Linux 「tree」 command.Tree view is extremely useful, for example:When you are working on a project new to you, you have a directory, with hundreds of files, and you need to get a overview of the structure.You need to organize your files and see each's file size.Useful OptionsHere's some of the most useful options.-L ‹level› → specify depth.-P ‹pattern› → using wildcard to match file names to limit listing. ⁖ *html to show only html files.-d → show dirs only.-r → reverse order.-t → sort output my last modification time.--dirsfirst → list dir before files.--filelimit ‹n› → don't go into dir that's more than ‹n› files.-F → display file type indicator. ⁖ “/” for dir, “*” for executable, etc.-…