亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1945 | 回復: 0
打印 上一主題 下一主題

配置OpenBSD中的Bash [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-11-14 14:42 |只看該作者 |倒序瀏覽
習慣了RedHat的那種Bash的風格,所以,對bashrc做了些修改
想一登陸的時候就能看到誰在系統(tǒng)中,并且看到時間:

Last login: Mon Nov 9 08:29:28 2009
OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009
Welcome to OpenBSD: The proactively secure Unix-like operating system.
Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code. With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.
8:38AM up 10 mins, 2 users, load averages: 0.08, 0.14, 0.08
USER TTY FROM LOGIN@ IDLE WHAT
root C0 - 8:29AM 0 -bash
root p0 192.168.3.135 8:38AM 0 w
   November 2009
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
對.bash_login做了添加

#######################################################################
# #
# Bash_login file #
# #
# commands to perform from the bash shell at login time #
# (sourced from .bash_profile) #
# #
#######################################################################
# file protection
umask 002 # all to me, read to group and others
# miscellaneous
w
cal `date +"%m"` `date +"%Y"`
然后可以就看到了shell了

[root@liuqi ~]#cat .bashrc
# /root/.bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
       . /etc/bashrc
fi
# shell options
set -o noclobber
# my shell variables
export PS1="[\u@\h \W]#"
export PATH="$PATH:~/bin:~/scripts"
# my aliases
alias cdrecord='cdrecord -dev 0,0,0 -speed=8'
alias ss='ssh octarine'
alias ll='ls -la'
# THE END
[root@liuqi ~]#


本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u3/101042/showart_2094587.html
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP