Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2193503
  • 博文数量: 141
  • 博客积分: 3552
  • 博客等级: 中校
  • 技术积分: 4148
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-15 14:39
个人简介

熟悉Linux下程序设计及各种应用程序 熟悉C Language 熟悉Glusterfs、FFmpeg、CDN 系统设计,计算机图形系统设计、分布式程序设计 目前主要研究方向:流媒体

文章分类

全部博文(141)

分类: BSD

2009-11-14 14:42:09

习惯了RedHat的那种Bash的风格,所以,对bashrc做了些修改
想一登陆的时候就能看到谁在系统中,并且看到时间:
 

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 ~]#


阅读(3554) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~