文件管理命令?基本命令:ls、cd、pwd、man?文件操作:touch、cp、rm、mv、ln、mkdir、rmdir、?文件查看:cat、more、less、head、tail?文件权限:chmod、chgrp、chown?文件搜索:which、whereis、grep、find、wc1、ls打...
分类:
系统相关 时间:
2014-06-22 23:58:30
阅读次数:
447
Minimum Path Sum:Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along...
分类:
其他好文 时间:
2014-06-22 23:06:39
阅读次数:
290
Given an index k, return the
kth row of the Pascal's triangle.
For example, given k = 3,
Return [1,3,3,1].
Note:
Could you optimize your algorithm to use only
O(k) extra space?
...
分类:
其他好文 时间:
2014-06-22 21:31:26
阅读次数:
214
社会一直在变,不晓得是不是社会变的太苦开,而我没变所以我反而显得单纯了。办一个居住证,几年前办的以为终于可以一劳永逸的,后来续办的是发现确实不难了。尼玛,上个月去续办还说好,你这快要到期了,下个月来开证明吧。结果我昨天去开证明,一堆的文件甩给我说,不好意思现在流程变了。一切都是按照新办的流程来。好吧,我单纯了。其实在软件和硬件的这个行当里,相对而言还是硬件比较单纯点。软件把硬件封装的比较花里胡哨。那么今天讲的这片文章就是。大家可以好好感受一下。当然在这里的花里胡哨是一种很好的软件架构表现,不才并不是像前面的...
分类:
移动开发 时间:
2014-06-22 19:10:16
阅读次数:
299
安装的时候首先出现
hfs: summary table not allowed on FS withblock size of 2048
错误,然后就是
hfs: could not initializc summary table forOSX Base System
错误。
一开始也不知道是怎么回事,后来在yandex上搜索中找到一篇帖子,它说这是CPU的问题。Mac OS X 10.9不能识别特有的CPU格式,只能识别一部分。于是呢,按照帖子中的做法,首先找到Virtual Box的位置,用命令符的...
分类:
其他好文 时间:
2014-06-22 18:43:15
阅读次数:
268
在系统中查找大文件的方法:
1. 统计当前目录的文件(或文件夹)大小,并按照从大到小的顺序排序
du -s /home/* | sort -nr
* -h已易读的格式显示指定目录或文件的大小
* -s选项指定对于目录不详细显示每个子目录或文件的大小
2. 查找大于100M的文件,并显示详细信息
find . -type f -size +...
分类:
其他好文 时间:
2014-06-22 17:58:51
阅读次数:
185
Given a triangle, find the minimum path sum from top to bottom. Each step you may
move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],...
分类:
其他好文 时间:
2014-06-22 17:07:52
阅读次数:
166
竟然是搜索……囧还以为是什么神题…… 1 uses math; 2 var x,y:extended; 3 n:longint; 4 function find(x,y:extended;z:longint):extended; 5 var i:longint; 6 r1,r...
分类:
其他好文 时间:
2014-06-21 17:49:05
阅读次数:
198
Valid SudokuDetermine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are...
分类:
其他好文 时间:
2014-06-21 16:40:45
阅读次数:
280
root@OpenstackIcehouse2:~# cat /etc/nova/nova-compute.conf [DEFAULT] compute_driver=libvirt.LibvirtDriver [libvirt] virt_type=qemu libvirt_inject_part...
分类:
其他好文 时间:
2014-06-21 16:38:02
阅读次数:
580