carfield.com.hk network.txt 2020-10-11T13:30:21Z 2020-10-11T13:30:21Z <br/>TCP tuning - <a href="http://rodrickbrown.com/blog/?p=127">http://rodrickbrown.com/blog/?p=127</a> <br/><br/>UNIX network performance analysis - <a href="http://www.ibm.com/developerworks/aix/library/au-networkperfanalysis">http://www.ibm.com[..]works/aix/library/au-networkperfanalysis</a> <br/><br/>Netstat tips - <a href="http://www.thegeekstuff.com/2010/03/netstat-command-examples/">http://www.thegeekstuff.com/2010/03/netstat-command-examples/</a> <br/><br/>Introduction to a lot of difference commands - <a href="http://tech.varghees.com/2011/01/25/commonly-used-network-monitoring-commands-in-linux-part-i">http://tech.varghees.com[..]work-monitoring-commands-in-linux-part-i</a> <br/><br/>Commandline tools which can do most HTTP message - <a href="http://www.thekua.com/atwork/2011/11/scripting-web-applications-with-curl/">http://www.thekua.com[..]11/scripting-web-applications-with-curl/</a> <br/><br/>Tools to show contents from network - <a href="http://coding.smashingmagazine.com/2012/10/29/powerful-command-line-tools-developers/">http://coding.smashingmagazine.com[..]/powerful-command-line-tools-developers/</a> <br/><br/><a href="http://java67.blogspot.com.au/2012/12/unix-command-to-find-ip-address-from-hostname.html">http://java67.blogspot.com.au[..]nd-to-find-ip-address-from-hostname.html</a> <br/><br/>/proc/sys/net/core/<br/>/rmem_default: The default setting of the socket receive buffer in bytes.<br/>/rmem_max: The maximum receive socket buffer size in bytes.<br/>/wmem_default: The default setting (in bytes) of the socket send buffer.<br/>/wmem_max: The maximum send socket buffer size in bytes.<br/>Only for Linux - <a href="http://www.lainoox.com/view-or-set-socket-receive-buffer-size/">http://www.lainoox.com/view-or-set-socket-receive-buffer-size/</a> <br/><br/>Getting IP of the host: <a href="http://whatismyipaddress.com/">http://whatismyipaddress.com/</a> "wget <a href="http://ipecho.net/plain">http://ipecho.net/plain</a> -O - -q ; echo" from - <a href="http://ru05team.blogspot.com.au/2013/06/if-you-want-to-check-you-current-public.html">http://ru05team.blogspot.com.au[..]ou-want-to-check-you-current-public.html</a> <br/><br/>Use tcpdump and tshark to monitor network activity - <a href="http://jvns.ca/blog/2016/03/16/tcpdump-is-amazing/">http://jvns.ca/blog/2016/03/16/tcpdump-is-amazing/</a> <br/><br/>一篇文章搞定 Nginx 反向代理与负载均衡 - <a href="https://xie.infoq.cn/article/d7ad4d2500d6ce6a4ce3b9c16">https://xie.infoq.cn/article/d7ad4d2500d6ce6a4ce3b9c16</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2020-10-11T13:30:21Z vim.txt 2020-10-11T11:58:45Z 2020-10-11T11:58:45Z <br/>Web base vim as tutorials - <a href="http://www.knowvim.com/">http://www.knowvim.com/</a> <a href="http://www.openvim.com/tutorial.html">http://www.openvim.com/tutorial.html</a> <br/><br/>History of VIM - <a href="http://arstechnica.com/open-source/news/2011/11/two-decades-of-productivity-vims-20th-anniversary.ars">http://arstechnica.com[..]f-productivity-vims-20th-anniversary.ars</a> <br/><br/>Guide for editing text object, most already familiar with using 'w' for word editing, this blog discuss more about using 'p' for paragrahy and other related stuff. - <a href="http://blog.carbonfive.com/2011/10/17/vim-text-objects-the-definitive-guide/">http://blog.carbonfive.com[..]7/vim-text-objects-the-definitive-guide/</a> <br/><br/>Seven habits of effective text editing , a lot of nice tip of using vim, like hlsearch , omni-completion<br/><br/><a href="http://www.moolenaar.net/habits.pdf">http://www.moolenaar.net/habits.pdf</a> <br/><a href="http://video.google.com/videoplay?docid=2538831956647446078">http://video.google.com/videoplay?docid=2538831956647446078</a> <br/><br/>vimdiff tips - <a href="http://blog.objectmentor.com/articles/2008/04/30/vim-as-a-diff-merge-tool">http://blog.objectmentor.com[..]cles/2008/04/30/vim-as-a-diff-merge-tool</a> <a href="http://gcody.blog.ccidnet.com/blog-htm-itemid-1099899-uid-36931-do-showone-type-blog.html">http://gcody.blog.ccidnet.com[..]9899-uid-36931-do-showone-type-blog.html</a> <br/><br/>How to regex with line number - <a href="http://vim.wikia.com/wiki/Insert_line_numbers_2">http://vim.wikia.com/wiki/Insert_line_numbers_2</a> <br/><br/>cheat sheet of jumping around source code - <a href="http://www.faqs.org/docs/Linux-HOWTO/C-editing-with-VIM-HOWTO.html">http://www.faqs.org[..]inux-HOWTO/C-editing-with-VIM-HOWTO.html</a> <br/><br/>Nice analysis of good programming environment - <a href="http://www.benrady.com/2009/12/why-i-switched-from-textmate-to-vim.html">http://www.benrady.com[..]why-i-switched-from-textmate-to-vim.html</a> <br/><br/>Creating macros in vim - <a href="http://smartic.us/2010/02/03/creating-macros-in-vim">http://smartic.us/2010/02/03/creating-macros-in-vim</a> <br/><br/><a href="http://www.markhneedham.com/blog/2010/12/27/vim-learnings-so-far/">http://www.markhneedham.com/blog/2010/12/27/vim-learnings-so-far/</a> <- introduction to Command-T and FuzzyFinder <br/><br/>Some VIM tips:<br/><br/>Essential Vim editor navigation commands<br/>Vim search and replace – 12 powerful find and replace examples.<br/>How To add bookmarks inside the Vim editor<br/>How To record and play inside the Vim editor<br/>Correct spelling mistakes automatically inside the Vim Editor<br/>Automatic word completion using Ctrl-X<br/>Enable thesaurus option in the Vim editor<br/>Vim autocommand magic. Add custom header to your files automatically.<br/>Convert Vim editor to a beautiful source code browser.<br/>Use the Vim editor as a bash IDE, or C/C++ IDE, or Perl IDE.<br/><br/><a href="http://www.thegeekstuff.com/2010/04/vim-editor-tutorial/">http://www.thegeekstuff.com/2010/04/vim-editor-tutorial/</a> <a href="https://spin.atomicobject.com/2016/04/19/vim-commands-cheat-sheet/">https://spin.atomicobject.com[..]com/2016/04/19/vim-commands-cheat-sheet/</a> <br/><br/>ctrl+w, ctrl+w , vimdiff switch folder - hack2live.blogspot.com/2009/02/vimdiff-shortcut-keys.html<br/><br/>tutorial - <a href="http://javarevisited.blogspot.com/2011/06/vi-editor-in-unix-example-tutorial-and.html">http://javarevisited.blogspot.com[..]editor-in-unix-example-tutorial-and.html</a> <a href="https://danielmiessler.com/study/vim/">https://danielmiessler.com/study/vim/</a> <a href="https://www.reddit.com/r/vim/comments/3mfvdg/how_do_i_go_about_learning_vim/">https://www.reddit.com[..]s/3mfvdg/how_do_i_go_about_learning_vim/</a> <br/><br/>Compilation plugin - <a href="http://www.vim.org/scripts/script.php?script_id=3115#2.9.3">http://www.vim.org/scripts/script.php?script_id=3115#2.9.3</a> <br/><br/>Highlight multiple searches at the same time, each with a different color. - <a href="http://www.vim.org/scripts/script.php?script_id=479">http://www.vim.org/scripts/script.php?script_id=479</a> <a href="http://www.vim.org/scripts/script.php?script_id=2666#2.6.0">http://www.vim.org/scripts/script.php?script_id=2666#2.6.0</a> <br/><br/>C/C++ IDE - <a href="http://www.vim.org/scripts/script.php?script_id=213">http://www.vim.org/scripts/script.php?script_id=213</a> <a href="http://blog.wuwon.id.au/2011/10/vim-plugin-for-navigating-c-with.html">http://blog.wuwon.id.au[..]10/vim-plugin-for-navigating-c-with.html</a> <br/><br/>Evil, putting vi in emacs - <a href="http://spin.atomicobject.com/2013/02/28/emacs-or-vim-evil/">http://spin.atomicobject.com/2013/02/28/emacs-or-vim-evil/</a> <br/><br/>Fixing syntax at solaris, "export TERM=xtermc", ":syntax enable" - <a href="http://kdl.nobugware.com/post/2006/12/01/23-xterm-color-on-unix">http://kdl.nobugware.com/post/2006/12/01/23-xterm-color-on-unix</a> <br/><br/>Graph your Vim undo tree in style. - <a href="http://sjl.bitbucket.org/gundo.vim/">http://sjl.bitbucket.org/gundo.vim/</a> <br/><br/>Introduction to Selecta and Command-T, tool for fuzzy mapping and open files easier - <a href="http://marcovaltas.com/2013/12/27/selecta-on-vim-wildignore.html">http://marcovaltas.com/2013/12/27/selecta-on-vim-wildignore.html</a> <br/><br/><a href="http://superuser.com/questions/86246/where-should-the-vimrc-file-be-located-on-windows-7">http://superuser.com[..]d-the-vimrc-file-be-located-on-windows-7</a> <br/><br/>Open Visual Studio config as XML - <a href="https://groups.google.com/forum/#!topic/vim_use/HzVM9tjJP08">https://groups.google.com/forum/#!topic/vim_use/HzVM9tjJP08</a> <br/><br/>Snippert library ( e.g. function template ) - <a href="https://www.reddit.com/r/vim/comments/3h7lca/which_snippet_library_do_you_use/">https://www.reddit.com[..]3h7lca/which_snippet_library_do_you_use/</a> <br/><br/><a href="https://www.reddit.com/r/vim/comments/3h6tef/what_are_your_musthave_configs_and_plugins/">https://www.reddit.com[..]t_are_your_musthave_configs_and_plugins/</a> <br/><br/><a href="https://www.reddit.com/r/vim/comments/2w22gf/edit_google_docs_with_vim/">https://www.reddit.com[..]mments/2w22gf/edit_google_docs_with_vim/</a> <br/><br/><a href="https://www.reddit.com/r/vim/comments/3ijsi2/original_post_a_vimrc_primer/">https://www.reddit.com[..]nts/3ijsi2/original_post_a_vimrc_primer/</a> <br/><br/><a href="https://www.reddit.com/r/vim/comments/3n34j4/do_you_use_an_autocomplete_plugin_if_yes_which_one/">https://www.reddit.com[..]an_autocomplete_plugin_if_yes_which_one/</a> <br/><br/>gUU to turn whole line upper case, and guu to turn whole line lower case - <a href="https://www.reddit.com/r/vim/comments/3j90lv/til_guu_guu_makes_an_entire_line_lowercase_and/">https://www.reddit.com[..]_guu_makes_an_entire_line_lowercase_and/</a> <br/><br/>can use :TOhtml to turn a text file to HTML - <a href="http://jezenthomas.com/how-i-write-invoices-in-vim/">http://jezenthomas.com/how-i-write-invoices-in-vim/</a> <br/><br/>set encoding=utf-8 - <a href="https://www.reddit.com/r/vim/comments/ge8mf/ask_vim_how_to_reliably_switch_to_using_utf8_by/">https://www.reddit.com[..]how_to_reliably_switch_to_using_utf8_by/</a> <br/><br/>If you like to test the regex for vi, can refer to this - <a href="http://www.virex.org/">http://www.virex.org/</a> <br/><br/><a href="http://www.hostingadvice.com/blog/vim-creator-champions-charityware/">http://www.hostingadvice.com[..]/blog/vim-creator-champions-charityware/</a> <br/><br/>Another blog about using vim as IDE - <a href="https://spacevim.org/2017/02/11/use-vim-as-a-java-ide">https://spacevim.org/2017/02/11/use-vim-as-a-java-ide</a> <br/><br/>vim cheat sheet - <a href="https://i.redd.it/8xu7welujmx41.png">https://i.redd.it/8xu7welujmx41.png</a> <a href="http://vimsheet.com">http://vimsheet.com</a> <a href="https://github.com/ibhagwan/dots/blob/master/README-vim.md">https://github.com/ibhagwan/dots/blob/master/README-vim.md</a> <br/><br/><a href="https://blog.antoyo.xyz/vim-tips">https://blog.antoyo.xyz/vim-tips</a> <a href="https://simianwesthighlandterrier.htmlpasta.com/">https://simianwesthighlandterrier.htmlpasta.com/</a> <br/><br/><a href="https://www.reddit.com/r/vim/comments/f4prel/i_started_using_spacemacsevil_and_made_this_vim/">https://www.reddit.com[..]d_using_spacemacsevil_and_made_this_vim/</a> <br/><br/>How Vim works internally? - <a href="https://www.reddit.com/r/vim/comments/hpt9l9/how_vim_works_internally/">https://www.reddit.com[..]omments/hpt9l9/how_vim_works_internally/</a> <br/><br/>Sample example of a VIM plugin - <a href="https://www.statox.fr/posts/vim/vim_flash_yanked_text/">https://www.statox.fr/posts/vim/vim_flash_yanked_text/</a> <br/><br/>Vim has a built-in Emoji Picker! 勞️ - <a href="https://www.reddit.com/r/vim/comments/ioewb0/vim_has_a_builtin_emoji_picker/">https://www.reddit.com[..]s/ioewb0/vim_has_a_builtin_emoji_picker/</a> <br/><br/>Fast Typing: vi - <a href="https://codefaster.substack.com/p/fast-typing-vi">https://codefaster.substack.com/p/fast-typing-vi</a> <br/><br/>Vim as HTTP client - <a href="https://nazarii.bardiuk.com/posts/vim-curl.html">https://nazarii.bardiuk.com/posts/vim-curl.html</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2020-10-11T11:58:45Z filesystem.txt 2020-05-18T03:41:19Z 2020-05-18T03:41:19Z <br/>Advisory Locking and Mandatory Locking - <a href="http://www.thegeekstuff.com/2012/04/linux-file-locking-types/">http://www.thegeekstuff.com/2012/04/linux-file-locking-types/</a> <br/><br/>Basic info of inode - <a href="http://www.thegeekstuff.com/2012/01/linux-inodes/">http://www.thegeekstuff.com/2012/01/linux-inodes/</a> <br/><br/>Explanation of /proc filesystem - <a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/ref-guide/s1-proc-directories.html">http://www.redhat.com[..]anual/ref-guide/s1-proc-directories.html</a> <br/><br/>Linux file system structure - <a href="http://www.thegeekstuff.com/2010/09/linux-file-system-structure/">http://www.thegeekstuff.com/2010/09/linux-file-system-structure/</a> <br/><br/>File system for archive files - <a href="http://linuxtoy.org/archives/avfs.html">http://linuxtoy.org/archives/avfs.html</a> <br/><br/>BeOS file system, other than discuss about BeOS FS, also discussing about evolution of design of file system - <a href="http://arstechnica.com/open-source/news/2010/06/the-beos-filesystem.ars">http://arstechnica.com[..]rce/news/2010/06/the-beos-filesystem.ars</a> <a href="http://arstechnica.com/hardware/news/2008/03/past-present-future-file-systems.ars/">http://arstechnica.com[..]03/past-present-future-file-systems.ars/</a> <br/><br/>ZFS - <a href="http://www.thegeekstuff.com/2015/07/zfs-on-linux-zpool/">http://www.thegeekstuff.com/2015/07/zfs-on-linux-zpool/</a> <a href="https://clusterhq.com/2014/09/11/file-systems-data-loss-zfs/">https://clusterhq.com/2014/09/11/file-systems-data-loss-zfs/</a> <a href="http://www.linuxjournal.com/content/zfs-linux">http://www.linuxjournal.com/content/zfs-linux</a> <a href="https://arstechnica.com/information-technology/2020/05/zfs-101-understanding-zfs-storage-and-performance/">https://arstechnica.com[..]derstanding-zfs-storage-and-performance/</a> <br/><br/> The file size of command "df" return is compressed data, raw disk usage<br/> If we want compress amount, we need to get the compressratio using /usr/sbin/zfs<br/> We can get more system detail via perl package Sun::Solaris::Kstat , we can google "arc_summary.pl" as an example<br/><br/>Using ZFS as version control - <a href="http://zef.me/blog/6023/who-needs-git-when-you-got-zfs">http://zef.me/blog/6023/who-needs-git-when-you-got-zfs</a> <br/><br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2020-05-18T03:41:19Z monitoring.txt 2020-04-10T14:49:53Z 2020-04-10T14:49:53Z <br/>Using unhide to check hidden process - <a href="http://www.ubuntugeek.com/unhide-the-opensource-forensic-tool.html">http://www.ubuntugeek.com[..]unhide-the-opensource-forensic-tool.html</a> <br/><br/>fuser, check which user using the file or directory - <a href="http://www.thegeekstuff.com/2012/02/linux-fuser-command/">http://www.thegeekstuff.com/2012/02/linux-fuser-command/</a> <br/><br/>htop, look much better than top - <a href="http://nerds-central.blogspot.com/2011/06/right-no-i-am-loving-htop-it-is-linux.html">http://nerds-central.blogspot.com[..]ght-no-i-am-loving-htop-it-is-linux.html</a> <a href="http://www.thegeekstuff.com/2011/09/linux-htop-examples">http://www.thegeekstuff.com/2011/09/linux-htop-examples</a> <br/><br/>Tutorial of both lsof and pstack - <a href="http://myhowto.org/solving-problems/5-exploring-system-internals-with-lsof-and-strace/#strace_run">http://myhowto.org[..]ternals-with-lsof-and-strace/#strace_run</a> <br/><br/>Tutorial of SAR - <a href="http://www.thegeekstuff.com/2011/03/sar-examples">http://www.thegeekstuff.com/2011/03/sar-examples</a> . In Solaris, you can check SAR from previous days using "sar -f /var/adm/sa/sa30 <options>" ( last 30th ) <br/><br/>If we like to see the detail from "ps" command:<br/>solaris: /usr/ucb/ps -awwx , or, use pargs, but need sudo to that user - <a href="http://javarevisited.blogspot.com.au/2015/01/solaris-command-to-show-long-argument-of-running-process.html">http://javarevisited.blogspot.com.au[..]ow-long-argument-of-running-process.html</a> <br/>linux: ps -aef --cols [XXXX]<br/><br/>prstat - use prstat instead of ps in solaris <a href="http://developers.sun.com/solaris/articles/prstat.html">http://developers.sun.com/solaris/articles/prstat.html</a> <br/>How to check physical memory on solaris? /usr/sbin/prtconf | grep Memory <a href="http://www.dbapool.com/faqs/Q_116.html">http://www.dbapool.com/faqs/Q_116.html</a> <br/><br/>Other forensics tools - <a href="http://www.forensicfocus.com/computer-forensics-software-intro.php">http://www.forensicfocus.com[..]om/computer-forensics-software-intro.php</a> <br/><br/>Sun monitoring tools collections - <a href="http://blogs.sun.com/toddjobson/entry/solaris_performance_monitoring_tools">http://blogs.sun.com[..]try/solaris_performance_monitoring_tools</a> <a href="http://tech.varghees.com/2011/01/21/commonly-used-system-monitoring-commands-in-linux/">http://tech.varghees.com[..]sed-system-monitoring-commands-in-linux/</a> <br/><br/>time, basic unix util - <a href="http://www.thegeekstuff.com/2013/10/time-command-format">http://www.thegeekstuff.com/2013/10/time-command-format</a> <br/><br/><a href="http://www.baptiste-wicht.com/2013/12/zabbix-low-level-discovery-cores-cpus-hard-disk/">http://www.baptiste-wicht.com[..]ow-level-discovery-cores-cpus-hard-disk/</a> <br/><br/>10 commands for system monitoring - <a href="http://techblog.netflix.com/2015/11/linux-performance-analysis-in-60s.html">http://techblog.netflix.com[..]1/linux-performance-analysis-in-60s.html</a> <a href="http://www.infoq.com/cn/news/2015/12/linux-performance">http://www.infoq.com/cn/news/2015/12/linux-performance</a> <br/><br/><a href="https://linuxcommando.blogspot.com/2020/04/inxi-swiss-army-knife-for-displaying.html">https://linuxcommando.blogspot.com[..]nxi-swiss-army-knife-for-displaying.html</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2020-04-10T14:49:53Z Linux.txt 2018-07-20T07:09:56Z 2018-07-20T07:09:56Z <br/>How to get the system thread version - getconf GNU_LIBPTHREAD_VERSION <a href="http://groups.google.com/group/comp.programming.threads/browse_thread/thread/81ff4b5d1ea3372d?hl=en">http://groups.google.com[..]wse_thread/thread/81ff4b5d1ea3372d?hl=en</a> <br/><br/>How to prevent module getting load, by edit /etc/modprobe.d/blacklist.conf : <a href="http://www.basshero.org/62/how-to-disable-devices-in-ubuntu/">http://www.basshero.org/62/how-to-disable-devices-in-ubuntu/</a> <br/><br/>Standard Linux error code - <a href="http://www.thegeekstuff.com/2010/10/linux-error-codes/">http://www.thegeekstuff.com/2010/10/linux-error-codes/</a> <br/><br/><a href="http://www.thegeekstuff.com/2011/03/linux-performance-monitoring-intro">http://www.thegeekstuff.com[..]11/03/linux-performance-monitoring-intro</a> <br/><br/>Discussion about why Linux is way faster than Windows for huge number of small file processing - <a href="http://stackoverflow.com/questions/6916011/how-do-i-get-windows-to-go-as-fast-as-linux-for-compiling-c">http://stackoverflow.com[..]s-to-go-as-fast-as-linux-for-compiling-c</a> <a href="http://games.greggman.com/game/why-is-windows-so-slow/">http://games.greggman.com/game/why-is-windows-so-slow/</a> <br/><br/>"sync; sudo echo 3 > /proc/sys/vm/drop_caches" - <a href="http://www.ubuntugeek.com/how-to-clear-cached-memory-on-ubuntu.html">http://www.ubuntugeek.com[..]ow-to-clear-cached-memory-on-ubuntu.html</a> <br/><br/>Funny linux commands - <a href="http://www.pixelstech.net/article/1370744983-Funny-Linux-commands">http://www.pixelstech.net/article/1370744983-Funny-Linux-commands</a> <br/><br/>25 years of linux - <a href="https://medium.freecodecamp.com/linux-is-25-yay-lets-celebrate-with-25-rad-facts-about-linux-c8d8ac30076d#.m6b9wnhni">https://medium.freecodecamp.com[..]acts-about-linux-c8d8ac30076d#.m6b9wnhni</a> <br/><br/>basic-principle-of-Linux-privilege-control - <a href="http://www.infoq.com/cn/articles/basic-principle-of-Linux-privilege-control">http://www.infoq.com[..]sic-principle-of-Linux-privilege-control</a> <br/><br/>New approach to save memory - <a href="https://code.fb.com/production-engineering/open-sourcing-oomd-a-new-approach-to-handling-ooms/">https://code.fb.com[..]ng-oomd-a-new-approach-to-handling-ooms/</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2018-07-20T07:09:56Z text.txt 2017-08-06T09:21:16Z 2017-08-06T09:21:16Z <br/>10 awk tips - <a href="http://www.catonmat.net/blog/ten-awk-tips-tricks-and-pitfalls/">http://www.catonmat.net/blog/ten-awk-tips-tricks-and-pitfalls/</a> <br/><br/>8 Powerful Awk Built-in Variables – FS, OFS, RS, ORS, NR, NF, FILENAME, FNR - <a href="http://www.thegeekstuff.com/2010/01/8-powerful-awk-built-in-variables-fs-ofs-rs-ors-nr-nf-filename-fnr/">http://www.thegeekstuff.com[..]iables-fs-ofs-rs-ors-nr-nf-filename-fnr/</a> <br/><br/>Tutorial of text editing commands - <a href="http://www.ibm.com/developerworks/aix/library/au-unixtext/index.html">http://www.ibm.com[..]works/aix/library/au-unixtext/index.html</a> <br/><br/>wc and nl tutorial - <a href="http://www.thegeekstuff.com/2013/02/wc-nl-examples/">http://www.thegeekstuff.com/2013/02/wc-nl-examples/</a> <a href="https://enkipro.com/insight/558ac712249a234c00842b68">https://enkipro.com/insight/558ac712249a234c00842b68</a> <br/><br/>tips for uniq, like show only items have duplications - <a href="http://www.thegeekstuff.com/2013/05/uniq-command-examples/">http://www.thegeekstuff.com/2013/05/uniq-command-examples/</a> <br/><br/>Tips of "cat", include display by column and by delimiter - <a href="http://www.thegeekstuff.com/2013/06/cut-command-examples/">http://www.thegeekstuff.com/2013/06/cut-command-examples/</a> <br/><br/>Using lynx to convert HTML to text - <a href="https://enkipro.com/insight/558aaea45800843200bca364">https://enkipro.com/insight/558aaea45800843200bca364</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2017-08-06T09:21:16Z file.txt 2017-08-06T09:20:16Z 2017-08-06T09:20:16Z <br/>Various ways to working with file - <a href="http://www.catonmat.net/blog/bash-one-liners-explained-part-one/">http://www.catonmat.net/blog/bash-one-liners-explained-part-one/</a> <br/><br/>Use truncate to pad the file size up - <a href="http://www.lainoox.com/truncate-shrink-extend-files/">http://www.lainoox.com/truncate-shrink-extend-files/</a> <br/><br/>Making a file unalterable with chattr - <a href="https://enkipro.com/insight/558ac712249a234c00842b68">https://enkipro.com/insight/558ac712249a234c00842b68</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2017-08-06T09:20:16Z performance.txt 2017-07-30T09:10:51Z 2017-07-30T09:10:51Z <br/>Few config suggestions - <a href="http://blog.monitis.com/index.php/2011/05/11/20-linux-server-performance-tips-part-2/">http://blog.monitis.com[..]20-linux-server-performance-tips-part-2/</a> <br/><br/>Linux kernel profiling with perf - <a href="https://perf.wiki.kernel.org/index.php/Tutorial">https://perf.wiki.kernel.org/index.php/Tutorial</a> <a href="http://lxr.free-electrons.com/source/tools/perf/design.txt">http://lxr.free-electrons.com/source/tools/perf/design.txt</a> <br/><br/>Intel VTune Amplifier profiler - <a href="http://software.intel.com/en-us/intel-vtune-amplifier-xe">http://software.intel.com/en-us/intel-vtune-amplifier-xe</a> <br/><br/>Oracle solaris studio - <a href="http://www.oracle.com/technetwork/server-storage/solarisstudio/overview/index.html">http://www.oracle.com[..]torage/solarisstudio/overview/index.html</a> <br/><br/><a href="http://www.brendangregg.com/linuxperf.html">http://www.brendangregg.com/linuxperf.html</a> <- "This page links to various Linux performance material I've created, including the tools maps on the right." <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2017-07-30T09:10:51Z development.txt 2017-06-14T10:34:19Z 2017-06-14T10:34:19Z <br/>A bash debugger - <a href="http://bashdb.sourceforge.net/">http://bashdb.sourceforge.net/</a> <br/><br/>Really really good tips - <a href="http://fahdshariff.blogspot.com.au/2013/10/shell-scripting-best-practices.html">http://fahdshariff.blogspot.com.au[..]3/10/shell-scripting-best-practices.html</a> <br/><br/>Style guide - <a href="http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming">http://www.kfirlavi.com[..]og/2012/11/14/defensive-bash-programming</a> <br/><br/>Script checker - <a href="https://www.shellcheck.net/">https://www.shellcheck.net/</a> <br/><br/>How to write a shell - <a href="https://indradhanush.github.io/blog/writing-a-unix-shell-part-1">https://indradhanush.github.io/blog/writing-a-unix-shell-part-1</a> <a href="https://indradhanush.github.io/blog/writing-a-unix-shell-part-2">https://indradhanush.github.io/blog/writing-a-unix-shell-part-2</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2017-06-14T10:34:19Z desktop.txt 2017-01-20T03:52:35Z 2017-01-20T03:52:35Z <br/>Some useful tools - <a href="https://nicolas.perriault.net/code/2016/from-osx-to-ubuntu/">https://nicolas.perriault.net/code/2016/from-osx-to-ubuntu/</a> <br/><br/>Tuning - <a href="http://www.akitaonrails.com/2017/01/17/optimizing-linux-for-slow-computers">http://www.akitaonrails.com[..]1/17/optimizing-linux-for-slow-computers</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2017-01-20T03:52:35Z bug.txt 2016-11-30T04:57:15Z 2016-11-30T04:57:15Z <br/>25 years old bug - <a href="http://www.osnews.com/story/19731/The-25-Year-Old-UNIX-Bug">http://www.osnews.com/story/19731/The-25-Year-Old-UNIX-Bug</a> <br/><br/>The problem of copying to other machine and screw up the permission - <a href="http://unixhorrorstories.blogspot.hk/2011/08/unix-horror-stories-good-thing-about.html">http://unixhorrorstories.blogspot.hk[..]nix-horror-stories-good-thing-about.html</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2016-11-30T04:57:15Z reference.txt 2016-10-06T15:23:20Z 2016-10-06T15:23:20Z <br/>A very nice sectioned list of unix command - <a href="http://en.wikipedia.org/wiki/List_of_Unix_programs">http://en.wikipedia.org/wiki/List_of_Unix_programs</a> <br/><br/>Backup a list of directories - <a href="http://linuxintegrators.com/acoliver/code/?permalink=x-0272.html">http://linuxintegrators.com/acoliver/code/?permalink=x-0272.html</a> <br/><br/>A quick reference - <a href="http://www.cs.usfca.edu/~parrt/course/601/lectures/unix.util.html">http://www.cs.usfca.edu/~parrt/course/601/lectures/unix.util.html</a> <br/><br/>Tuning cheat sheet - <a href="http://www.performancewiki.com/linux-tuning.html">http://www.performancewiki.com/linux-tuning.html</a> <br/><br/>Common and difference between systems - <a href="http://www.thegeekstuff.com/2012/01/linux-unix-kernel/">http://www.thegeekstuff.com/2012/01/linux-unix-kernel/</a> <br/><br/>BSD for linux user - <a href="http://www.over-yonder.net/~fullermd/rants/bsd4linux/01">http://www.over-yonder.net/~fullermd/rants/bsd4linux/01</a> <br/><br/>Actually a quick tutorial - <a href="https://sanctum.geek.nz/arabesque/series/unix-as-ide/">https://sanctum.geek.nz/arabesque/series/unix-as-ide/</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2016-10-06T15:23:20Z bash.txt 2016-04-01T03:29:26Z 2016-04-01T03:29:26Z <br/>How to use eval, hash, readonly, shift, getopts, set, unset, let and shopt - <a href="http://www.thegeekstuff.com/2010/08/bash-shell-builtin-commands">http://www.thegeekstuff.com/2010/08/bash-shell-builtin-commands</a> <br/><br/>Sample bash completion<br/><br/>SSH_COMPLETE=( $(cut -f1 -d' ' ~/.ssh/known_hosts |\<br/> tr ',' '\n' |\<br/> sort -u |\<br/> grep -e '[:alpha:]') )<br/>complete -o default -W "${SSH_COMPLETE[*]}" ssh<br/><br/><a href="http://kasparov.skife.org/blog/stuff/starting-a-meme.html">http://kasparov.skife.org/blog/stuff/starting-a-meme.html</a> <br/><br/>Check history statistic - brianm@binky:~$ history | awk {'print $2'} | sort | uniq -c | sort -k1 -rn | head<br/> 164 svn<br/> 52 cd<br/> 42 ssh<br/> 32 sudo<br/> 22 git<br/> 16 ls<br/> 16 for<br/> 14 echo<br/> 13 man<br/> 10 curl<br/>brianm@binky:~$<br/><br/><a href="http://bluebones.net/2008/04/history-meme/">http://bluebones.net/2008/04/history-meme/</a> <br/><br/>easy way to do "[-h|--help][-n|--name <name>]" - <a href="http://binkley.blogspot.com/2016/03/bash-long-options.html">http://binkley.blogspot.com/2016/03/bash-long-options.html</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2016-04-01T03:29:26Z grep.txt 2016-02-03T14:01:03Z 2016-02-03T14:01:03Z <br/>count, highlight and by position - <a href="http://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/">http://www.thegeekstuff.com[..]15-practical-unix-grep-command-examples/</a> <br/><br/>Few examples of how to use grep - <a href="http://www.thegeekstuff.com/2011/10/grep-or-and-not-operators">http://www.thegeekstuff.com/2011/10/grep-or-and-not-operators</a> <a href="http://javarevisited.blogspot.com/2011/06/10-examples-of-grep-command-in-unix-and.html">http://javarevisited.blogspot.com[..]xamples-of-grep-command-in-unix-and.html</a> <br/><br/>Using regex - <a href="http://www.thegeekstuff.com/2011/01/regular-expressions-in-grep-command/">http://www.thegeekstuff.com[..]/01/regular-expressions-in-grep-command/</a> <a href="http://www.thegeekstuff.com/2011/01/advanced-regular-expressions-in-grep-command-with-10-examples-%E2%80%93-part-ii/">http://www.thegeekstuff.com[..]mand-with-10-examples-%E2%80%93-part-ii/</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2016-02-03T14:01:03Z shell.txt 2016-02-03T14:00:00Z 2016-02-03T14:00:00Z <br/>Sum time in script - <a href="http://www.markhneedham.com/blog/2011/07/27/unix-summing-the-total-time-from-a-log-file/">http://www.markhneedham.com[..]-summing-the-total-time-from-a-log-file/</a> <br/><br/>Special bash parameters - <a href="http://javarevisited.blogspot.com/2011/06/special-bash-parameters-in-script-linux.html">http://javarevisited.blogspot.com[..]ial-bash-parameters-in-script-linux.html</a> <br/><br/>ls sort by file size - <a href="http://www.unix.com/unix-dummies-questions-answers/6518-sorting-ls-filesize.html">http://www.unix.com[..]ns-answers/6518-sorting-ls-filesize.html</a> <br/><br/>How to use "~" - <a href="http://www.thegeekstuff.com/2010/06/bash-tilde-expansion">http://www.thegeekstuff.com/2010/06/bash-tilde-expansion</a> <br/><br/>use rlwrap to enable BASH like editing in SQLplus, and use screen to presist terminal sessions - <a href="http://binkley.blogspot.com/2009/03/two-miracle-utilities-rlwrap-and-screen.html">http://binkley.blogspot.com[..]miracle-utilities-rlwrap-and-screen.html</a> <br/><br/>Ctrl+r searches through history<br/>Use the history command plus !# to run old commands<br/>Shell expansion using {} , e.g. cp foo.sh{,.old} == cp foo.sh foo.sh.old<br/>zsh have good auto complete<br/><br/><a href="http://www.pgrs.net/2007/9/6/useful-unix-tricks">http://www.pgrs.net/2007/9/6/useful-unix-tricks</a> <br/><br/>mkdir -p creates nested directories<br/>Use less instead of tail<br/>lsof shows open files<br/>ps will show process trees with the f flag<br/><br/><a href="http://www.pgrs.net/2007/10/8/useful-unix-tricks-part-2">http://www.pgrs.net/2007/10/8/useful-unix-tricks-part-2</a> <br/><br/>!! is the previous command in the shell history<br/>Use vim -b to show nonprintable characters<br/>** is a recursive wildcard in zsh<br/>cd – will return to the previous folder<br/>Use ctrl+z and kill %1 to kill a process that will not die<br/>pwdx shows the working directory of a process<br/>Use sh -x to debug shell scripts<br/>sysctl replaces /proc on macs<br/><br/><a href="http://pgrs.net/2009/2/20/useful-unix-tricks-part-3">http://pgrs.net/2009/2/20/useful-unix-tricks-part-3</a> <br/><br/>ps -eo pcpu,pid,args | sort -n => check CPU%<br/>grep -sq "" /etc/lsb-release && lsb_release -rd => run command if file exist<br/><br/>More about ps and free - <a href="http://www.thegeekstuff.com/2010/07/3-shell-scripts/">http://www.thegeekstuff.com/2010/07/3-shell-scripts/</a> <br/><br/>HTML tools for commandline - <a href="http://www.macdevcenter.com/lpt/a/6343">http://www.macdevcenter.com/lpt/a/6343</a> <br/><br/>Bash history - <a href="http://www.talug.org/events/20030709/cmdline_history.html">http://www.talug.org/events/20030709/cmdline_history.html</a> <br/><br/>Tips of using shell, like saving all history - <a href="http://blog.andrewhays.net/love-your-terminal">http://blog.andrewhays.net/love-your-terminal</a> <br/><br/>Standard Shell completion:<br/><br/> Variablename completion<br/> Username completion<br/> Executable completion<br/> Filename and directory completion<br/> Hostname completion<br/><br/><a href="http://www.thegeekstuff.com/2013/11/bash-standard-completion/">http://www.thegeekstuff.com/2013/11/bash-standard-completion/</a> <br/><br/>replace<br/>cp long_and_complex_file_name long_and_complex_file_name.backup<br/>with this:<br/>cp long_and_complex_file_name{,.backup}<br/><br/><a href="http://www.jacopretorius.net/2013/12/unix-trick-brace-expansion.html">http://www.jacopretorius.net[..]/2013/12/unix-trick-brace-expansion.html</a> <br/><br/>Use the history - <a href="http://www.jacopretorius.net/2013/12/my-favorite-unix-trick.html">http://www.jacopretorius.net/2013/12/my-favorite-unix-trick.html</a> <br/><br/>How to use xargs - <a href="http://www.thegeekstuff.com/2013/12/xargs-examples/">http://www.thegeekstuff.com/2013/12/xargs-examples/</a> <br/><br/>Nice presentation of man page - <a href="http://explainshell.com/explain?cmd=+ls+-ltr">http://explainshell.com/explain?cmd=+ls+-ltr</a> <br/><br/>Parallel shell - <a href="http://www.ubuntugeek.com/pssh-parallel-ssh-tools.html">http://www.ubuntugeek.com/pssh-parallel-ssh-tools.html</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2016-02-03T14:00:00Z find.txt 2016-02-03T13:57:47Z 2016-02-03T13:57:47Z <br/>An question about how to remove unused package from MacOSX turn out to be an example of "find" command:<br/><br/><a href="http://forums.osxfaq.com/viewtopic.php?p=57887#57887">http://forums.osxfaq.com/viewtopic.php?p=57887#57887</a> <br/><a href="http://www.osxfaq.com/tips/unix-tricks/week98/tuesday.ws">http://www.osxfaq.com/tips/unix-tricks/week98/tuesday.ws</a> <br/><a href="http://javarevisited.blogspot.com/2011/03/10-find-command-in-unix-examples-basic.html">http://javarevisited.blogspot.com[..]find-command-in-unix-examples-basic.html</a> <br/><br/>File Search tips in Linux - <a href="http://discuss.joelonsoftware.com/default.asp?pg=pgDiscussThread&ixDiscussTopicParent=18272&ixDiscussGroup=3">http://discuss.joelonsoftware.com[..]iscussTopicParent=18272&ixDiscussGroup=3</a> <br/><br/>Another search tip, example of find base on time and size, and how to compare with other files - <a href="http://viralpatel.net/blogs/2010/02/some-useful-unix-file-finding-commands.html">http://viralpatel.net[..]e-useful-unix-file-finding-commands.html</a> <br/><br/>Like search by name, depth, size - <a href="http://www.thegeekstuff.com/2009/03/15-practical-linux-find-command-examples/">http://www.thegeekstuff.com[..]5-practical-linux-find-command-examples/</a> <br/><br/>use 'find' to delete branch of file: <a href="http://keithdevens.com/weblog/archive/2005/Jul/05/find.rm">http://keithdevens.com/weblog/archive/2005/Jul/05/find.rm</a> <br/><br/>By time - <a href="http://www.thegeekstuff.com/2009/06/15-practical-unix-linux-find-command-examples-part-2/">http://www.thegeekstuff.com[..]unix-linux-find-command-examples-part-2/</a> <br/><br/>Use of empty - <a href="http://www.thegeekstuff.com/2010/03/find-empty-directories-and-files/">http://www.thegeekstuff.com[..]010/03/find-empty-directories-and-files/</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2016-02-03T13:57:47Z locate.txt 2016-02-03T13:55:53Z 2016-02-03T13:55:53Z <br/><a href="http://www.thegeekstuff.com/2012/03/locate-command-examples/">http://www.thegeekstuff.com/2012/03/locate-command-examples/</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2016-02-03T13:55:53Z Embedded.txt 2015-12-30T07:09:53Z 2015-12-30T07:09:53Z <br/>Embedded Programming with the GNU Toolchain - <a href="http://www.bravegnu.org/gnu-eprog/">http://www.bravegnu.org/gnu-eprog/</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2015-12-30T07:09:53Z tracing.txt 2015-11-09T07:34:36Z 2015-11-09T07:34:36Z <br/>Look like a nice tools provide more information for performance issue - <a href="http://oprofile.sourceforge.net/examples/">http://oprofile.sourceforge.net/examples/</a> <br/><br/>Check CPU problem with prstat<br/><a href="http://javaeesupportpatterns.blogspot.ca/2011/12/prstat-solaris-pinpoint-high-cpu-java.html">http://javaeesupportpatterns.blogspot.ca[..]stat-solaris-pinpoint-high-cpu-java.html</a> <br/><a href="http://javaeesupportpatterns.blogspot.ca/2012/02/prstat-linux-how-to-pinpoint-high-cpu.html">http://javaeesupportpatterns.blogspot.ca[..]stat-linux-how-to-pinpoint-high-cpu.html</a> <br/><a href="http://javaeesupportpatterns.blogspot.ca/2011/12/prstat-aix-how-to-pinpoint-high-cpu.html">http://javaeesupportpatterns.blogspot.ca[..]prstat-aix-how-to-pinpoint-high-cpu.html</a> <br/><br/><a href="http://www.thegeekstuff.com/2012/03/reverse-engineering-tools">http://www.thegeekstuff.com/2012/03/reverse-engineering-tools</a> <br/><br/>If we like to trace process detail flow, system call and file opened - <a href="http://www.ussg.iu.edu/UAU/advcomm/truss.html">http://www.ussg.iu.edu/UAU/advcomm/truss.html</a> <a href="http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?truss+1">http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?truss+1</a> <br/><br/><br/> -l Includes the id of the responsible lightweight process<br/> (LWP) with each line of trace output. If -f is also<br/> specified, both the process-id and the LWP-id are<br/> included.<br/><br/><br/><br/>If the process hang and we like to check why, can try pstack - <a href="http://www.google.com/search?client=opera&rls=en&q=pstack&sourceid=opera&ie=utf-8&oe=utf-8">http://www.google.com[..]=pstack&sourceid=opera&ie=utf-8&oe=utf-8</a> <br/><br/>Check where is the core dump to - <a href="http://groups.google.com/group/comp.unix.solaris/browse_thread/thread/9f46dfb277c72cc8#">http://groups.google.com[..]s/browse_thread/thread/9f46dfb277c72cc8#</a> <br/><br/>Use gcore to generate coredump for running process - <a href="http://www.gsp.com/cgi-bin/man.cgi?section=1&topic=gcore">http://www.gsp.com/cgi-bin/man.cgi?section=1&topic=gcore</a> <br/><br/>If we like to check the which process id using which port, we can use lsof or "pfiles /proc/*"<br/>1) save the output of "pfiles /proc/*" to a file<br/>2) grep the file for that port, then find the PID, e.g., say here is the part of the output:<br/><pre><br/>5859: java -Djava.awt.headless=true -DX_R_BRGD -Xms512M -Xmx1024M -Djava.io.<br/> Current rlimit: 1024 file descriptors<br/> 0: S_IFCHR mode:0666 dev:85,0 ino:980953 uid:0 gid:3 rdev:13,2<br/> O_RDONLY|O_LARGEFILE<br/><br/>....... ( 125 FD after) ......<br/><br/> 125: S_IFSOCK mode:0666 dev:313,0 ino:40404 uid:0 gid:0 size:0<br/> O_RDWR<br/> sockname: AF_INET 10.152.22.22 port: 18075<br/> peername: AF_INET 169.19.21.63 port: 41792<br/></pre><br/>Then PID 5859 is the process working with the port 18075, however, it only work for process which is viewable according to your permission setting<br/><br/>Another probably easier way, and provide more information, is using <pre>lsof -i :[port]</pre> - <a href="http://javarevisited.blogspot.com/2015/11/how-to-find-pid-of-process-listening-on-a-port-unix-netstat-lsof-command-examples.html">http://javarevisited.blogspot.com[..]-unix-netstat-lsof-command-examples.html</a> <br/><br/>If we like to check the which process id using which file, we can use fuser - <a href="http://linuxcommand.org/man_pages/fuser1.html">http://linuxcommand.org/man_pages/fuser1.html</a> <br/><br/>Check host and port that any process accessing using lsof - <a href="http://www.geekology.co.za/blog/2009/10/checking-which-processes-are-accessing-internet-on-unix-machine/">http://www.geekology.co.za[..]-are-accessing-internet-on-unix-machine/</a> <br/><br/>How do I monitor or view the thread count of a certain process - ps -o pid,comm,user,thcount -p <process id> - <a href="http://superuser.com/questions/49408/how-do-i-monitor-or-view-the-thread-count-of-a-certain-process-on-aix">http://superuser.com[..]thread-count-of-a-certain-process-on-aix</a> <br/><br/>Examples of using strace, use -e to trace function call is useful - <a href="http://www.thegeekstuff.com/2011/11/strace-examples">http://www.thegeekstuff.com/2011/11/strace-examples</a> <br/><br/>The nm commands provides information on the symbols being used in an object file or executable file. - <a href="http://www.thegeekstuff.com/2012/03/linux-nm-command/">http://www.thegeekstuff.com/2012/03/linux-nm-command/</a> <br/><br/>Use pmap -s -x to look at what's in the virtual address space of yr process and what portion thereof is resident in physical memory.<br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2015-11-09T07:34:36Z sed.txt 2015-08-21T02:01:52Z 2015-08-21T02:01:52Z <br/><a href="http://www.catonmat.net/blog/worlds-best-introduction-to-sed/">http://www.catonmat.net/blog/worlds-best-introduction-to-sed/</a> <br/><br/><a href="http://javarevisited.blogspot.com.au/2013/05/sed-command-examples-in-unix-and-linux.html">http://javarevisited.blogspot.com.au[..]-command-examples-in-unix-and-linux.html</a> <br/><br/><a href="http://www.markhneedham.com/blog/2015/08/13/sed-using-environment-variables/">http://www.markhneedham.com[..]5/08/13/sed-using-environment-variables/</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2015-08-21T02:01:52Z time.txt 2015-08-20T15:40:08Z 2015-08-20T15:40:08Z <br/><a href="http://juliusdavies.ca/posix_clocks/clock_realtime_linux_faq.html">http://juliusdavies.ca/posix_clocks/clock_realtime_linux_faq.html</a> <a href="http://efreedom.com/Question/1-6814792/Clock-Gettime-Erratic">http://efreedom.com/Question/1-6814792/Clock-Gettime-Erratic</a> <br/><br/>Unix timezone - <a href="https://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/timezone.html">https://www.vmware.com[..]isdk400pubs/ReferenceGuide/timezone.html</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2015-08-20T15:40:08Z tutorial.txt 2015-05-02T05:23:20Z 2015-05-02T05:23:20Z <br/><a href="http://developer.apple.com/documentation/OpenSource/Conceptual/ShellScripting/index.html">http://developer.apple.com[..]rce/Conceptual/ShellScripting/index.html</a> <br/><br/>Introduction of 10 useful commend: objdump, file, od, xxd, strings, nm, time, ps, fuser, strace, ctags <a href="http://www.linuxjournal.com/article/7330">http://www.linuxjournal.com/article/7330</a> <br/><br/>Install a Visual OS server at Linux , may be useful later - <a href="http://blog.codefront.net/2007/06/26/installing-xen-on-ubuntu-feisty-fawn-the-complete-newbies-guide/">http://blog.codefront.net[..]-feisty-fawn-the-complete-newbies-guide/</a> <br/><br/>Hello world of driver development - <a href="http://www.linuxdevcenter.com/lpt/a/7060">http://www.linuxdevcenter.com/lpt/a/7060</a> <br/><br/>Commands cheat sheet - <a href="http://fosswire.com/wp-content/uploads/2007/08/fwunixref.pdf">http://fosswire.com/wp-content/uploads/2007/08/fwunixref.pdf</a> <br/><br/>Tutorial of build various servers - <a href="http://www.intac.net/build-your-own-server/">http://www.intac.net/build-your-own-server/</a> <a href="http://www.tuxradar.com/content/7-cool-linux-projects">http://www.tuxradar.com/content/7-cool-linux-projects</a> <br/><br/># !!- run the previous command. <br/># !ls - run the last command that started with ‘ls’. <br/># !ls:p - This will display the command instead of running it.<br/># !$ - run the last word of the previous command. (for substitutions)<br/># !$:p - Instead of running the last word of the previous command this will print it out.<br/># !* run the previous command without the first word. (for substitutions)<br/># !*:p - print, again<br/><br/><a href="http://codytaylor.org/2009/09/linux-bang-commands.html">http://codytaylor.org/2009/09/linux-bang-commands.html</a> <br/><br/>Tutorial of system logging under unix - <a href="http://www.coolcoder.in/2013/12/common-linux-log-files-name-and-usage.html">http://www.coolcoder.in[..]mmon-linux-log-files-name-and-usage.html</a> <br/><br/><a href="http://www.opsschool.org/en/latest/">http://www.opsschool.org/en/latest/</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2015-05-02T05:23:20Z media.txt 2015-01-24T01:05:28Z 2015-01-24T01:05:28Z <br/>Use GIMP for serverside scripting: <a href="http://www.google.com/search?q=gimp+script+fu+server">http://www.google.com/search?q=gimp+script+fu+server</a> <br/><br/>Call GIMP from java - <a href="http://jroller.com/page/dunpanic?entry=calling_gimp_from_within_java">http://jroller.com[..]anic?entry=calling_gimp_from_within_java</a> <br/><br/>Linux Music workflow - <a href="http://createdigitalmusic.com/2009/08/04/linux-music-workflow-switching-from-mac-os-x-to-ubuntu-with-kim-cascone/">http://createdigitalmusic.com[..]rom-mac-os-x-to-ubuntu-with-kim-cascone/</a> <br/><br/>Write / Create Image from DVD disc - <a href="http://www.yolinux.com/TUTORIALS/LinuxTutorialCDBurn.html">http://www.yolinux.com/TUTORIALS/LinuxTutorialCDBurn.html</a> <br/><br/>A simple paint program - <a href="http://linuxcommando.blogspot.hk/2014/01/pinta-lightweight-paint-app-that-has.html">http://linuxcommando.blogspot.hk[..]inta-lightweight-paint-app-that-has.html</a> <a href="http://www.pinta-project.com/">http://www.pinta-project.com/</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2015-01-24T01:05:28Z X.txt 2015-01-12T08:39:36Z 2015-01-12T08:39:36Z <br/>X.org 7.4 need Option "AllowEmptyInput" "off" in Section "ServerFlags". Otherwise mouse and keyboard will not working<br/><br/><a href="http://forums.freebsd.org/showthread.php?t=4708">http://forums.freebsd.org/showthread.php?t=4708</a> <br/><br/>And some driver program, like nvidia, doesn't aware of that, yet. So after recompilation, mouse and keyboard are not working.... and need to update the config manually.<br/><br/>Good reasons, showing how easy to manual GUI under unix desktop - <a href="http://spin.atomicobject.com/2013/10/26/why-linux-desktop/">http://spin.atomicobject.com/2013/10/26/why-linux-desktop/</a> <br/><br/>Allow you mstsc to unix - <a href="http://www.ubuntugeek.com/xrdp-remote-desktop-protocol-rdp-server.html">http://www.ubuntugeek.com[..]-remote-desktop-protocol-rdp-server.html</a> <br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2015-01-12T08:39:36Z hardware.txt 2014-02-06T09:54:50Z 2014-02-06T09:54:50Z <br/>Reference of linux proc file system - <a href="http://www.coolcoder.in/2014/01/the-power-of-proc-file-system-in-linux.html">http://www.coolcoder.in[..]-power-of-proc-file-system-in-linux.html</a> <br/><br/>Power save tool - <a href="http://www.ubuntugeek.com/laptop-mode-tools-laptop-power-saving-package-for-linux-systems.html">http://www.ubuntugeek.com[..]er-saving-package-for-linux-systems.html</a> <br/><br/>Disk usage report - <a href="http://www.ubuntugeek.com/hard-disk-usage-and-availability-report-tools.html">http://www.ubuntugeek.com[..]usage-and-availability-report-tools.html</a> <br/><br/>USB info at /var/log/messages<br/><br/>Oct 20 03:56:14 carfield kernel: [ 3568.521099] usb 1-6: configuration #1 chosen from 1 choice<br/>Oct 20 03:56:14 carfield kernel: [ 3568.557038] Initializing USB Mass Storage driver...<br/>Oct 20 03:56:14 carfield kernel: [ 3568.557228] scsi4 : SCSI emulation for USB Mass Storage devices<br/>Oct 20 03:56:14 carfield kernel: [ 3568.557407] usbcore: registered new interface driver usb-storage<br/>Oct 20 03:56:14 carfield kernel: [ 3568.557429] USB Mass Storage support registered.<br/>Oct 20 03:56:19 carfield kernel: [ 3573.557428] scsi 4:0:0:0: Direct-Access BUFFALO USB Flash Disk 4000 PQ: 0 ANSI: 0 CCS<br/>Oct 20 03:56:19 carfield kernel: [ 3573.559904] sd 4:0:0:0: [sdc] 7864320 512-byte hardware sectors: (4.02 GB/3.75 GiB)<br/>Oct 20 03:56:19 carfield kernel: [ 3573.560766] sd 4:0:0:0: [sdc] Write Protect is off<br/>Oct 20 03:56:19 carfield kernel: [ 3573.562913] sd 4:0:0:0: [sdc] 7864320 512-byte hardware sectors: (4.02 GB/3.75 GiB)<br/>Oct 20 03:56:19 carfield kernel: [ 3573.563765] sd 4:0:0:0: [sdc] Write Protect is off<br/>Oct 20 03:56:19 carfield kernel: [ 3573.563772] sdc: sdc1<br/><br/><br/><script type="text/javascript"><!--google_ad_client = "pub-9426659565807829";google_ad_slot = "9359905831";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 2014-02-06T09:54:50Z