随笔分类 - Linux
摘要:// 显示当前月[root@TechU-LTPC ~]# cal June 2011 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 1112 13 14 15 16 17 1819 20 21 22 23 24 2526 27 28 29 30// 显示年历[root@TechU-LTPC ~]# cal 2013// 显示某年某月[root@TechU-LTPC ~]# cal 7 2011
阅读全文
摘要:# 在终端显示当前时间echo "欢迎访问天天笔记:www.ttbiji.com,时间:`date +%T`"# 输出到log文件中echo "欢迎访问天天笔记:www.ttbiji.com,时间:`date +%T`" > time.log# 输出到log文件中:追加到文件中echo "欢迎访问天天笔记:www.ttbiji.com,时间:`date +%T`" >> time.log
阅读全文
摘要:# vi /etc/ssh/sshd_configClientAliveInterval 20ClientAliveCountMax 45# 重启sshd服务:/etc/init.d/sshd restart
阅读全文
摘要:# 查看当前登录用户$ who am i# 查看用户所在的组# groups wangllwangll : root# 将用户A 添加到 组A 中# -a 代表 append, 也就是 将自己添加到 用户组groupA 中,而不必离开 其他用户组。usermod -a -G groupA userA
阅读全文
浙公网安备 33010602011771号