让Shell自动找到/home/bill/bin/下的脚本
来源:互联网 发布:java经典代码大全例子 编辑:程序博客网 时间:2024/04/28 15:56
先在用户目录~下创建bin文件夹,然后只需要在~/.profile文件中设置PATH="$PATH:$HOME/bin;"即可。
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
这样每次登录时Shell都会读取.profile文件
- 让Shell自动找到/home/bill/bin/下的脚本
- 让Shell脚本自动执行的方法
- shell下自动ftp脚本
- shell下自动ftp脚本
- MySQL :: Linux 下自动备份数据库的 shell 脚本
- JDK在Ubuntu环境下的Shell脚本自动安装
- linux下ftp自动登录的shell脚本
- linux下mysql自动备份shell脚本
- linux下mysql自动备份shell脚本 .
- shell脚本下自动发邮箱
- shell脚本中#!/bin/bash
- 关于shell脚本里面的的#!/bin/bash解释
- 关于linux shell脚本开头的#!/bin/sh
- linux shell脚本增加#!/bin/sh导致的问题
- shell脚本第一行:#!/bin/bash的含义
- Linux下使用Shell脚本实现ftp的自动上传下
- Shell-/bin/bash和/bin/sh解释器的误用引起的脚本语法错误
- 让Linux下的cron以秒为单位执行shell脚本的3种方法
- 双缓冲消息队列-减少锁竞争
- tomcat 环境变量配置
- 黑马程序员——创建触发器
- 可扩展、高可用、负载均衡网站架构设计方案
- 心的感悟
- 让Shell自动找到/home/bill/bin/下的脚本
- uboot移植之命令烧写uboot,zImage.img,root .
- C++ 对象的内存布局
- PB常用程序汇总3
- Javc笔记(三) package和import
- 经典的javascript正则表达式
- 正则表达式
- 今天遇到的一个在main函数中打开TitleAreaDialog的bug
- Java笔记(四) this和static