
Linux
文章平均质量分 58
frivol
这个作者很懒,什么都没留下…
展开
-
在Ubuntu中加上右键菜单在当前目录打开终端
在网上查到一篇文章“在Ubuntu右键快捷菜单中添加终端栏目”,介绍了两种方法,其中第二种方法我试了,但无效,不知为什么。于是我尝试了一下,还是按照第二种方法所说的,在主目录的 .gnome2/nautilus-scripts 目录中新建一个文件, 比如 terminal,内容就一行:x-terminal-emulator然后赋予该文件执行权限,发现竟然可以了。在某一目录下右键原创 2013-05-29 00:07:00 · 634 阅读 · 0 评论 -
Vi and Vim Macro Tutorial: How To Record and Play
Vi and Vim 宏指南: 如何记录和播放转载 2015-10-14 21:33:41 · 932 阅读 · 0 评论 -
技巧:快速提高 Vi/Vim 使用效率的原则与途径
技巧:快速提高 Vi/Vim 使用效率的原则与途径Vi/Vim 是所有 Unix/Linux 操作系统默认配备的编辑器。因其强大的功能和高效的操作,Vi/Vim 也成为众多 Unix/Linux 用户、管理员必须掌握并熟练使用的编辑工具之一。尤其是在没有图形界面的情况下,更是离不开 Vi/Vim。Vi/Vim 命令非常多、用法极为灵活,掌握起来有一定的难度。本文作者将结合自己的转载 2015-10-14 22:05:41 · 705 阅读 · 0 评论 -
ubuntu开启SSH服务
ubuntu开启SSH服务SSH分客户端openssh-client和openssh-server如果你只是想登陆别的机器的SSH只需要安装openssh-client(ubuntu有默认安装,如果没有则sudo apt-get install openssh-client),如果要使本机开放SSH服务就需要安装openssh-serversudo apt-get转载 2015-07-11 17:11:05 · 483 阅读 · 0 评论 -
ubuntu14.04 禁用unity
sudo apt-get install gnome-session-fallback原创 2014-09-25 22:44:20 · 745 阅读 · 0 评论 -
在update-alternatives中安装jdk
update-alternatives --install /usr/bin/java java /opt/jdk1.6.0_45/bin/java 16045 --slave /usr/bin/javac javac /opt/jdk1.6.0_45/bin/javac --slave /usr/bin/jar jar /opt/jdk1.6.0_45/bin/jar --slave /usr/原创 2014-05-05 23:23:30 · 1722 阅读 · 0 评论 -
Linux查看版本及内核
linux查看内核:cat /proc/versionuname -a查看发行版:cat /etc/issue有的版本可以用:lsb_release -a原创 2014-05-05 22:58:16 · 514 阅读 · 0 评论 -
Linux下查看命令的位置
frivol@ubuntu:~$ which ls/bin/ls@ubuntu:~$ whereis lsls: /bin/ls /usr/share/man/man1/ls.1.gz原创 2014-05-05 22:49:01 · 905 阅读 · 0 评论 -
Linux下查看cpu信息
navy@ubuntu:~$ cat /proc/cpuinfoprocessor : 0vendor_id : GenuineIntelcpu family : 15model : 4model name : Intel(R) Pentium(R) D CPU 2.80GHzstepping : 7microcode : 0x3cpu MHz : 2799.990原创 2014-05-05 22:52:07 · 768 阅读 · 0 评论 -
linux中用tailf实时观看tomcat日志
linux中运行tomcat,默认不出控制台,如果想一直看日志,可在终端中用如下命令:while true; do tailf /opt/apache-tomcat-7.0.53/logs/catalina.out; done原创 2014-05-05 23:27:23 · 1791 阅读 · 0 评论 -
linux特殊符号大全
linux特殊符号大全在shell中常用的特殊符号罗列如下:# ; ;; . , / \ 'string'| ! $ ${} $? $$ $* "string"* ** ? : ^ $# $@ `command`{} [] [[]]转载 2013-07-21 21:12:06 · 799 阅读 · 0 评论 -
$IFS 的含义
The IFS is a special shell variable.You can change the value of IFS as per your requirments.The Internal Field Separator (IFS) that is used for word splitting after expansion and to split lines into w转载 2013-07-21 20:13:41 · 2871 阅读 · 0 评论 -
linux中shell变量$#,$@,$0,$1,$2的含义解释
linux中shell变量$#,$@,$0,$1,$2的含义解释: 变量说明: $$ Shell本身的PID(ProcessID) $! Shell最后运行的后台Process的PID $? 最后运行的命令的结束代码(返回值) $- 使用Set命令设定的Flag一览 $* 所有参数列表。如"$*"用「"」括起来的情况、以"$1 $2 … $n"的形式输出转载 2013-06-28 23:44:35 · 516 阅读 · 0 评论 -
在shell脚本中调用另一个脚本的三种不同方法(fork, exec, source)
fork ( /directory/script.sh)fork是最普通的, 就是直接在脚本里面用/directory/script.sh来调用script.sh这个脚本.运行的时候开一个sub-shell执行调用的脚本,sub-shell执行的时候, parent-shell还在。sub-shell执行完毕后返回parent-shell. sub转载 2013-07-17 23:53:08 · 624 阅读 · 0 评论 -
ubuntu安装、删除、查看软件包
安装:sudo apt-get install xxx删除:sudo apt-get remove xxx (只删除软件包)sudo apt-get purge xxx(同时也删除配置文件)查看:dpkg -ldpkg -l xxx*原创 2013-06-29 00:36:20 · 711 阅读 · 0 评论 -
.bash_profile 和 .bashrc 的区别(原文名:.bash_profile vs .bashrc)
by Josh StaigerWHEN working with Linux, Unix, and Mac OS X, I always forget which bash config file to edit when I want to set my PATH and other environmental variables for my shell. Should you转载 2013-06-23 17:33:03 · 758 阅读 · 0 评论 -
使用man时条目后面的数字的含义
在使用man时经常能看到要查询的条目后面有一个括号里面有一个数字,这个数字其实表示所查询条目的类别,而使用man时可直接指定类别,比如:man 5 crontab与直接用man crontab查出的结果不一样哦。如下是man后面的数字代表的含义。Section 1user commands (introduction)Section 2sys原创 2014-12-12 22:56:51 · 2436 阅读 · 0 评论