Stackoverflow[3]
2009年07月30日 blankyao 发布在 杂七杂八 标签:vim, stackoverflow, linux, shell 暂无评论1. Is there a one-liner that allows me to create a directory and move into it at the same time?
mkdir + cd
2. How to report number of files in all subdirectories?
for f in *; do [ -d ./"$f" ] && find ./"$f" -maxdepth 1 -exec echo \; | wc -l && echo $f; done
看当前目录下有多少子目录,以及有子目录下有多少文件
3. Most efficient way to store thousand telephone numbers
这个面试题,好像挺常用的
4. What is your most productive shortcut with Vim?
让你更高效的vim操作是什么?另外,你使用vim有那么多问题是因为你根本就不了解vi!
5. How can I create a empty file whose name begins with a dash?
一般来说,命令都是以“-”作为选项的开头的,那么怎样创建以“-”开头的文件?
6. Why is '.' a hard link in Unix?
为什么“.”是一个hard link呢?
7. How to temporarily switch from ssh to my local shell?
在终端里连接到一台服务器后可能需要暂时在本地操作一下,那么除了新开一个终端窗口外还有其他方法不?