
Linux
文章平均质量分 76
visionfans
研究方向:计算机视觉,模式识别,机器学习
展开
-
linux command - sort
sort by numberuse -n use -V原创 2015-12-27 14:21:22 · 1381 阅读 · 0 评论 -
AWK programming
程序模型pattern { action }变量两种变量scalararray变量名内建变量大写全局变量首字母大写局部变量小写数组允许任意数字或字符串做索引内建变量 变量 说明 FILENAME input file name FNR 文件的record数 FS field分隔符 RS record分隔符 NF field数 NR原创 2015-12-20 14:37:35 · 1511 阅读 · 0 评论 -
install Adobe Reader on Ubuntu
How to Install Adobe Reader in Ubuntu 14.10How do I install Adobe Acrobat Reader from the repository?转载 2015-12-17 17:46:32 · 1324 阅读 · 0 评论 -
change default text editor to sublime text
How do I make Sublime Text 3 the default text editor [duplicate] Open /usr/share/applications/defaults.list , search for all instances of gedit.desktop and replace them with sublime_text.desktop. Sav转载 2015-12-16 14:50:49 · 1358 阅读 · 0 评论 -
dot(.) is a synonym of `source`
In a bash script what does a dot followed by a space and then a path mean?It’s a synonym of the builtin source. It will execute commands from a file in the current shell, as read from help source or h原创 2015-12-04 23:04:38 · 468 阅读 · 0 评论 -
bash programming
BashPitfallsBashGuideBashSheet原创 2015-11-24 13:12:11 · 454 阅读 · 0 评论 -
bash"="后自动完成
Initially i thought this could be a bug but later realised that this behavior is because of readline treating ‘=’ as a word break character.# mkdir =foo =foobar# cd =\=foo-bash: cd: ==foo: No such fil原创 2015-11-20 10:43:32 · 476 阅读 · 0 评论 -
64bit Ubuntu supports 32bit libraries
Ubuntu 14.04 $ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1Older version:$ sudo apt-get install ia32-libs原创 2015-11-10 11:29:23 · 641 阅读 · 0 评论 -
ubuntu H.264 decoder
References: - How to install the MPEG-4 AAC decoder and the H.264 decoder?原创 2015-10-29 09:44:27 · 3105 阅读 · 0 评论 -
`ls` list directories first
alias ls=’ls –color -h –group-directories-first’reference: - http://superuser.com/a/109546/226126原创 2015-10-27 20:38:20 · 462 阅读 · 0 评论 -
list number of physical RAM in use
Since you don’t mention, I’m assuming this is on Linux.dmidecode -t memorydmidecode -t 16lshw -class memory原创 2015-10-11 01:01:00 · 560 阅读 · 0 评论 -
some useful tar options
When extracting files, drop the hierarchical folder structure --strip-components. Only extract an specific element, just show the contents with -t option and then add the component after the command.#原创 2015-10-11 00:49:43 · 472 阅读 · 0 评论 -
use `free` to check available memory
Understanding the free command in Ubuntu (and Linux)原创 2015-10-10 23:12:08 · 551 阅读 · 0 评论 -
ram disk
What is tmpfs?Differences between ramfs and tmpfsOverview of RAMFS and TMPFS on Linux tmpfs uses a combination of computer RAM and disk based SWAP space to create a filesystem, such as EXT4, that原创 2015-10-10 23:11:27 · 480 阅读 · 0 评论 -
bash background tasks
Append & after the command detaches it from stdin which means the shell isn’t tied up by the command and you can execute other commands. However, the command process is still managed by the shell原创 2015-09-29 20:36:23 · 705 阅读 · 0 评论 -
gcc notes
LD_LIBRARY_PATH is used for program running, LIBRARY_PATH is used for gcc when building.原创 2015-09-01 18:56:19 · 376 阅读 · 0 评论 -
cygwin installation
NotesThe setup.exe utility tracks the versions of all installed components and provides the mechanism for installing or updating everything available from this site for Cygwin.Once you’ve installed y原创 2015-08-30 19:51:49 · 444 阅读 · 0 评论 -
interactive/non-interactive, login/non-login shells
interactive/non-interactive, login/non-login shellsBash Reference Manual - GNUWhat is the difference between interactive shells, login shells, non-login shell and their use cases?Difference between原创 2015-08-26 23:25:32 · 866 阅读 · 0 评论 -
linux command - find
find belongs to GNU Findutils which also includes locate, updatedb, xargs.FunctionSearch for files in a directory hierarchy.Snopsisfind [path...] [expression]ExpressionThe expression is made up of opt原创 2015-08-23 00:10:10 · 506 阅读 · 0 评论 -
man pages
Those numbers represent the section of the man pages:Executable programs or shell commandsSystem calls (functions provided by the kernel)Library calls (functions within program libraries)Special fi原创 2015-08-19 13:28:58 · 443 阅读 · 0 评论 -
Bash processing pipeline
Ref:《Learning the Bash Shell》(3rd), Chapter 7.3 Quoting VariablesUse double quotes to prevent word splitting. [2] An argument enclosed in double quotes presents itself as a single word, even if it co原创 2015-06-19 22:26:51 · 604 阅读 · 0 评论 -
Sublime-text with Sogou
compile shared library libsublime-imfix.so. [code] gcc -shared -o libsublime-imfix.so sublime_imfix.c `pkg-config –libs –cflags gtk+-2.0` -fPICedit /usr/bin/subl, add the following line to top: ex原创 2015-04-21 20:58:20 · 670 阅读 · 0 评论 -
bash variables prefix with $
bash variables转载 2015-04-05 21:48:53 · 571 阅读 · 0 评论