One of the challenges of explaining project management to people who are unfamiliar with the approach, is that descriptions are often either so high-l...
分类:
其他好文 时间:
2015-01-05 20:08:57
阅读次数:
191
Linux下添加用户:useradd 用户名
为用户名添加密码:passwd 用户名
查看系统中的所有用户:cat /etc/passwd |cut -f 1 -d :
注意:| 是管道,把cat的输出传给cut处理;后面的cut取出每一行的以:分割的第一栏。
用who命令可以查看当前登录的用户有哪些,一个用户可以多次登录比如有两个root。一个root在它的本地,一个ro...
分类:
其他好文 时间:
2015-01-04 21:32:54
阅读次数:
287
Treasure Hunt I
Time Limit: 2 Seconds
Memory Limit: 65536 KB
Akiba is a dangerous country since a bloodsucker living there. Sometimes the bloodsucker will appear and kill everyone who is...
分类:
其他好文 时间:
2015-01-02 16:09:19
阅读次数:
194
公司师兄教的一种方法:将例如以下脚本,增加到/etc/profile最后就可以PS1="`whoami`@`hostname`:"'[$PWD]'historyUSER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'...
分类:
其他好文 时间:
2015-01-02 10:52:54
阅读次数:
131
查看linux系统的开机时间/重启历史记录1、who -b命令[root@rusky opt]# who -b ---查看最后一次(上次)系统启动的时间 system boot Dec 27 05:062、who -r命令[root@rusky opt]# who -r ...
分类:
系统相关 时间:
2014-12-31 18:12:17
阅读次数:
329
NAME w - Show who is logged on and what they are doing.SYNOPSIS w - [husfV] [user]DESCRIPTION w displays information about the u...
分类:
系统相关 时间:
2014-12-31 18:01:50
阅读次数:
275
who命令与w命令相似,但要比w命令显示更加详细的信息。[root@rusky opt]# man who WHO(1) User Commands WHO(1)NAME who - s...
分类:
系统相关 时间:
2014-12-31 18:00:49
阅读次数:
176
poj 2886 Who Gets the Most Candies?
Description
N children are sitting in a circle to play a game.
The children are numbered from 1 to N in clockwise order. Each of them has a card with ...
分类:
其他好文 时间:
2014-12-30 23:42:05
阅读次数:
310
今天是最后一个部分,介绍不使用构造函数实现"继承"。一、什么是"非构造函数"的继承?比如,现在有一个对象,叫做"中国人"。 var Chinese = { nation:'中国' };还有一个对象,叫做"医生"。 var Doctor ={ career:'医生' }请问怎样才能...
分类:
编程语言 时间:
2014-12-29 14:57:29
阅读次数:
211
个人主页Dennis Ritchie's home pagehttp://cm.bell-labs.com/cm/cs/who/dmr/index.htmlBrian Kernighan's home pagehttp://cm.bell-labs.com/cm/cs/who/bwk/index.h...
分类:
编程语言 时间:
2014-12-28 22:08:35
阅读次数:
317