安装Symfony,使用 brew install homebrew/php/symfony-installer 开始一直下载不了包,我手动浏览器下载了几个,发现好像都是Permission问题,运行了下面的命令: sudo chown -R $(whoami) /Users/baidu/Libra ...
分类:
其他好文 时间:
2016-10-04 21:01:53
阅读次数:
317
在 /etc/profile 最后添加export HISTTIMEFORMAT='[%F %T]: 'export PROMPT_COMMAND='{ msg=$(history 1 | { read x y; echo $y; });logger -t audit "[euid=$(whoami... ...
分类:
系统相关 时间:
2016-09-23 14:39:28
阅读次数:
179
在 /etc/profile 最后添加export HISTTIMEFORMAT='[%F %T]: 'export PROMPT_COMMAND='{ msg=$(history 1 | { read x y; echo $y; });logger -t audit "[euid=$(whoami... ...
分类:
系统相关 时间:
2016-09-23 13:22:51
阅读次数:
202
学习了Linux基础知识,随堂笔记,记录一下一些平时常用的命令。 1、 id或whoami 查看当前用户信息 2、 su user 切换用户 su – user 切换用户并加载用户变量 3、 设置环境变量 vi /etc/profile 例:export PATH=/opt/lampp/bin:$P ...
分类:
系统相关 时间:
2016-09-14 21:55:04
阅读次数:
276
下面是我学习linux的一些笔记,整理总结如下 首先先普及一下常识:DNS是用来解析域名的;url端口默认是80,可以不写;localhost 就是127.0.0.1,如果是root时,提示符为:# ,普通用户则为:$; Linux下常用命令: 1.查看当前系统下登录的用户时,可以输入whoami命 ...
分类:
系统相关 时间:
2016-09-13 22:04:38
阅读次数:
189
下面是我学习linux的一些笔记,整理总结如下 首先先普及一下常识:DNS是用来解析域名的;url端口默认是80,可以不写;localhost 就是127.0.0.1,如果是root时,提示符为:# ,普通用户则为:$; Linux下常用命令: 1.查看当前系统下登录的用户时,可以输入whoami命 ...
分类:
系统相关 时间:
2016-09-12 18:47:39
阅读次数:
204
1.在/etc/profile的最后添加如下部分:USER_IP=`who-uami2>/dev/null|awk‘{print$NF}‘|sed-e‘s/[()]//g‘`exportHISTTIMEFORMAT="[%F%T][`whoami`][${USER_IP}]"2.source/etc/profile3.随便执行一下什么命令,4.执行history,看效果:311[2013-08-2814:39:20][root][192.168...
分类:
系统相关 时间:
2016-08-25 21:58:36
阅读次数:
202
两个月前使用过hbase,现在最基本的命令都淡忘了,留一个备查~ hbase(main)> whoami hbase(main)> whoami hbase(main)> whoami hbase(main)> whoami hbase(main)> whoami hbase(main)> list ...
分类:
系统相关 时间:
2016-08-23 19:01:54
阅读次数:
299
#!/bin/bash#user=`whoami`if["$user"=="root"];thenecho"rootissuperuser"elseecho"$userisanormaluser"fi
分类:
系统相关 时间:
2016-08-14 14:50:29
阅读次数:
237
#/bin/sh间接修改端口#auther:qiruyi#date:2016-08-05#system:centos6.5#version:1.0#requireroottorunthisscript.//使用root用户if[["$(whoami)"="root"]];thenecho"rootisrun"elseecho"pleasesuroottorunthisscript"fi\cp/etc/ssh/sshd_config/etc/ssh/sshd_config.$(date+"%..
分类:
其他好文 时间:
2016-08-08 19:36:31
阅读次数:
259