前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >配置OpenBSD中的Bash

配置OpenBSD中的Bash

作者头像
用户3765803
发布2019-03-05 10:15:54
1.6K1
发布2019-03-05 10:15:54
举报
文章被收录于专栏:悟空被FFmpeg玩悟空被FFmpeg玩

习惯了RedHat的那种Bash的风格,所以,对bashrc做了些修改

想一登陆的时候就能看到谁在系统中,并且看到时间:

Last login: Mon Nov 9 08:29:28 2009OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009Welcome 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 latestversion of the code. With bug reports, please try to ensure thatenough information to reproduce the problem is enclosed, and if aknown fix for it exists, include that as well. 8:38AM up 10 mins, 2 users, load averages: 0.08, 0.14, 0.08USER TTY FROM LOGIN@ IDLE WHATroot C0 - 8:29AM 0 -bashroot p0 192.168.3.135 8:38AM 0 w   November 2009Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 1415 16 17 18 19 20 2122 23 24 25 26 27 2829 30

对.bash_login做了添加

######################################################################## ## Bash_login file ## ## commands to perform from the bash shell at login time ## (sourced from .bash_profile) ## ######################################################################### file protectionumask 002 # all to me, read to group and others# miscellaneouswcal `date +"%m"` `date +"%Y"`

然后可以就看到了shell了

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

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2009-11-14 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档