大部分Linux发行版的默认账户是普通用户,而更改系统文件或者执行某些命令,需要root身份才能进行,这就需要从当前用户切换到root用户。Linux中切换用户的命令是su或su -。 如上图所示,一开始是普通账户,执行userdel时,提示command not found,通过su命令切换到ro...
分类:
系统相关 时间:
2014-07-11 18:28:53
阅读次数:
337
from:http://www.opsers.org/base/debian-package-management-tools-command-dpkg-apt-get-detailed.html1.dpkg包管理工具dpkg –info "软件包名" –列出软件包解包后的包名称.dpkg -l –...
分类:
其他好文 时间:
2014-07-11 18:21:35
阅读次数:
163
在Binding close event时候,需要从ViewModel关闭Window.一个很简洁的解决方案就是,将Window 当做CommandParameter传过去。Command="{Binding SaveCommand}"CommandParameter="{Binding Eleme...
作用:
禁止当前命令的显示,不受echo的影响
格式
@[command]
demo:
@echo on
@type a.txt
type b.txt
pause
a.txt:
aaaaaaaa
b.txt
bbbbbbbbbb
结果...
新单词unidirectional get T T
求有向图上,以某点为根的,最小生成树
参考别人的模板
#include
#include
#include
#include
#include
#include
#include
#define inf 2000000000
using namespace std;
struct node1
{
double x,...
分类:
Web程序 时间:
2014-07-10 20:32:47
阅读次数:
285
错误例子:error: command 'cc' failed with exit status 1clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard err...
分类:
其他好文 时间:
2014-07-10 19:30:11
阅读次数:
3913
本文档介绍icehouse发行版keystone命令keystone客户端命令行提供用于和keystone服务器交互的方便工具,但是该命令行工具逐渐受到社区的摒弃: “Pending deprecation: Command-line interface to the OpenStack Iden....
分类:
其他好文 时间:
2014-07-10 16:16:46
阅读次数:
406
先在Mac OS的终端查询下本机是否已安装LuaLast login: Thu Jul 10 07:54:48 on ttys000keshans-Mac-mini:~ keshan$ lua-bash: lua: command not found 2. 如果没有(如上)的话去Lua的官方网站下....
分类:
其他好文 时间:
2014-07-10 15:50:08
阅读次数:
173
有些时候,在面对开发机的时候,不断的telnet和不断的command自己的命令确实非常麻烦,需要一些自动测试或者自动部署的需求。然而面对telnet很多同学都跟我一样一开始觉得无法通过管道等传用户名和密码给telnet进行自动化执行。但其实很是有解决办法的,目前解决办法大致分一共有两种,一种是用....
分类:
Web程序 时间:
2014-07-10 15:34:15
阅读次数:
212
Grep 'OR' OperatorFind all the lines in a file, that match any of the following patterns.Using GREP command :grep "pattern1\|pattern2" file.txtgrep -E...
分类:
其他好文 时间:
2014-07-10 14:44:42
阅读次数:
212