Valid PalindromeGiven a string, determine if it
is a palindrome, considering only alphanumeric characters and ignoring cases.For
example,"A man, a pla...
分类:
其他好文 时间:
2014-05-12 16:27:07
阅读次数:
332
一、用户如何获得root权限:
1. 进入terminal
2. 输入sudo passwd root 并设置密码,提示要你输入两次密码,自己设定密码,一定要记住,然后切换到root使用
3. 输入 su root, 要求你输入密码,然后输入刚才设定的密码回车就进去了
4. 如果不想切换root但是想拥有大部分root权限,可以在使用命令时候加上sudo,
sudo mount挂载...
分类:
其他好文 时间:
2014-05-10 10:42:17
阅读次数:
305
用vc 菜单 文件|
打开|指定EXE或DLL,如有指定运行时库,则PE文件的资源中可以看到manifest 配置节然后据此判断EXE依赖的运行时库, 再根据编译选项调整
运行时库设置
分类:
其他好文 时间:
2014-05-09 17:06:52
阅读次数:
318
常见系统数据文件
下表列出了常见的系统数据文件及其查找函数。
以/etc/passwd文件为例,读取数据的程序框架如下:
void get_pw_entry()
{
struct passwd *ptr;
setpwent();
while ((ptr = getpwent()) != 0) {
……
}
endpwe...
分类:
其他好文 时间:
2014-05-07 08:46:54
阅读次数:
341
1.shell介于操作系统与用户之间,负责解释命令行
2./etc/shells 记录了系统支持的有效登录的shell
3./etc/passwd 最后一位可以看到用户默认的shell
4.直接输入shell的名称 可以切换shell
5.shell命令的记录可以用history查看 history -c 清除
历史命令存放在.bash_history文件中
...
分类:
其他好文 时间:
2014-05-07 05:11:21
阅读次数:
244
I make a connection through SSH and then I type:
# x0vncserver --PasswordFile=/home/hello/.vnc/passwd
x0vncserver: unable to open display ""
~ImageCleanup called
the reason is :
...
分类:
其他好文 时间:
2014-05-07 04:23:43
阅读次数:
581
这3个系列的书我买了不少本,虽然没有都读完,但是还是要做个阶段性的评价for
dummies:即阿呆系列,外教老师Chris说那是入门的书,知识量少,我觉得自己开辟一个新的学习计划时,这个系列的书是很有帮助的,细分两个子系列all-in-one
for dummies:这个系列的书厚些,通常是几本书...
分类:
其他好文 时间:
2014-05-05 23:16:11
阅读次数:
272
ssh user@hostname "command" ;echo “aaa”$?输出aaa0,表示
ssh命令成功。输出aaa2555,表示ssh连接失败。若ssh成功,命令失败,则aaa127.
分类:
其他好文 时间:
2014-05-03 23:26:39
阅读次数:
526
[root@rusky /]# vi
/etc/passwdroot:x:0:0:Redhat5:/root:/bin/bashrusky:x:500:500::/home/rusky:/bin/bash1.root:x:0:0:Redhat5:/root:/bin/bash
共七组,由:隔开 na...
分类:
其他好文 时间:
2014-05-03 22:09:12
阅读次数:
338
$sudoyuminstallvim-enhanced<snipped>Transactioncheckerror:file/usr/share/man/man1/vim.1.gzfrominstallofvim-common-2:7.4.179-1.fc20.x86_64conflictswithfilefrompackagevim-minimal-2:7.4.027-2.fc20.x86_64报错,于是我又更新了一下vi试试$sudoyumupdatevim-min..
分类:
其他好文 时间:
2014-05-02 02:55:55
阅读次数:
285