随笔分类 -  Linux

摘要:We need to add a prefix "prefix-" to <MsgId><Id> element in xml messages but there might be a new line between <MsgId> and <Id>. Example of the xml me 阅读全文
posted @ 2018-04-03 23:25 小张的练习室 阅读(186) 评论(0) 推荐(0)
摘要:mtime, atime and ctime are timestamps associated with the modification, access and change of any file respectively.mtimemtime (modification time) indi 阅读全文
posted @ 2018-03-27 00:25 小张的练习室 阅读(146) 评论(0) 推荐(0)
摘要:Reference [1] http://blog.chinaunix.net/uid-26983585-id-3364091.html [2] http://www.cnblogs.com/yaoxiaowen/p/7805661.html [3] http://www.cnblogs.com/y 阅读全文
posted @ 2017-11-14 22:10 小张的练习室 阅读(284) 评论(0) 推荐(0)
摘要:Uninstall Cassandra $ sudo su remove cassandra $ apt-get remove cassandra cleaned the cassandra folders $ rm -rf /var/lib/cassandra $ rm -rf /var/log/ 阅读全文
posted @ 2017-09-12 20:52 小张的练习室 阅读(155) 评论(0) 推荐(0)
摘要:xinput --listxinput --set-prop 9 "Device Accel Constant Deceleration" 1.9xinput --set-prop 9 "Device Accel Velocity Scaling" 9 阅读全文
posted @ 2017-09-06 00:05 小张的练习室 阅读(215) 评论(0) 推荐(0)
摘要:sudo add-apt-repository ppa:webupd8team/javasudo apt-get -y update sudo apt-get -y install oracle-java8-installer sudo vim /etc/environment Add this a 阅读全文
posted @ 2017-09-05 23:26 小张的练习室 阅读(154) 评论(0) 推荐(0)
摘要:Reference [1] http://www.thegeekstuff.com/2011/07/iostat-vmstat-mpstat-examples/?utm_source=feedburner [2] https://www.computerhope.com/unix/iostat.ht 阅读全文
posted @ 2017-06-26 18:24 小张的练习室 阅读(249) 评论(0) 推荐(0)
摘要:之前测试遇到了"too many open files"的问题。ulimit -Hn 查了下发现server上最大open file数是4096。写了个简单的脚本检测发现进程创建的fd个数在不断增加,8分钟之后达到上限然后程序报错,其中绝大部分fd都是关于socket的。 在server上安装lso 阅读全文
posted @ 2017-06-26 17:58 小张的练习室 阅读(208) 评论(0) 推荐(0)
摘要:安装xbindkeys sudo apt-get install xbindkeys 新建配置文件 xbindkeys -d > ~/.xbindkeysrc 编辑热键 vim ~/.xbindkeysrc 添加以下命令 重启xbindkeys kill之前xbindkeys进程然后输入xbindk 阅读全文
posted @ 2017-05-11 16:52 小张的练习室 阅读(813) 评论(0) 推荐(0)
摘要:如果你没有因为各种尝试搞乱了Ubuntu系统的话: 1. 在All Settings 里找到 Language Support, Install/Remove Languages里安装Chinese (Simplified)。确保Keyboard input method system是IBus. 阅读全文
posted @ 2017-05-09 18:02 小张的练习室 阅读(181) 评论(0) 推荐(0)
摘要:CoreOS CoreOS Container Linux is the leading container operating system, designed to be managed and run at massive scale, with minimal operational ove 阅读全文
posted @ 2017-05-04 04:34 小张的练习室 阅读(295) 评论(0) 推荐(0)
摘要:Reference: [1] http://www.linuxjournal.com/article/6799 Soft vs. Hard CPU Affinity There are two types of CPU affinity. The first, soft affinity, also 阅读全文
posted @ 2017-03-31 18:40 小张的练习室 阅读(242) 评论(0) 推荐(0)
摘要:1. set -e "Exit immediately if a simple command exits with a non-zero status." When this option is on, if a simple command fails for any of the reason 阅读全文
posted @ 2017-03-24 23:58 小张的练习室 阅读(448) 评论(0) 推荐(0)
摘要:Opennstack Open source software for creating private and public clouds Manages the servers at these sites so you can create Virtual Machines (VMs) for 阅读全文
posted @ 2017-03-20 04:30 小张的练习室 阅读(952) 评论(0) 推荐(0)
摘要:Linux Essentials Certification Globbing ls ?.txt ? stands for one character while * means one or more characters ls [F]*.txt list file starting with F 阅读全文
posted @ 2017-02-23 17:48 小张的练习室 阅读(813) 评论(0) 推荐(0)
摘要:find . -name "*.java" -type f find all the files within a director and its sub-directory ended with .java rm *~ delete all the files ended with ~ grep 阅读全文
posted @ 2017-02-23 17:45 小张的练习室 阅读(223) 评论(0) 推荐(0)
摘要:1. cat <<EOF 2. let i++reference:[1] http://askubuntu.com/questions/385528/how-to-increment-a-variable-in-bash The same as: or even 3. getopts 阅读全文
posted @ 2016-12-21 18:10 小张的练习室 阅读(131) 评论(0) 推荐(0)
摘要:References: [1] http://www.tldp.org/LDP/Bash-Beginners-Guide/html/ 1. Executing programs from a script When the program being executed is a shell scri 阅读全文
posted @ 2016-09-26 19:11 小张的练习室 阅读(331) 评论(0) 推荐(0)
摘要:如果在一般用户下如user,执行sudo命令,会产生两个进程。 ps -ef | grep Container root 4305 643 0 16:37 pts/39 00:00:00 sudo ./ContainerCompilation.shroot 4306 4305 0 16:37 pts 阅读全文
posted @ 2016-09-02 23:46 小张的练习室 阅读(336) 评论(0) 推荐(0)
摘要:Reference: [1] https://www.linux.com/news/introduction-services-runlevels-and-rcd-scripts A Linux service is an application (or set of applications) t 阅读全文
posted @ 2016-09-02 17:09 小张的练习室 阅读(375) 评论(0) 推荐(0)