Linux 查看登录用户信息 who & whoami 在一台服务器上,同一时间往往会有很难多人同时登录。 who 命令可以查看当前系统中有哪些人登录,以及他们都工作在哪个控制台上。 这样可以很方便的监控机器的登录人信息,并对系统操作进行安全监控。 效果如下: 有时候,可能会忘记自己是以什么身份登录 ...
分类:
系统相关 时间:
2019-11-22 09:14:57
阅读次数:
110
1、在 /etc/profile 加上一段shell 步骤1、vi /etc/profile 2、i 进入命令行模式 3、在最后加上下面这段文字 history USER=`whoami` USER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed ...
分类:
系统相关 时间:
2019-11-20 12:33:53
阅读次数:
103
Object name的语法 1. 形似 com.sun.someapp:type=Whatsit,name=25 2. com.sun.someapp 是domain,冒号后面的是key property list,每组kv的顺序随意,但是不能有空格,空格字符有特殊含义,不能有冒号。domain名 ...
分类:
其他好文 时间:
2019-11-18 18:04:23
阅读次数:
65
这次有空的时候报名参加了一下三叶草的招新比赛,比赛时间是一个月,题目都挺基础挺好玩的,在这里记一下自己的题解同时把自己没有做的题目也跟着writeup做一遍 第一题:cl4y:打比赛前先撸一只猫!: 猫猫陪我打ctf! 到了页面之后审查元素。发现源代码里面有提示: 这里我们需要使用get请求让cat ...
分类:
Web程序 时间:
2019-11-17 14:35:26
阅读次数:
122
onBindViewHolder: 绑定数据到ViewHoldergetItemCount:获取总的条目数onCreateViewHolder:创建ViewHoldergetItemViewType():获取item对应的类型getItemId(int position): 返回项目的稳定ID po ...
分类:
其他好文 时间:
2019-11-16 10:51:58
阅读次数:
58
Tutorial: Intro to React This tutorial doesn’t assume any existing React knowledge. Tip This tutorial is designed for people who prefer to learn by do ...
分类:
其他好文 时间:
2019-11-15 12:30:28
阅读次数:
104
Vue指令 1、文本相关指令 2、斗篷指令 3、属性指令 4、事件指令 5、表单指令 6、条件指令 7、循环指令 8、todolist案例 ...
分类:
其他好文 时间:
2019-11-15 00:03:08
阅读次数:
72
D. Yet Another Monster Killing Problem You play a computer game. In this game, you lead a party of ?? heroes, and you have to clear a dungeon with ?? ...
分类:
其他好文 时间:
2019-11-14 20:16:03
阅读次数:
92
Choosetwo.WhichtwostatementsaretrueabouttheDUALtable?A)Itcandisplaymultiplerowsandcolumns.B)ItcanbeaccessedonlybytheSYSuser.C)ItcanbeaccessedbyanyuserwhohastheSELECTprivilegeinanyschemaD)Itcandisplaym
分类:
其他好文 时间:
2019-11-14 13:48:58
阅读次数:
61
保护域名信息的建议有哪些?域名注册对网站而言非常重要,特别是对于那些好的域名注册,非常容易遭受竞争者或恶意分子侵扰,对网站导致很不好的影响。
分类:
其他好文 时间:
2019-11-11 20:02:58
阅读次数:
65